|
ATLAS Offline Software
|
Go to the documentation of this file.
19 const std::string& quality ) {
20 std::string decoName =
"LinkedElectron_" + quality;
21 return getLinkedObject< xAOD::ElectronContainer >(
track, decoName );
27 const std::string& quality ) {
28 std::string decoName =
"LinkedMuon_" + quality;
29 return getLinkedObject< xAOD::MuonContainer >(
track, decoName );
35 const int requiredNtracks,
36 const std::string&
type,
37 const std::string& quality ) {
38 std::string decoName =
"LinkedTau" +
type +
40 return getLinkedObject< xAOD::TauJetContainer >(
track, decoName );
47 track,
"truthParticleLink" );
48 return ( truth ==
nullptr );
60 const float truthProbCut ) {
62 if( std::isnan(
prob) )
return nullptr;
63 if(
prob <= truthProbCut )
return nullptr;
65 return getLinkedObject< xAOD::TruthParticleContainer >(
66 track,
"truthParticleLink" );
77 return (
prob < truthProbCut );
88 return (
nSiHits(truth) >= minSilHits.at(
bin ) );
float getTruthMatchProb(const xAOD::TrackParticle &track)
getTruthMatchProb
const xAOD::TauJet * getLinkedTau(const xAOD::TrackParticle &track, const int requiredNtracks, const std::string &type, const std::string &quality)
getLinkedTau
const xAOD::TruthParticle * getLinkedTruth(const xAOD::TrackParticle &track, const float truthProbCut)
getLinkedTruth
const xAOD::Electron * getLinkedElectron(const xAOD::TrackParticle &track, const std::string &quality)
getLinkedElectron
Utility methods to access track/truth particles parmeters in a consitent way in this package.
Class describing a truth particle in the MC record.
Class describing a tau jet.
const xAOD::Muon * getLinkedMuon(const xAOD::TrackParticle &track, const std::string &quality)
getLinkedMuon
std::string to_string(const DetectorType &type)
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
bool absEta(const xAOD::TauJet &tau, double &out)
bool isReconstructable(const xAOD::TruthParticle &truth, const std::vector< unsigned int > &minSilHits, const std::vector< float > &etaBins)
isReconstructable
bool isFakeTruth(const xAOD::TrackParticle &track, const float truthProbCut, const bool unlinkedAsFakes)
isFake
Class describing a TrackParticle.
Helper class to provide constant type-safe access to aux data.
Utility methods to access offline object decorations.
float distance(const Amg::Vector3D &p1, const Amg::Vector3D &p2)
calculates the distance between two point in 3D space
bool isUnlinkedTruth(const xAOD::TrackParticle &track)
isUnlinkedTruth
float nSiHits(const U &p)
const_reference_type withDefault(const ELT &e, const T &deflt) const
Fetch the variable for one element, as a const reference, with a default.