DAS  3.0
Das Analysis System
GenericObject.cc File Reference
#include <GenericObject.h>
#include <boost/test/included/unit_test.hpp>
#include <iostream>
+ Include dependency graph for GenericObject.cc:

Classes

class  GenericObjectDummy
 

Macros

#define BOOST_TEST_MODULE   GenericObject
 

Functions

 BOOST_AUTO_TEST_CASE (scale)
 
 BOOST_AUTO_TEST_CASE (weights)
 
obj1 p4 SetCoordinates (2540.7522, -0.939323, 2.9671194, 42.679748)
 
obj2 p4 SetCoordinates (2524.7915, 0.3277488, -0.195445, 58.079277)
 
 BOOST_TEST (obj1==obj1)
 
 BOOST_TEST (obj2< obj1)
 
 BOOST_TEST (obj1 > obj2)
 

Macro Definition Documentation

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   GenericObject

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/2]

BOOST_AUTO_TEST_CASE ( scale  )
29 {
31  BOOST_TEST( obj.scales.size() == 1 );
32  BOOST_TEST( obj.scales.front() == 1. );
33 
34  obj.p4 = {1,1,1,1};
35  cout << obj << endl;
36 
37  obj.scales.front() = 2;
38  BOOST_TEST( obj.scales.front() == 2. );
39  cout << obj << endl;
40 
41  FourVector corr = obj.CorrP4();
42  BOOST_TEST( obj.p4. Pt()*2 == corr.Pt() );
43  BOOST_TEST( obj.CorrPt() == corr.Pt() );
44 
45  BOOST_TEST( obj.Rapidity() == corr.Rapidity() );
46  BOOST_TEST( obj.p4.Eta () == corr.Eta () );
47 }

◆ BOOST_AUTO_TEST_CASE() [2/2]

BOOST_AUTO_TEST_CASE ( weights  )
50 {
52  BOOST_TEST( obj.weights.size() == 1 );
53  BOOST_TEST( obj.weights[0] == 1 );
54 }

◆ BOOST_TEST() [1/3]

BOOST_TEST ( obj1  ,
obj2   
)

◆ BOOST_TEST() [2/3]

BOOST_TEST ( obj1  = =obj1)

◆ BOOST_TEST() [3/3]

BOOST_TEST ( )

◆ SetCoordinates() [1/2]

obj2 p4 SetCoordinates ( 2524.  7915,
0.  3277488,
-0.  195445,
58.  079277 
)

◆ SetCoordinates() [2/2]

obj1 p4 SetCoordinates ( 2540.  7522,
-0.  939323,
2.  9671194,
42.  679748 
)
GenericObjectDummy
Definition: GenericObject.cc:18
Darwin::Physics::GenericObject::CorrPt
float CorrPt(size_t i=0) const
corrected transverse momentum
Definition: GenericObject.h:58
Darwin::Physics::GenericObject::weights
Weights weights
object weights
Definition: GenericObject.h:55
Darwin::Physics::GenericObject::scales
std::vector< float > scales
energy scale corrections and variations
Definition: GenericObject.h:54
BOOST_TEST
BOOST_TEST(obj1==obj1)
Darwin::Physics::GenericObject::Rapidity
float Rapidity(const Variation &=nominal) const
Definition: GenericObject.h:59
Darwin::Physics::GenericObject::CorrP4
FourVector CorrP4(size_t i=0) const
corrected 4-vector
Definition: GenericObject.h:57
Darwin::Physics::FourVector
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< float > > FourVector
Definition: GenericObject.h:20
Darwin::Physics::GenericObject::p4
FourVector p4
raw four-momentum directly after reconstruction
Definition: GenericObject.h:53