9 m_e(), m_ehad0(), m_eem0(), m_eta(), m_phi(), m_grid(0), m_roiWord(), m_nLeadingCells(), m_hecf(), m_jetQuality(), m_emf(), m_jetTimeCells()
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;
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;
58 return (
m <<
str(
d ) );
62 std::map<std::string, double>& variableChange){
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;