48 unsigned int details_index,
float energy,
49 float eta,
float phi,
long roi_word) :
69 if(details_cont != NULL && details_cont->
size() > details_index)
87 m_EMenergy(ttc->EMenergy()),
88 m_HADenergy(ttc->HADenergy()),
89 m_eCalib(ttc->eCalib()),
90 m_EMRadius2(ttc->EMRadius2()),
91 m_CaloRadius(ttc->CaloRadius()),
92 m_IsoFrac(ttc->IsoFrac()),
93 m_numStripCells(ttc->numStripCells()),
94 m_numTotCells(ttc->numTotCells()),
95 m_stripWidth(ttc->stripWidth()),
96 m_stripWidthOffline(ttc->stripWidthOffline()),
97 m_EMRadius3S(ttc->EMRadius3S()),
98 m_CoreFrac(ttc->CoreFrac()),
99 m_EMFrac(ttc->EMFrac()),
100 m_HadRadius(ttc->HadRadius()),
118 std::cout <<
"m_EMenergy : " <<
m_EMenergy <<
"; ";
119 std::cout <<
"m_HADenergy : " <<
m_HADenergy <<
"; ";
120 std::cout <<
"m_eCalib : " <<
m_eCalib <<
"; ";
121 std::cout <<
"Eta : " <<
eta() <<
"; ";
122 std::cout <<
"Phi : " <<
phi() <<
"; ";
189 double epsilon=0.001;
190 if(fabs(clus1.
EMenergy() - clus2.EMenergy()) > epsilon)
return false;
191 if(fabs(clus1.
HADenergy() - clus2.HADenergy()) > epsilon)
return false;
192 if(fabs(clus1.
eCalib() - clus2.eCalib()) > epsilon)
return false;
193 if(fabs(clus1.
EMRadius2() - clus2.EMRadius2()) > epsilon)
return false;
194 if(fabs(clus1.
CaloRadius() - clus2.CaloRadius()) > epsilon)
return false;
195 if(fabs(clus1.
IsoFrac() - clus2.IsoFrac()) > epsilon)
return false;
196 if(abs(clus1.
numStripCells() - clus2.numStripCells()) > epsilon)
return false;
197 if(abs(clus1.
numTotCells() - clus2.numTotCells()) > epsilon)
return false;
198 if(fabs(clus1.
stripWidth() - clus2.stripWidth()) > epsilon)
return false;
199 if(fabs(clus1.
stripWidthOffline() - clus2.stripWidthOffline() ) > epsilon)
return false;
200 if(fabs(clus1.
EMRadius3S() - clus2.EMRadius3S()) > epsilon)
return false;
201 if(fabs(clus1.
CoreFrac() - clus2.CoreFrac()) > epsilon)
return false;
202 if(fabs(clus1.
EMFrac() - clus2.EMFrac()) > epsilon)
return false;
203 if(fabs(clus1.
HadRadius() - clus2.HadRadius()) > epsilon)
return false;
217 <<
"; EMenergy:" << tau.EMenergy()
218 <<
"; HADenergy:" << tau.HADenergy()
219 <<
"; eCalib:" << tau.eCalib()
220 <<
"; EMRadius2:" << tau.EMRadius2()
221 <<
"; CaloRadius:" << tau.CaloRadius()
222 <<
"; IsoFrac:" << tau.IsoFrac()
223 <<
"; numStripCells:" << tau.numStripCells()
224 <<
"; numTotCells:" << tau.numTotCells()
225 <<
"; stripWidth:" << tau.stripWidth()
226 <<
"; stripWidthOffline:" << tau.stripWidthOffline()
227 <<
"; EMRadius3S:" << tau.EMRadius3S()
228 <<
"; CoreFrac:" << tau.CoreFrac()
229 <<
"; EMFrac:" << tau.EMFrac()
230 <<
"; HadRadius:" << tau.HadRadius();
231 if(tau.clusterDetails() != 0)
233 stream <<
"; " <<
str(*tau.clusterDetails());
241 return (
m <<
str(tau));
247 const double epsilon = 0.001;
250 if(fabs(clus1.EMenergy() - clus2.EMenergy()) > epsilon)
252 varChange[
"EMEnergy"] = clus1.EMenergy() - clus2.EMenergy();
254 if(fabs(clus1.HADenergy() - clus2.HADenergy()) > epsilon)
256 varChange[
"HADenergy"] = clus1.HADenergy() - clus2.HADenergy();
258 if(fabs(clus1.eCalib() - clus2.eCalib()) > epsilon)
260 varChange[
"eCalib"] = clus1.eCalib() - clus2.eCalib();
262 if(fabs(clus1.EMRadius2() - clus2.EMRadius2()) > epsilon)
264 varChange[
"EMRadius2"] = clus1.EMRadius2() - clus2.EMRadius2();
266 if(fabs(clus1.CaloRadius() - clus2.CaloRadius()) > epsilon)
268 varChange[
"CaloRadius"] = clus1.CaloRadius() - clus2.CaloRadius();
270 if(fabs(clus1.IsoFrac() - clus2.IsoFrac()) > epsilon)
272 varChange[
"IsoFrac"] = clus1.IsoFrac() - clus2.IsoFrac();
274 if(abs(clus1.numStripCells() - clus2.numStripCells()) > epsilon)
276 varChange[
"numStripCells"] = clus1.numStripCells() - clus2.numStripCells();
278 if(abs(clus1.numTotCells() - clus2.numTotCells()) > epsilon)
280 varChange[
"numTotCells"] = clus1.numTotCells() - clus2.numTotCells();
282 if(fabs(clus1.stripWidth() - clus2.stripWidth()) > epsilon)
284 varChange[
"stripWidth"] = clus1.stripWidth() - clus2.stripWidth();
286 if(fabs(clus1.stripWidthOffline() - clus2.stripWidthOffline()) > epsilon)
288 varChange[
"stripWidthOffline"] = clus1.stripWidthOffline() - clus2.stripWidthOffline();
290 if(fabs(clus1.EMRadius3S() - clus2.EMRadius3S()) > epsilon)
292 varChange[
"EMRadius3S"] = clus1.EMRadius3S() - clus2.EMRadius3S();
294 if(fabs(clus1.CoreFrac() - clus2.CoreFrac()) > epsilon)
296 varChange[
"CoreFrac"] = clus1.CoreFrac() - clus2.CoreFrac();
298 if(fabs(clus1.EMFrac() - clus2.EMFrac()) > epsilon)
300 varChange[
"EMFrac"] = clus1.EMFrac() - clus2.EMFrac();
302 if(fabs(clus1.HadRadius() - clus2.HadRadius()) > epsilon)
304 varChange[
"HadRadius"] = clus1.HadRadius() - clus2.HadRadius();
307 if(clus1.clusterDetails() != 0 && clus2.clusterDetails() == 0)
309 varChange[
"clusterDetails "] = 1;
311 else if(clus1.clusterDetails() == 0 && clus2.clusterDetails() != 0)
313 varChange[
"clusterDetails "] = -1;
315 else if(clus1.clusterDetails() != 0 && clus2.clusterDetails() != 0 && clus1.clusterDetails() != clus2.clusterDetails())
317 diff(clus1.clusterDetails(), clus2.clusterDetails(), varChange);