|
ATLAS Offline Software
|
Go to the documentation of this file.
24 if(! trkPar) {
return nullptr;}
26 if (!orig.
isAvailable(*trkPar) || !orig(*trkPar).isValid()) {
return nullptr;}
28 return (*orig(*trkPar));
42 std::set<const xAOD::TrackParticle*> tps;
43 for (
unsigned int i = 0;
i <
el->nTrackParticles(); ++
i){
46 if (
tp) tps.insert(
tp );
47 if (!allParticles)
break;
56 std::vector<const xAOD::TrackParticle*> tps;
57 for (
unsigned int i = 0;
i <
el->nTrackParticles(); ++
i){
60 if (
tp) {tps.push_back(
tp );}
61 if (!allParticles) {
break;}
Helper class to provide type-safe access to aux data.
float getLastMeasurementQoverP(const xAOD::TrackParticle *tp)
return parameters for the last measurement for a GSF track particle
@ numberOfPixelHits
these are the pixel hits, including the b-layer [unit8_t].
std::set< const xAOD::TrackParticle * > getTrackParticles(const xAOD::Egamma *eg, bool useBremAssoc=true, bool allParticles=true)
Return a list of all or only the best TrackParticle associated to the object.
std::vector< const xAOD::TrackParticle * > getTrackParticlesVec(const xAOD::Egamma *eg, bool useBremAssoc=true, bool allParticles=true)
Return a list of all or only the best TrackParticle associated to the object.
const xAOD::TrackParticle * getOriginalTrackParticleFromGSF(const xAOD::TrackParticle *trkPar)
Helper function for getting the "Original" Track Particle (i.e before GSF) via the GSF Track Particle...
std::size_t numberOfSiHits(const xAOD::TrackParticle *tp)
return the number of Si hits in the track particle
@ numberOfSCTHits
number of hits in SCT [unit8_t].
const xAOD::TrackParticle * getOriginalTrackParticle(const xAOD::Electron *el)
Helper function for getting the "Original" Track Particle (i.e before GSF) via the electron.
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
Class describing a TrackParticle.
float nSiHits(const U &p)