|
ATLAS Offline Software
|
Go to the documentation of this file.
14 #ifndef TIDAUTILS_ASSOCIATOR_BESTMATCH_H
15 #define TIDAUTILS_ASSOCIATOR_BESTMATCH_H
46 double deta =
t0->eta()-
t1->eta();
47 double dphi =
t0->phi()-
t1->phi();
50 return std::sqrt( deta*deta + dphi*dphi );
71 double dpT = fabs(
t0->pT()/1000 -
t1->pT()/1000 );
73 return dpT/(fabs(
t0->pT()/1000));
93 double deta =
t0->eta()-
t1->eta();
94 double dphi =
t0->phi()-
t1->phi();
97 return std::sqrt( deta*deta + dphi*dphi );
119 std::cout <<
"Associator: Best RZ Matcher" << std::endl;
127 double deta =
t0->eta()-
t1->eta();
128 double dphi =
t0->phi()-
t1->phi();
if ( dphi>
M_PI ) dphi-=2*
M_PI;
if ( dphi<-
M_PI ) dphi+=2*
M_PI;
129 double dzed =
t0->z0()-
t1->z0();
162 std::cout <<
"Associator: Best RZ Matcher" << std::endl;
172 double deta =
t0->eta()-
t1->eta();
173 double dphi =
t0->phi()-
t1->phi();
if ( dphi>
M_PI ) dphi-=2*
M_PI;
if ( dphi<-
M_PI ) dphi+=2*
M_PI;
204 std::cout <<
"Associator: Best Sigma Matcher" << std::endl;
212 double deta =
t1->eta()-
t0->eta();
213 double dphi =
t1->phi()-
t0->phi();
216 double dzed =
t1->z0()-
t0->z0();
224 double dr = std::sqrt( deta*deta + dphi*dphi + dzed*dzed );
251 double dphi =
t0->phi()-
t1->phi();
254 return std::fabs( dphi );
262 #endif // TIDAUTILS_ASSOCIATOR_BESTMATCH_H
virtual double distance(const TIDA::Track *t0, const TIDA::Track *t1) const override
Associator_BestDeltaPhiMatcher(const std::string &name, double p)
virtual TrackAssociator * clone() override
Associator_BestDeltaRZSinThetaMatcher(const std::string &name, double deta=0.05, double dphi=0.05, double dzed=5)
virtual TrackAssociator * clone() override
BestMatcher< TIDA::Track > Associator_BestMatcher
virtual TrackAssociator * clone() override
Associator_DeltaRMatcher(const std::string &name, double d)
virtual TrackAssociator * clone() override
Scalar theta() const
theta method
std::vector< ALFA_RawData_p1 > t0
std::vector< ALFA_RawDataCollection_p1 > t1
virtual ~Associator_BestDeltaRMatcher()
Associator_BestDeltaRZMatcher(const std::string &name, double deta=0.05, double dphi=0.05, double dzed=5)
virtual ~Associator_SecondBestpTMatcher()
Associator_BestSigmaMatcher(const std::string &name, double dsigma=1)
virtual ~Associator_DeltaRMatcher()
virtual ~Associator_BestDeltaPhiMatcher()
virtual double distance(const TIDA::Track *t0, const TIDA::Track *t1) const override
virtual double distance(const TIDA::Track *t0, const TIDA::Track *t1) const override
virtual double distance(const TIDA::Track *t0, const TIDA::Track *t1) const override
virtual ~Associator_BestSigmaMatcher()
virtual TrackAssociator * clone() override
virtual double distance(const TIDA::Track *t0, const TIDA::Track *t1) const override
virtual TrackAssociator * clone() override
virtual ~Associator_BestDeltaRZMatcher()
virtual TrackAssociator * clone() override
virtual ~Associator_BestDeltaRZSinThetaMatcher()
virtual double distance(const TIDA::Track *t0, const TIDA::Track *t1) const override
Associator_BestDeltaRMatcher(const std::string &name, double d)
virtual double distance(const TIDA::Track *t0, const TIDA::Track *t1) const override
Associator_SecondBestpTMatcher(const std::string &name, double d)