Go to the documentation of this file. 1 #ifndef DataFormats_PatCandidates_Tau_h
2 #define DataFormats_PatCandidates_Tau_h
60 typedef std::pair<std::string, float>
IdPair;
145 const std::vector<reco::PFCandidatePtr>&
signalPFCands()
const;
383 float jecFactor(
const unsigned int&
level,
const unsigned int& set = 0)
const;
475 std::vector<pat::TauJetCorrFactors>
jec_;
const std::vector< reco::PFRecoTauChargedHadron > & isolationTauChargedHadronCandidates() const
bool jecSetsAvailable() const
const reco::CandidatePtr leadChargedHadrCand() const
const std::vector< reco::PFCandidatePtr > & isolationPFNeutrHadrCands() const
float hcalTotOverPLead() const
void setSignalGammaCands(const reco::CandidatePtrVector &ptrs)
unsigned int currentJECLevel_
void initFromBaseTau(const reco::BaseTau &aTau)
helper to avoid code duplication in constructors
void embedSignalPFCands()
method to store the signal candidates internally
bool embeddedLeadPFChargedHadrCand_
float ecalStripSumEOverPLead_
reco::CandidatePtrVector isolationChargedHadrCandPtrs_
Jets made from MC generator particles.
void setGenJet(const reco::GenJetRef &ref)
set the matched GenJet
float isolationPFGammaCandsEtSum_
float maximumHCALPFClusterEt_
std::vector< reco::Track > leadTrack_
const reco::PFCandidatePtr leadPFNeutralCand() const
float leadingTrackNormChi2() const
return normalized chi2 of leading track
float ecalStripSumEOverPLead() const
const reco::CandidatePtr leadCand() const
return the PFCandidate if available (reference or embedded), or the PackedPFCandidate on miniAOD
float isolationPFChargedHadrCandsPtSum_
const pat::tau::TauPFEssential::Vector & flightLength() const
const LorentzVector & correctedP4(const unsigned int &level, const unsigned int &set=0) const
std::vector< reco::PFCandidate > isolationPFChargedHadrCands_
float etaAtEcalEntranceLeadChargedCand_
void setIsolationNeutralHadrCands(const reco::CandidatePtrVector &ptrs)
float ecalEnergyLeadChargedHadrCand() const
bool jecSetAvailable(const unsigned int &set) const
int decayMode() const
reconstructed tau decay mode (specific to PFTau)
reco::CandidatePtrVector signalGammaCandPtrs_
void embedLeadPFChargedHadrCand()
method to store the leading charged hadron candidate internally
void embedSignalPFNeutralHadrCands()
method to store the signal neutral hadrons candidates internally
float maximumHCALPFClusterEt() const
Analysis-level tau class.
bool embeddedSignalPFCands_
reco::CandidatePtrVector isolationNeutralHadrCandPtrs_
bool embeddedSignalTracks_
float electronPreIDOutput() const
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > isolationPFNeutralHadrCandsTransientPtrs_
float emFraction_MVA() const
return emFraction_MVA
reco::CandidatePtrVector signalChargedHadrCands() const
void embedLeadPFNeutralCand()
method to store the leading neutral candidate internally
std::vector< reco::PFCandidate > signalPFGammaCands_
float leadPFChargedHadrCandsignedSipt() const
pat::tau::TauPFEssential::CovMatrix flightLengthCov() const
reco::JetBaseRef pfJetRef_
std::vector< pat::tau::TauPFEssential > pfEssential_
std::vector< pat::TauJetCorrFactors > jec_
void addJECFactors(const TauJetCorrFactors &jec)
add more sets of energy correction factors
reco::CandidatePtrVector signalNeutrHadrCands() const
bool hasSecondaryVertex() const
std::vector< reco::PFCandidate > isolationPFCands_
std::vector< reco::PFCandidate > leadPFChargedHadrCand_
reco::TrackRef leadTrack() const override
override the reco::BaseTau::leadTrack method, to access the internal storage of the leading track
float tauID(const std::string &name) const
std::string currentJECSet() const
returns the label of the current set of jet energy corrections
reco::CandidatePtrVector isolationCands() const
float hcalEnergyLeadChargedHadrCand() const
return hcal energy from LeadChargedHadrCand
bool embeddedIsolationTracks_
float flightLengthSig() const
reco::CandidatePtrVector signalCands() const
const reco::VertexRef & secondaryVertex() const
const std::vector< reco::PFCandidatePtr > & isolationPFChargedHadrCands() const
reco::CandidatePtrVector signalNeutralHadrCandPtrs_
float hcal3x3OverPLead() const
float phiphiMoment() const
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > isolationPFCandsTransientPtrs_
const std::vector< reco::PFCandidatePtr > & signalPFGammaCands() const
float bremsRecoveryEOverPLead() const
bool embeddedLeadPFNeutralCand_
reco::CandidatePtrVector isolationChargedHadrCands() const
float tauID(const char *name) const
const pat::tau::TauPFEssential::Point & secondaryVertexPos() const
bool isPFTau() const
Returns true if this pat::Tau was made from a reco::PFTau.
const reco::PFCandidatePtr leadPFCand() const
size_t numberOfSourceCandidatePtrs() const override
void embedSignalTracks()
method to store the signal tracks internally
edm::AtomicPtrCache< reco::TrackRefVector > signalTracksTransientRefVector_
reco::Candidate::LorentzVector p4Jet() const
reco::CandidatePtrVector isolationGammaCandPtrs_
void initializeJEC(unsigned int level, const unsigned int set=0)
initialize the jet to a given JEC level during creation starting from Uncorrected
const std::vector< reco::PFRecoTauChargedHadron > & signalTauChargedHadronCandidates() const
const std::vector< std::string > availableJECLevels(const std::string &set) const
void embedSignalPFGammaCands()
method to store the signal gamma candidates internally
void setSignalNeutralHadrCands(const reco::CandidatePtrVector &ptrs)
const reco::TrackRefVector & signalTracks() const override
override the reco::BaseTau::signalTracks method, to access the internal storage of the signal tracks
bool ExistIsolationCands() const
bool electronPreIDDecision_
const std::vector< reco::PFCandidatePtr > & signalPFCands() const
float jecFactor(const std::string &level, const std::string &set="") const
bool embeddedSignalPFChargedHadrCands_
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > isolationPFChargedHadrCandsTransientPtrs_
void embedIsolationTracks()
method to store the isolation tracks internally
bool muonDecision() const
unsigned int currentJECSet_
bool embeddedIsolationPFChargedHadrCands_
const reco::PFCandidatePtr leadPFChargedHadrCand() const
const std::vector< reco::RecoTauPiZero > & signalPiZeroCandidates() const
const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception 'not PFTau'
float electronPreIDOutput_
void embedIsolationPFCands()
method to store the isolation candidates internally
const std::vector< reco::PFCandidatePtr > & isolationPFCands() const
const std::vector< reco::PFCandidatePtr > & signalPFNeutrHadrCands() const
std::vector< reco::PFCandidate > isolationPFGammaCands_
const reco::VertexRef & primaryVertex() const
std::vector< reco::PFCandidate > leadPFNeutralCand_
float etaAtEcalEntrance() const
return etaAtEcalEntrance
const pat::tau::TauPFEssential::CovMatrix & primaryVertexCov() const
reco::CandidatePtr sourceCandidatePtr(size_type i) const override
get the source candidate pointer with index i
std::vector< reco::PFCandidate > signalPFNeutralHadrCands_
std::string currentJECLevel() const
return the name of the current step of jet energy corrections
std::vector< pat::tau::TauPFSpecific > pfSpecific_
holder for PFTau info, or empty vector if CaloTau
reco::PFRecoTauChargedHadronRef leadTauChargedHadronCandidate() const
void currentJECLevel(const unsigned int &level)
update the current JEC level; used by correctedJet
const reco::JetBaseRef & pfJetRef() const
reco::CandidatePtrVector signalChargedHadrCandPtrs_
const LorentzVector & p4() const final
four-momentum Lorentz vector
float hcalMaxOverPLead() const
bool electronPreIDDecision() const
std::ostream & operator<<(std::ostream &, BeamSpot beam)
float bremsRecoveryEOverPLead_
float leadPFChargedHadrCandsignedSipt_
reco::CandidatePtrVector isolationNeutrHadrCands() const
void embedLeadTrack()
method to store the leading track internally
float leadingTrackNormChi2_
void embedSignalPFChargedHadrCands()
method to store the signal charged hadrons candidates internally
const std::vector< reco::PFCandidatePtr > & isolationPFGammaCands() const
void embedIsolationPFGammaCands()
method to store the isolation gamma candidates internally
reco::TrackRef electronPreIDTrack_
float etaetaMoment() const
std::vector< reco::GenJet > genJet_
float phiAtEcalEntrance() const
return phiAtEcalEntrance
void setDecayMode(int)
set decay mode
bool ExistSignalCands() const
Tau correctedTauJet(const std::string &level, const std::string &set="") const
const std::vector< std::string > availableJECLevels(const int &set=0) const
bool embeddedIsolationPFCands_
const pat::tau::TauPFEssential::Point & primaryVertexPos() const
std::vector< Tau > TauCollection
edm::AtomicPtrCache< reco::TrackRefVector > isolationTracksTransientRefVector_
float ecalEnergyLeadChargedHadrCand_
const reco::TrackRef & electronPreIDTrack() const
std::vector< reco::PFCandidate > leadPFCand_
edm::RefProd< TauCollection > TauRefProd
edm::Ref< TauCollection > TauRef
std::vector< reco::PFCandidate > isolationPFNeutralHadrCands_
const reco::CandidatePtr leadNeutralCand() const
return the PFCandidate if available (reference or embedded), or the PackedPFCandidate on miniAOD
const pat::tau::TauPFEssential::CovMatrix & secondaryVertexCov() const
float hcalEnergy() const
return sum of hcal energies from signal candidates
bool embeddedIsolationPFGammaCands_
float etaAtEcalEntranceLeadChargedCand() const
return etaAtEcalEntrance from LeadChargedCand
edm::RefVector< TauCollection > TauRefVector
float etaphiMoment() const
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > signalPFNeutralHadrCandsTransientPtrs_
const std::vector< std::string > availableJECSets() const
std::vector< reco::PFCandidate > signalPFCands_
const std::vector< IdPair > & tauIDs() const
bool embeddedIsolationPFNeutralHadrCands_
float isolationPFChargedHadrCandsPtSum() const
reco::CandidatePtrVector signalGammaCands() const
void setIsolationChargedHadrCands(const reco::CandidatePtrVector &ptrs)
const reco::TrackRefVector & isolationTracks() const override
override the reco::BaseTau::isolationTracks method, to access the internal storage of the isolation t...
Tau * clone() const override
required reimplementation of the Candidate's clone method
float ptLeadChargedCand() const
return pt from LeadChargedCand
bool jecSetAvailable(const std::string &set) const
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > isolationPFGammaCandsTransientPtrs_
std::vector< IdPair > tauIDs_
std::vector< reco::Track > signalTracks_
const std::vector< reco::RecoTauPiZero > & isolationPiZeroCandidates() const
const pat::tau::TauPFEssential & pfEssential() const
const std::vector< reco::PFCandidatePtr > & signalPFChargedHadrCands() const
float isolationPFGammaCandsEtSum() const
const pat::tau::TauPFEssential::Point & dxy_PCA() const
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > signalPFChargedHadrCandsTransientPtrs_
void setSignalChargedHadrCands(const reco::CandidatePtrVector &ptrs)
setters for the PtrVectors (for miniAOD)
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > signalPFCandsTransientPtrs_
math::XYZTLorentzVector LorentzVector
Lorentz vector.
void setTauIDs(const std::vector< IdPair > &ids)
std::vector< reco::PFCandidate > signalPFChargedHadrCands_
int jecSet(const std::string &label) const
const LorentzVector & correctedP4(const std::string &level, const std::string &set="") const
bool isTauIDAvailable(const std::string &name) const
Returns true if a specific ID is available in this pat::Tau.
void embedIsolationPFNeutralHadrCands()
method to store the isolation neutral hadrons candidates internally
~Tau() override
destructor
void setIsolationGammaCands(const reco::CandidatePtrVector &ptrs)
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > signalPFGammaCandsTransientPtrs_
math::ErrorF< 3 >::type CovMatrix
void embedIsolationPFChargedHadrCands()
method to store the isolation charged hadrons candidates internally
std::pair< std::string, float > IdPair
void currentJECSet(const unsigned int &set)
update the current JEC set; used by correctedJet
const reco::GenJet * genJet() const
return matched GenJet, built from the visible particles of a generated tau
bool embeddedSignalPFNeutralHadrCands_
bool embeddedSignalPFGammaCands_
std::vector< reco::Track > isolationTracks_
reco::CandidatePtrVector isolationGammaCands() const
float hcalEnergyLeadChargedHadrCand_