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;}
SG::Accessor< T, ALLOC > Accessor
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
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.
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.
float getLastMeasurementQoverP(const xAOD::TrackParticle *tp)
return parameters for the last measurement for a GSF track particle
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
const xAOD::TrackParticle * getOriginalTrackParticle(const xAOD::Electron *el)
Helper function for getting the "Original" Track Particle (i.e before GSF) via the electron.
TrackParticle_v1 TrackParticle
Reference the current persistent version:
@ numberOfSCTHits
number of hits in SCT [unit8_t].
@ numberOfPixelHits
these are the pixel hits, including the b-layer [unit8_t].
Electron_v1 Electron
Definition of the current "egamma version".