Go to the source code of this file.
◆ diff()
Comparison with feedback.
Definition at line 61 of file TrigT2Jet.cxx.
63 const double DELTA=1
e-3;
65 unsigned long aRoI = (
unsigned long)
a.RoIword();
66 unsigned long bRoI = (
unsigned long)
b.RoIword();
68 variableChange[
"RoIwordsXOR" ] = aRoI ^ bRoI;
72 if( fabsf(aE - bE) > DELTA )
73 variableChange[
"E" ] = aE - bE;
75 float aEHad0 =
a.ehad0();
76 float bEHad0 =
b.ehad0();
77 if( fabsf(aEHad0 - bEHad0) > DELTA )
78 variableChange[
"EHad0" ] = aEHad0 - bEHad0;
80 float aEEM0 =
a.eem0();
81 float bEEM0 =
b.eem0();
82 if( fabsf(aEEM0 - bEEM0) > DELTA )
83 variableChange[
"EEM0" ] = aEEM0 - bEEM0;
87 if( fabsf(aEta - bEta) > DELTA )
88 variableChange[
"Eta" ] = aEta - bEta;
92 if( fabsf(aPhi - bPhi) > DELTA )
93 variableChange[
"Phi" ] = aPhi - bPhi;
96 int diffLeadingCells =
a.nLeadingCells() -
b.nLeadingCells();
97 if( diffLeadingCells != 0){
98 variableChange[
"nLeadCells" ] = diffLeadingCells;
101 float diffhecf =
a.hecf() -
b.hecf();
102 if( fabsf(diffhecf) > DELTA){
103 variableChange[
"hecf" ] = diffhecf;
106 float diffjetQuality =
a.jetQuality() -
b.jetQuality();
107 if( fabsf(diffjetQuality) > DELTA){
108 variableChange[
"jetQual" ] = diffjetQuality;
111 float diffemf =
a.emf() -
b.emf();
112 if( fabsf(diffemf) > DELTA){
113 variableChange[
"emf" ] = diffemf;
116 float diffjetTime =
a.jetTimeCells() -
b.jetTimeCells();
117 if( fabsf(diffjetTime) > DELTA ){
118 variableChange[
"jetTime" ] = diffjetTime;
◆ operator<<()
◆ operator==()
Operator comparing two objects for equality.
Definition at line 16 of file TrigT2Jet.cxx.
18 const double DELTA=1
e-3;
20 if ( std::abs(
a.e() -
b.e()) > DELTA)
return false;
21 if ( std::abs(
a.ehad0() -
b.ehad0()) > DELTA)
return false;
22 if ( std::abs(
a.eem0() -
b.eem0()) > DELTA)
return false;
23 if ( std::abs(
a.eta() -
b.eta()) > DELTA)
return false;
24 if ( std::abs(
a.phi() -
b.phi()) > DELTA)
return false;
25 if(
a.RoIword() !=
b.RoIword() )
return false;
27 if(
a.nLeadingCells() !=
b.nLeadingCells() )
return false;
28 if( std::abs(
a.hecf() -
b.hecf()) > DELTA )
return false;
29 if( std::abs(
a.jetQuality() -
b.jetQuality()) > DELTA )
return false;
30 if( std::abs(
a.emf() -
b.emf()) > DELTA )
return false;
31 if( std::abs(
a.jetTimeCells() -
b.jetTimeCells()) > DELTA )
return false;
◆ str()
conversion to formatted string: multi-line!
Definition at line 37 of file TrigT2Jet.cxx.
42 std::sprintf(
buff,
"L2 Jet E = %10.2f MeV\n",
a.e());
s +=
buff;
43 std::sprintf(
buff,
"L2 Jet EHad0 = %10.2f MeV\n",
a.ehad0());
s +=
buff;
44 std::sprintf(
buff,
"L2 Jet EEM0 = %10.2f MeV\n",
a.eem0());
s +=
buff;
45 std::sprintf(
buff,
"L2 Jet Eta = %10.2f \n",
a.eta());
s +=
buff;
46 std::sprintf(
buff,
"L2 Jet Phi = %10.2f \n",
a.phi());
s +=
buff;
49 std::sprintf(
buff,
"Grid Members = %4d\n", (
int)
a.grid()->size());
s +=
buff;