29 m_roiID(-1), m_particleType(PHIKK), m_eta(0), m_phi(0) ,
30 m_mass(0), m_fitmass(-99.), m_fitchi2(-99.), m_fitndof(-99),
31 m_fitx(-99.), m_fity(-99.), m_fitz(-99),
32 m_secondaryDecay(), m_trackVector(0)
42 m_fitmass(-99.), m_fitchi2(-99.), m_fitndof(-99),m_fitx(-99.), m_fity(-99.), m_fitz(-99.),
43 m_secondaryDecay(), m_trackVector(0)
51 m_fitmass(-99.), m_fitchi2(-99.), m_fitndof(-99),m_fitx(-99.), m_fity(-99.), m_fitz(-99.),
52 m_secondaryDecay(sDecay), m_trackVector(0)
103 std::stringstream
ss;
105 ss <<
"RoI_ID: "<<
p.roiId()
106 <<
"Particle type: "<<
p.particleType()
109 <<
"mass: "<<
p.mass()
110 <<
"mass after fit: "<<
p.fitmass()
111 <<
"fit chi2: "<<
p.fitchi2()
112 <<
"fit ndof: "<<
p.fitndof()
121 const double epsilon = 1
e-8;
123 int aHasSD = (
a.pSecondDecay()!=NULL)?1:0;
124 int bHasSD = (
b.pSecondDecay()!=NULL)?1:0;
125 if((aHasSD+bHasSD)==1)
128 if(
a.trackVector().size()!=
b.trackVector().size())
131 if(
a.roiId() !=
b.roiId())
return false;
132 if(
a.particleType() !=
b.particleType())
return false;
133 if(
a.fitndof() !=
b.fitndof())
return false;
135 if(fabs(
a.eta()-
b.eta())>epsilon)
return false;
136 if(fabs(
a.phi()-
b.phi())>epsilon)
return false;
137 if(fabs(
a.mass()-
b.mass())>epsilon)
return false;
138 if(fabs(
a.fitmass()-
b.fitmass())>epsilon)
return false;
139 if(fabs(
a.fitchi2()-
b.fitchi2())>epsilon)
return false;
140 if(fabs(
a.fitx()-
b.fitx())>epsilon)
return false;
141 if(fabs(
a.fity()-
b.fity())>epsilon)
return false;
142 if(fabs(
a.fitz()-
b.fitz())>epsilon)
return false;
144 if((aHasSD+bHasSD)==2)
146 if (!((*
a.pSecondDecay())==(*
b.pSecondDecay())))
154 variableChange[
"eta"] =
a.eta() -
b.eta();
155 variableChange[
"phi"] =
a.phi() -
b.phi();
156 variableChange[
"mass"] =
a.mass() -
b.mass();
157 variableChange[
"fitmass"] =
a.fitmass() -
b.fitmass();
158 variableChange[
"fitchi2"] =
a.fitchi2() -
b.fitchi2();
159 variableChange[
"x"] =
a.fitx() -
b.fitx();
160 variableChange[
"y"] =
a.fity() -
b.fity();
161 variableChange[
"z"] =
a.fitz() -
b.fitz();