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