#include "AthenaKernel/CLASS_DEF.h"
#include "TrigInDetEvent/TrigSiSpacePoint.h"
#include "TrigInDetEvent/TrigInDetTrackFitPar.h"
#include "InDetPrepRawData/TRT_DriftCircle.h"
#include "Identifier/Identifier.h"
#include <map>
#include <ostream>
#include "GaudiKernel/MsgStream.h"
Go to the source code of this file.
◆ diff()
comparison with feedback Function compares two objects and returns "semi verbose" output in the form of map where there are varaibel names and differences between two obejcts
- Parameters
-
variableChange | - map to record the differences In case of collections (or objects when the size may be different) that information can also be returned in variableChange |
Definition at line 112 of file TrigInDetTrack.cxx.
117 variableChange[
"d0"] = pA->
a0() - pB->
a0();
118 variableChange[
"z0"] = pA->
z0() - pB->
z0();
119 variableChange[
"phi0"] = pA->
phi0() - pB->
phi0();
120 variableChange[
"eta"] = pA->
eta() - pB->
eta();
121 variableChange[
"pT"] = pA->
pT() - pB->
pT();
122 variableChange[
"chi2"] =
a.chi2() -
b.chi2();
◆ operator!=()
◆ operator<<()
◆ operator==()
Definition at line 93 of file TrigInDetTrack.cxx.
95 const double epsilon = 1
e-8;
100 if(
a.algorithmId() !=
b.algorithmId())
return false;
101 if(
a.HitPattern() !=
b.HitPattern())
return false;
102 if(
a.NStrawHits() !=
b.NStrawHits())
return false;
103 if(fabs(
a.chi2()-
b.chi2())>epsilon)
return false;
104 if(fabs(pA->
a0()-pB->
a0())>epsilon)
return false;
105 if(fabs(pA->
z0()-pB->
z0())>epsilon)
return false;
106 if(fabs(pA->
phi0()-pB->
phi0())>epsilon)
return false;
107 if(fabs(pA->
eta()-pB->
eta())>epsilon)
return false;
108 if(fabs(pA->
pT()-pB->
pT())>epsilon)
return false;
◆ str()
Definition at line 68 of file TrigInDetTrack.cxx.
73 ss <<
"AlgorithmID: "<<
t.algorithmId()
76 <<
" phi0: "<<
p->phi0()
80 <<
" NpixSPs: "<<
t.NPixelSpacePoints()
81 <<
" NsctSPs: "<<
t.NSCT_SpacePoints()
82 <<
" NstrawHits: "<<
t.NStrawHits()
83 <<
" HitPattern: "<<
t.HitPattern();