ATLAS Offline Software
|
#include <EMTrackMatch.h>
Public Types | |
enum | TrkExtrapDef { fromLastMeasurement, fromPerigee, fromPerigeeRescaled, fromCaloToPerigee } |
Enum for track extrapolation to calo. More... | |
Public Member Functions | |
EMTrackMatch ()=default | |
Default constructor. More... | |
EMTrackMatch (const std::vector< double > &deltaEta, const std::vector< double > &deltaPhi, bool isPrimary, int trackNumber, bool trackRefit, int linkIndex=0) | |
constructor with data More... | |
EMTrackMatch (const std::vector< double > &EtaExtrap, const std::vector< double > &PhiExtrap, const std::vector< double > &deltaEta, const std::vector< double > &deltaPhi, bool isPrimary, int trackNumber, bool trackRefit, int linkIndex=0) | |
constructor with data More... | |
virtual | ~EMTrackMatch ()=default |
Destructor. More... | |
virtual const std::string & | className () const override |
interface methods More... | |
virtual double | parameter (egammaParameters::ParamDef) const override |
virtual bool | hasParameter (egammaParameters::ParamDef) const override |
virtual bool | hasBoolParameter (egammaParameters::ParamDef) const override final |
void | set_parameter (egammaParameters::ParamDef, double, bool overwrite=false) |
void | set_boolParameter (egammaParameters::ParamDef, bool, bool overwrite=false) |
double | deltaEta (int) const |
deltaEta at pre sampler(0) -> 3rd sampling(3) More... | |
double | deltaPhi (int) const |
deltaPhi at pre sampler(0) -> 3rd sampling(3) More... | |
double | EtaExtrap (int) const |
Eta of track extrapolated at pre sampler(0) -> 3rd sampling(3) More... | |
double | PhiExtrap (int) const |
Phi of track extrapolated at pre sampler(0) -> 3rd sampling(3) More... | |
double | PhiRescaled (int) const |
PhiRescaled at pre sampler(0) -> 3rd sampling(3) More... | |
double | etaSampling1 () const |
eta at sampling 1 for extrapolation from the last hit - allows recalcultion of deltaEta More... | |
double | deltaPhiRescaled () const |
deltaPhi at sampling 2 for rescaled momentum extrapolation from the perigee. More... | |
TrkExtrapDef | extrapMethod () const |
enum to indicate which track extrapolation method was used for track match. More... | |
double | deltaPhiRot () const |
deltaPhi between the direction of the momentum of the track at its perigee and the phi of the POSITION of the "center of gravity" of the electron as seen from the POSITION of the vertex of the track. More... | |
double | deltaPhiLast () const |
deltaPhi from the last Point More... | |
double | trackd0_physics () const |
return track transverse impact parameter wrt beam spot More... | |
double | trackd0_pv () const |
return track transverse impact parameter wrt primary vertex More... | |
double | trackd0sigma_physics () const |
return track transverse impact parameter wrt beam spot More... | |
double | trackd0sigma_pv () const |
return track transverse impact parameter wrt primary vertex More... | |
bool | expectHitInBLayer () const |
boolean to know if b-layer hit is expected More... | |
void | fill (const std::vector< double > &deltaEta, const std::vector< double > &deltaPhi, bool isPrimary, int trackNumber, bool trackRefit, int linkIndex=0) |
general set method (arguments as constructor) More... | |
void | fill (const std::vector< double > &EtaExtrap, const std::vector< double > &PhiExtrap, const std::vector< double > &deltaEta, const std::vector< double > &deltaPhi, bool isPrimary, int trackNumber, bool trackRefit, int linkIndex=0) |
general set method (arguments as constructor) More... | |
void | fill (int trackNumber) |
set method (only E/p - which is obsolete BTW !) More... | |
void | fillEtaPhiExtrap (const std::vector< double > &EtaExtrap, const std::vector< double > &PhiExtrap) |
set method (EtaExtrap and PhiExtrap) More... | |
void | fill (const std::vector< double > &deltaEta, const std::vector< double > &deltaPhi) |
set method (DeltaEta and Phi) More... | |
bool | isPrimary () const |
true if matched track has a hit in first or second pixel layer More... | |
bool | trackRefit () const |
true if track was refitted to account for brem effects More... | |
void | print () const |
int | trackNumber () const |
index number in TrackContainer (counting starts at 1 for sake of CBNT) More... | |
virtual int | linkIndex () const override |
index number among TrackParticle links of the egamma object (counting starts at 0) More... | |
virtual void | set_linkIndex (int value) override |
int | tracksInBroadWindow () const |
number of tracks in isolation window (taken at sampling 2): (# primary tracks if matched track is primary; otherwise all tracks) note: overload used to distinguish get/set method More... | |
void | tracksInBroadWindow (int value, bool overwrite=true) |
void | setEtaExtrap (int sampl, double value, bool overwrite=false) |
void | setPhiExtrap (int sampl, double value, bool overwrite=false) |
void | setPhiRescaled (int sampl, double value, bool overwrite=false) |
void | setDeltaEta (int sampl, double value, bool overwrite=false) |
void | setDeltaPhi (int sampl, double value, bool overwrite=false) |
void | setEtaSampling1 (double value, bool overwrite=false) |
void | setDeltaPhiRescaled (double value, bool overwrite=false) |
void | setextrapMethod (TrkExtrapDef value, bool overwrite=false) |
void | setDeltaPhiRot (double value, bool overwrite=false) |
void | setDeltaPhiLast (double value, bool overwrite=false) |
virtual int | intParameter (egammaParameters::ParamDef) const |
virtual bool | hasIntParameter (egammaParameters::ParamDef) const |
Private Member Functions | |
virtual bool | boolParameter (egammaParameters::ParamDef) const override |
Private Attributes | |
std::vector< std::pair< egammaParameters::ParamDef, double > > | m_parameters |
std::vector< std::pair< egammaParameters::ParamDef, bool > > | m_parametersBool |
Track match property data class. It is made by EMTrackMatchBuilder, which is an algorithm responsible for the match of a calo cluster with the best matched track in front of the shower.
Definition at line 19 of file EMTrackMatch.h.
Enum for track extrapolation to calo.
Definition at line 24 of file EMTrackMatch.h.
|
default |
Default constructor.
EMTrackMatch::EMTrackMatch | ( | const std::vector< double > & | deltaEta, |
const std::vector< double > & | deltaPhi, | ||
bool | isPrimary, | ||
int | trackNumber, | ||
bool | trackRefit, | ||
int | linkIndex = 0 |
||
) |
EMTrackMatch::EMTrackMatch | ( | const std::vector< double > & | EtaExtrap, |
const std::vector< double > & | PhiExtrap, | ||
const std::vector< double > & | deltaEta, | ||
const std::vector< double > & | deltaPhi, | ||
bool | isPrimary, | ||
int | trackNumber, | ||
bool | trackRefit, | ||
int | linkIndex = 0 |
||
) |
|
virtualdefault |
Destructor.
|
overrideprivatevirtual |
|
overridevirtual |
double EMTrackMatch::deltaEta | ( | int | sampl | ) | const |
double EMTrackMatch::deltaPhi | ( | int | sampl | ) | const |
double EMTrackMatch::deltaPhiLast | ( | ) | const |
double EMTrackMatch::deltaPhiRescaled | ( | ) | const |
deltaPhi at sampling 2 for rescaled momentum extrapolation from the perigee.
Only available if not in deltaPhi, i.e. default.
Definition at line 592 of file EMTrackMatch.cxx.
double EMTrackMatch::deltaPhiRot | ( | ) | const |
deltaPhi between the direction of the momentum of the track at its perigee and the phi of the POSITION of the "center of gravity" of the electron as seen from the POSITION of the vertex of the track.
(And not the PHI DIRECTION of the momentum of the track at its center of gravity in the calo. There's a factor of 2 if one uses the phi direction of the momentum.)
Definition at line 604 of file EMTrackMatch.cxx.
double EMTrackMatch::EtaExtrap | ( | int | sampl | ) | const |
Eta of track extrapolated at pre sampler(0) -> 3rd sampling(3)
Definition at line 500 of file EMTrackMatch.cxx.
double EMTrackMatch::etaSampling1 | ( | ) | const |
eta at sampling 1 for extrapolation from the last hit - allows recalcultion of deltaEta
Definition at line 572 of file EMTrackMatch.cxx.
bool EMTrackMatch::expectHitInBLayer | ( | ) | const |
EMTrackMatch::TrkExtrapDef EMTrackMatch::extrapMethod | ( | ) | const |
enum to indicate which track extrapolation method was used for track match.
Definition at line 582 of file EMTrackMatch.cxx.
void EMTrackMatch::fill | ( | const std::vector< double > & | deltaEta, |
const std::vector< double > & | deltaPhi, | ||
bool | isPrimary, | ||
int | trackNumber, | ||
bool | trackRefit, | ||
int | linkIndex = 0 |
||
) |
void EMTrackMatch::fill | ( | const std::vector< double > & | EtaExtrap, |
const std::vector< double > & | PhiExtrap, | ||
const std::vector< double > & | deltaEta, | ||
const std::vector< double > & | deltaPhi, | ||
bool | isPrimary, | ||
int | trackNumber, | ||
bool | trackRefit, | ||
int | linkIndex = 0 |
||
) |
void EMTrackMatch::fill | ( | int | trackNumber | ) |
set method (only E/p - which is obsolete BTW !)
Definition at line 385 of file EMTrackMatch.cxx.
|
finaloverridevirtual |
|
virtualinherited |
Reimplemented in EMConvert, EMTrackFit, EMBremFit, and EMErrorDetail.
Definition at line 29 of file egDetail.cxx.
|
overridevirtual |
|
virtualinherited |
Reimplemented in EMConvert, EMTrackFit, EMBremFit, and EMErrorDetail.
Definition at line 14 of file egDetail.cxx.
bool EMTrackMatch::isPrimary | ( | ) | const |
true if matched track has a hit in first or second pixel layer
Definition at line 624 of file EMTrackMatch.cxx.
|
overridevirtual |
index number among TrackParticle links of the egamma object (counting starts at 0)
Reimplemented from egDetail.
Definition at line 642 of file EMTrackMatch.cxx.
|
overridevirtual |
double EMTrackMatch::PhiExtrap | ( | int | sampl | ) | const |
Phi of track extrapolated at pre sampler(0) -> 3rd sampling(3)
Definition at line 515 of file EMTrackMatch.cxx.
double EMTrackMatch::PhiRescaled | ( | int | sampl | ) | const |
void EMTrackMatch::print | ( | ) | const |
Definition at line 414 of file EMTrackMatch.cxx.
void EMTrackMatch::set_boolParameter | ( | egammaParameters::ParamDef | key, |
bool | value, | ||
bool | overwrite = false |
||
) |
Definition at line 166 of file EMTrackMatch.cxx.
|
overridevirtual |
Reimplemented from egDetail.
Definition at line 652 of file EMTrackMatch.cxx.
void EMTrackMatch::set_parameter | ( | egammaParameters::ParamDef | key, |
double | value, | ||
bool | overwrite = false |
||
) |
Definition at line 132 of file EMTrackMatch.cxx.
void EMTrackMatch::setDeltaEta | ( | int | sampl, |
double | value, | ||
bool | overwrite = false |
||
) |
Definition at line 250 of file EMTrackMatch.cxx.
void EMTrackMatch::setDeltaPhi | ( | int | sampl, |
double | value, | ||
bool | overwrite = false |
||
) |
Definition at line 264 of file EMTrackMatch.cxx.
void EMTrackMatch::setDeltaPhiLast | ( | double | value, |
bool | overwrite = false |
||
) |
Definition at line 319 of file EMTrackMatch.cxx.
void EMTrackMatch::setDeltaPhiRescaled | ( | double | value, |
bool | overwrite = false |
||
) |
Definition at line 288 of file EMTrackMatch.cxx.
void EMTrackMatch::setDeltaPhiRot | ( | double | value, |
bool | overwrite = false |
||
) |
Definition at line 308 of file EMTrackMatch.cxx.
void EMTrackMatch::setEtaExtrap | ( | int | sampl, |
double | value, | ||
bool | overwrite = false |
||
) |
Definition at line 208 of file EMTrackMatch.cxx.
void EMTrackMatch::setEtaSampling1 | ( | double | value, |
bool | overwrite = false |
||
) |
Definition at line 278 of file EMTrackMatch.cxx.
void EMTrackMatch::setextrapMethod | ( | TrkExtrapDef | value, |
bool | overwrite = false |
||
) |
Definition at line 299 of file EMTrackMatch.cxx.
void EMTrackMatch::setPhiExtrap | ( | int | sampl, |
double | value, | ||
bool | overwrite = false |
||
) |
Definition at line 222 of file EMTrackMatch.cxx.
void EMTrackMatch::setPhiRescaled | ( | int | sampl, |
double | value, | ||
bool | overwrite = false |
||
) |
Definition at line 236 of file EMTrackMatch.cxx.
double EMTrackMatch::trackd0_physics | ( | ) | const |
return track transverse impact parameter wrt beam spot
Definition at line 680 of file EMTrackMatch.cxx.
double EMTrackMatch::trackd0_pv | ( | ) | const |
return track transverse impact parameter wrt primary vertex
Definition at line 689 of file EMTrackMatch.cxx.
double EMTrackMatch::trackd0sigma_physics | ( | ) | const |
return track transverse impact parameter wrt beam spot
Definition at line 698 of file EMTrackMatch.cxx.
double EMTrackMatch::trackd0sigma_pv | ( | ) | const |
return track transverse impact parameter wrt primary vertex
Definition at line 707 of file EMTrackMatch.cxx.
int EMTrackMatch::trackNumber | ( | ) | const |
index number in TrackContainer (counting starts at 1 for sake of CBNT)
Definition at line 633 of file EMTrackMatch.cxx.
bool EMTrackMatch::trackRefit | ( | ) | const |
true if track was refitted to account for brem effects
Definition at line 658 of file EMTrackMatch.cxx.
int EMTrackMatch::tracksInBroadWindow | ( | ) | const |
number of tracks in isolation window (taken at sampling 2): (# primary tracks if matched track is primary; otherwise all tracks) note: overload used to distinguish get/set method
Definition at line 664 of file EMTrackMatch.cxx.
void EMTrackMatch::tracksInBroadWindow | ( | int | value, |
bool | overwrite = true |
||
) |
Definition at line 674 of file EMTrackMatch.cxx.
|
private |
Definition at line 179 of file EMTrackMatch.h.
|
private |
Definition at line 180 of file EMTrackMatch.h.