|
ATLAS Offline Software
|
Go to the documentation of this file.
47 trackAcc(
"trackParticleLinks" );
50 return trackAcc( *this ).size();
92 if(!acc->isAvailable( *
this) ){
96 value = ( *acc )( *this );
102 if(!acc )
throw std::runtime_error(
"Unknown/Unavailable Track to Calo Match type requested" );
103 return ( *acc )( *this );
110 if( !acc )
return false;
112 ( *acc )( *this ) =
value;
117 const std::array<double, 4> &
deltaEta,
118 const std::array<double, 4> &
deltaPhi,
143 if (!tempTrackParticle)
return false;
150 if (!tempTrackParticle)
return false;
156 if (!tempTrackParticle) {
157 throw std::runtime_error(
"TrackParticle not available" );
161 throw std::runtime_error(
"Unknown/Unavailable Int Track Summary type requested" );
168 if (!tempTrackParticle) {
169 throw std::runtime_error(
"TrackParticle not available" );
173 throw std::runtime_error(
"Unknown/Unavailable Float Track Summary type requested" );
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1, float, IP2D_pb, setIP2D_pb) AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1
@ deltaPhiRescaled
difference between the cluster phi (sampling 2) and the phi of the track extrapolated from the perige...
@ deltaPhi0
difference between the cluster phi (presampler) and the eta of the track extrapolated to the presampl...
Electron_v1 Electron
Definition of the current "egamma version".
@ deltaPhi3
difference between the cluster eta (3rd sampling) and the eta of the track extrapolated to the 3rd sa...
Helper class to provide type-safe access to aux data.
setSAddress setEtaMS setDirPhiMS setDirZMS setBarrelRadius setEndcapAlpha setEndcapRadius setInterceptInner setEtaMap setEtaBin setIsTgcFailure setDeltaPt deltaPhi
bool summaryValue(uint8_t &value, const SummaryType &information) const
Accessor for TrackSummary values.
Electron_v1()
Default constructor. No store is attached.
@ deltaEta0
difference between the cluster eta (presampler) and the eta of the track extrapolated to the presampl...
float trackParticleSummaryFloatValue(const SummaryType information, int index=0) const
@ deltaEta2
difference between the cluster eta (second sampling) and the eta of the track extrapolated to the sec...
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
const xAOD::TrackParticle * trackParticle(size_t index=0) const
Pointer to the xAOD::TrackParticle/s that match the electron candidate.
@ deltaPhiRescaled3
difference between the cluster eta (3rd sampling) and the eta of the track extrapolated to the 3rd sa...
bool isValid(const T &p)
Av: we implement here an ATLAS-sepcific convention: all particles which are 99xxxxx are fine.
std::vector< ElementLink< TrackParticleContainer > > TPELVec_t
Helper type definition.
bool trackCaloMatchValue(float &value, const EgammaParameters::TrackCaloMatchType information) const
Accessor for Track to Calo Match Values.
size_t nTrackParticles() const
Return the number xAOD::TrackParticles that match the electron candidate.
const ElementLink< TrackParticleContainer > & trackParticleLink(size_t index=0) const
ElementLink to the xAOD::TrackParticle/s that match the electron candidate.
@ deltaPhi1
difference between the cluster eta (1st sampling) and the eta of the track extrapolated to the 1st sa...
size_t index() const
Return the index of this element within its container.
@ deltaPhiFromLastMeasurement
difference between the cluster phi (sampling 2) and the eta of the track extrapolated from the last m...
SummaryType
Enumerates the different types of information stored in Summary.
double deltaEta(const I4Momentum &p1, const I4Momentum &p2)
Computes efficiently .
Egamma_v1 & operator=(const Egamma_v1 &eg)
Assignment Operator. Using the assignment of SG::AuxElement.
@ deltaEta3
difference between the cluster eta (3rd sampling) and the eta of the track extrapolated to the 3rd sa...
const SG::AuxElement::Accessor< float > * trackCaloMatchAccessorV1(xAOD::EgammaParameters::TrackCaloMatchType type)
Helper function for managing Egamma Accessor objects.
std::vector< ElementLink< xAOD::TrackParticleContainer > > trackParticleLinks(const xAOD::TauJet *tau, xAOD::TauJetParameters::TauTrackFlag flag=xAOD::TauJetParameters::TauTrackFlag::classifiedCharged)
@ deltaPhiRescaled2
difference between the cluster phi (second sampling) and the phi of the track extrapolated to the sec...
@ deltaPhiRescaled0
difference between the cluster phi (presampler) and the eta of the track extrapolated to the presampl...
Electron_v1 & operator=(const Electron_v1 &el)
Assignment Operator. Ends up using the assignment of AuxElement for the store.
ElementLink implementation for ROOT usage.
@ deltaPhiLast
deltaPhi from the las point
@ deltaPhi2
difference between the cluster phi (second sampling) and the phi of the track extrapolated to the sec...
void makePrivateStore()
Create a new (empty) private store for this object.
uint8_t trackParticleSummaryIntValue(const SummaryType information, int index=0) const
Accessor to the matching track(s) int information (index = 0 is the best match) Will lead to an excep...
@ deltaPhiRescaled1
difference between the cluster eta (1st sampling) and the eta of the track extrapolated to the 1st sa...
bool trackParticleSummaryValue(uint8_t &value, const SummaryType information, int index=0) const
Accessor to the matching track(s) float information (index = 0 is the best match) If 'information' is...
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
Class describing a TrackParticle.
bool setTrackCaloMatchValues(const std::array< double, 4 > &deltaEta, const std::array< double, 4 > &deltaPhi, const std::array< double, 4 > &deltaPhiRescaled, const double deltaPhiLast)
Convinience wrapper for setTrackCaloMatchValue.
@ deltaEta1
difference between the cluster eta (first sampling) and the eta of the track extrapolated to the firs...
const TPELVec_t & trackParticleLinks() const
Get all the track particles.
bool setTrackCaloMatchValue(const float value, const EgammaParameters::TrackCaloMatchType information)
Set method for Track to Calo Match values.
AUXSTORE_OBJECT_SETTER_AND_GETTER(CaloRings_v1, RingSetLinks, ringSetLinks, setRingSetLinks) unsigned CaloRings_v1