CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends
pat::Tau Class Reference

Analysis-level tau class. More...

#include "DataFormats/PatCandidates/interface/Tau.h"

Inheritance diagram for pat::Tau:
pat::Lepton< reco::BaseTau > pat::PATObject< reco::BaseTau > reco::BaseTau reco::RecoCandidate reco::LeafCandidate reco::Candidate

Public Types

typedef std::pair< std::string, float > IdPair
 
- Public Types inherited from pat::PATObject< reco::BaseTau >
typedef reco::BaseTau base_type
 
- Public Types inherited from reco::RecoCandidate
enum  TrackType { noTrackType, recoTrackType, gsfTrackType }
 track type More...
 
- Public Types inherited from reco::LeafCandidate
typedef int Charge
 electric charge type More...
 
typedef CandidateCollection daughters
 collection of daughter candidates More...
 
typedef unsigned int index
 
typedef math::XYZTLorentzVector LorentzVector
 Lorentz vector. More...
 
typedef math::XYZPoint Point
 point in the space More...
 
typedef math::PtEtaPhiMLorentzVector PolarLorentzVector
 Lorentz vector. More...
 
typedef math::XYZVector Vector
 point in the space More...
 
- Public Types inherited from reco::Candidate
enum  { dimension = 3 }
 
enum  { size = dimension * (dimension + 1) / 2 }
 matix size More...
 
typedef int Charge
 electric charge type More...
 
typedef candidate::const_iterator const_iterator
 
typedef math::Error< dimension >::type CovarianceMatrix
 covariance error matrix (3x3) More...
 
typedef unsigned int index
 index type More...
 
typedef candidate::iterator iterator
 
typedef math::XYZTLorentzVector LorentzVector
 Lorentz vector. More...
 
typedef math::XYZPoint Point
 point in the space More...
 
typedef math::PtEtaPhiMLorentzVector PolarLorentzVector
 Lorentz vector. More...
 
typedef size_t size_type
 
typedef math::XYZVector Vector
 point in the space More...
 

Public Member Functions

const std::vector< std::string > availableJECLevels (const int &set=0) const
 
const std::vector< std::string > availableJECLevels (const std::string &set) const
 
const std::vector< std::string > availableJECSets () const
 
float bremsRecoveryEOverPLead () const
 
float caloComp () const
 
Tauclone () const override
 required reimplementation of the Candidate's clone method More...
 
const LorentzVectorcorrectedP4 (const std::string &level, const std::string &set="") const
 
const LorentzVectorcorrectedP4 (const unsigned int &level, const unsigned int &set=0) const
 
Tau correctedTauJet (const std::string &level, const std::string &set="") const
 
Tau correctedTauJet (const unsigned int &level, const unsigned int &set=0) const
 
std::string currentJECLevel () const
 return the name of the current step of jet energy corrections More...
 
std::string currentJECSet () const
 returns the label of the current set of jet energy corrections More...
 
int decayMode () const
 reconstructed tau decay mode (specific to PFTau) More...
 
float dxy () const
 
float dxy_error () const
 
const pat::tau::TauPFEssential::Pointdxy_PCA () const
 
float dxy_Sig () const
 
float ecalEnergy () const
 
float ecalEnergyLeadChargedHadrCand () const
 
float ecalStripSumEOverPLead () const
 
bool electronPreIDDecision () const
 
float electronPreIDOutput () const
 
const reco::TrackRefelectronPreIDTrack () const
 
void embedIsolationPFCands ()
 method to store the isolation candidates internally More...
 
void embedIsolationPFChargedHadrCands ()
 method to store the isolation charged hadrons candidates internally More...
 
void embedIsolationPFGammaCands ()
 method to store the isolation gamma candidates internally More...
 
void embedIsolationPFNeutralHadrCands ()
 method to store the isolation neutral hadrons candidates internally More...
 
void embedIsolationTracks ()
 method to store the isolation tracks internally More...
 
void embedLeadPFCand ()
 
void embedLeadPFChargedHadrCand ()
 method to store the leading charged hadron candidate internally More...
 
void embedLeadPFNeutralCand ()
 method to store the leading neutral candidate internally More...
 
void embedLeadTrack ()
 method to store the leading track internally More...
 
void embedSignalPFCands ()
 method to store the signal candidates internally More...
 
void embedSignalPFChargedHadrCands ()
 method to store the signal charged hadrons candidates internally More...
 
void embedSignalPFGammaCands ()
 method to store the signal gamma candidates internally More...
 
void embedSignalPFNeutralHadrCands ()
 method to store the signal neutral hadrons candidates internally More...
 
void embedSignalTracks ()
 method to store the signal tracks internally More...
 
float emFraction () const
 
float emFraction_MVA () const
 return emFraction_MVA More...
 
float etaAtEcalEntrance () const
 return etaAtEcalEntrance More...
 
float etaAtEcalEntranceLeadChargedCand () const
 return etaAtEcalEntrance from LeadChargedCand More...
 
float etaetaMoment () const
 
float etaphiMoment () const
 
bool ExistIsolationCands () const
 
bool ExistSignalCands () const
 
const pat::tau::TauPFEssential::VectorflightLength () const
 
pat::tau::TauPFEssential::CovMatrix flightLengthCov () const
 
float flightLengthSig () const
 
const reco::GenJetgenJet () const
 return matched GenJet, built from the visible particles of a generated tau More...
 
bool hasSecondaryVertex () const
 
float hcal3x3OverPLead () const
 
float hcalEnergy () const
 return sum of hcal energies from signal candidates More...
 
float hcalEnergyLeadChargedHadrCand () const
 return hcal energy from LeadChargedHadrCand More...
 
float hcalMaxOverPLead () const
 
float hcalTotOverPLead () const
 
float ip3d () const
 
float ip3d_error () const
 
float ip3d_Sig () const
 
reco::CandidatePtrVector isolationCands () const
 
reco::CandidatePtrVector isolationChargedHadrCands () const
 
reco::CandidatePtrVector isolationGammaCands () const
 
reco::CandidatePtrVector isolationNeutrHadrCands () const
 
const std::vector< reco::PFCandidatePtr > & isolationPFCands () const
 
const std::vector< reco::PFCandidatePtr > & isolationPFChargedHadrCands () const
 
float isolationPFChargedHadrCandsPtSum () const
 
const std::vector< reco::PFCandidatePtr > & isolationPFGammaCands () const
 
float isolationPFGammaCandsEtSum () const
 
const std::vector< reco::PFCandidatePtr > & isolationPFNeutrHadrCands () const
 
const std::vector< reco::RecoTauPiZero > & isolationPiZeroCandidates () const
 
const std::vector< reco::PFRecoTauChargedHadron > & isolationTauChargedHadronCandidates () const
 
const reco::TrackRefVectorisolationTracks () const override
 override the reco::BaseTau::isolationTracks method, to access the internal storage of the isolation tracks More...
 
bool isPFTau () const
 Returns true if this pat::Tau was made from a reco::PFTau. More...
 
bool isTauIDAvailable (const std::string &name) const
 Returns true if a specific ID is available in this pat::Tau. More...
 
float jecFactor (const std::string &level, const std::string &set="") const
 
float jecFactor (const unsigned int &level, const unsigned int &set=0) const
 
bool jecSetAvailable (const std::string &set) const
 
bool jecSetAvailable (const unsigned int &set) const
 
bool jecSetsAvailable () const
 
const reco::CandidatePtr leadCand () const
 return the PFCandidate if available (reference or embedded), or the PackedPFCandidate on miniAOD More...
 
const reco::CandidatePtr leadChargedHadrCand () const
 
float leadingTrackNormChi2 () const
 return normalized chi2 of leading track More...
 
const reco::CandidatePtr leadNeutralCand () const
 return the PFCandidate if available (reference or embedded), or the PackedPFCandidate on miniAOD More...
 
const reco::PFCandidatePtr leadPFCand () const
 
const reco::PFCandidatePtr leadPFChargedHadrCand () const
 
float leadPFChargedHadrCandsignedSipt () const
 
const reco::PFCandidatePtr leadPFNeutralCand () const
 
reco::PFRecoTauChargedHadronRef leadTauChargedHadronCandidate () const
 
reco::TrackRef leadTrack () const override
 override the reco::BaseTau::leadTrack method, to access the internal storage of the leading track More...
 
float maximumHCALPFClusterEt () const
 
bool muonDecision () const
 
size_t numberOfSourceCandidatePtrs () const override
 
reco::Candidate::LorentzVector p4Jet () const
 
const pat::tau::TauPFEssentialpfEssential () const
 
const reco::JetBaseRefpfJetRef () const
 
const pat::tau::TauPFSpecificpfSpecific () const
 return PFTau info or throw exception 'not PFTau' More...
 
float phiAtEcalEntrance () const
 return phiAtEcalEntrance More...
 
float phiphiMoment () const
 
const reco::VertexRefprimaryVertex () const
 
const pat::tau::TauPFEssential::CovMatrixprimaryVertexCov () const
 
const pat::tau::TauPFEssential::PointprimaryVertexPos () const
 
float ptLeadChargedCand () const
 return pt from LeadChargedCand More...
 
const reco::VertexRefsecondaryVertex () const
 
const pat::tau::TauPFEssential::CovMatrixsecondaryVertexCov () const
 
const pat::tau::TauPFEssential::PointsecondaryVertexPos () const
 
float segComp () const
 
void setDecayMode (int)
 set decay mode More...
 
void setGenJet (const reco::GenJetRef &ref)
 set the matched GenJet More...
 
void setIsolationChargedHadrCands (const reco::CandidatePtrVector &ptrs)
 
void setIsolationGammaCands (const reco::CandidatePtrVector &ptrs)
 
void setIsolationNeutralHadrCands (const reco::CandidatePtrVector &ptrs)
 
void setSignalChargedHadrCands (const reco::CandidatePtrVector &ptrs)
 setters for the PtrVectors (for miniAOD) More...
 
void setSignalGammaCands (const reco::CandidatePtrVector &ptrs)
 
void setSignalNeutralHadrCands (const reco::CandidatePtrVector &ptrs)
 
void setTauIDs (const std::vector< IdPair > &ids)
 
reco::CandidatePtrVector signalCands () const
 
reco::CandidatePtrVector signalChargedHadrCands () const
 
reco::CandidatePtrVector signalGammaCands () const
 
reco::CandidatePtrVector signalNeutrHadrCands () const
 
const std::vector< reco::PFCandidatePtr > & signalPFCands () const
 
const std::vector< reco::PFCandidatePtr > & signalPFChargedHadrCands () const
 
const std::vector< reco::PFCandidatePtr > & signalPFGammaCands () const
 
const std::vector< reco::PFCandidatePtr > & signalPFNeutrHadrCands () const
 
const std::vector< reco::RecoTauPiZero > & signalPiZeroCandidates () const
 
const std::vector< reco::PFRecoTauChargedHadron > & signalTauChargedHadronCandidates () const
 
const reco::TrackRefVectorsignalTracks () const override
 override the reco::BaseTau::signalTracks method, to access the internal storage of the signal tracks More...
 
reco::CandidatePtr sourceCandidatePtr (size_type i) const override
 get the source candidate pointer with index i More...
 
 Tau ()
 default constructor More...
 
 Tau (const edm::Ptr< reco::BaseTau > &aTauRef)
 constructor from a Ptr to a reco tau More...
 
 Tau (const edm::RefToBase< reco::BaseTau > &aTauRef)
 constructor from a RefToBase to a reco tau (to be superseded by Ptr counterpart) More...
 
 Tau (const reco::BaseTau &aTau)
 constructor from a reco tau More...
 
float tauID (const char *name) const
 
float tauID (const std::string &name) const
 
const std::vector< IdPair > & tauIDs () const
 
 ~Tau () override
 destructor More...
 
- Public Member Functions inherited from pat::Lepton< reco::BaseTau >
float caloIso () const
 
float chargedHadronIso () const
 
Lepton< reco::BaseTau > * clone () const override
 
float ecalIso () const
 
const IsoDepositecalIsoDeposit () const
 
void ecalIsoDeposit (const IsoDeposit &dep)
 
const reco::GenParticlegenLepton () const
 
float hcalIso () const
 
const IsoDeposithcalIsoDeposit () const
 
void hcalIsoDeposit (const IsoDeposit &dep)
 
const IsoDepositisoDeposit (IsolationKeys key) const
 Returns the IsoDeposit associated with some key, or a null pointer if it is not available. More...
 
 Lepton ()
 default constructor More...
 
 Lepton (const edm::Ptr< reco::BaseTau > &aLeptonRef)
 constructor from ref to LeptonType More...
 
 Lepton (const edm::RefToBase< reco::BaseTau > &aLeptonRef)
 constructor from ref to LeptonType More...
 
 Lepton (const reco::BaseTau &aLepton)
 constructor from LeptonType More...
 
const PFIsolationminiPFIsolation () const
 
float neutralHadronIso () const
 
float particleIso () const
 
float photonIso () const
 
float puChargedHadronIso () const
 
void setEcalIso (float caloIso)
 Sets ecal isolation variable. More...
 
void setGenLepton (const reco::GenParticleRef &gl, bool embed=false)
 
void setHcalIso (float caloIso)
 Sets hcal isolation variable. More...
 
void setIsoDeposit (IsolationKeys key, const IsoDeposit &dep)
 Sets the IsoDeposit associated with some key; if it is already existent, it is overwritten. More...
 
void setIsolation (IsolationKeys key, float value)
 
void setMiniPFIsolation (PFIsolation const &iso)
 
void setTrackIso (float trackIso)
 Sets tracker isolation variable. More...
 
void setUserIso (float value, uint8_t index=0)
 Sets user isolation variable index. More...
 
float trackIso () const
 
const IsoDeposittrackIsoDeposit () const
 
void trackIsoDeposit (const IsoDeposit &dep)
 
float userIso (uint8_t index=0) const
 
void userIsoDeposit (const IsoDeposit &dep, uint8_t index=0)
 
const IsoDeposituserIsoDeposit (uint8_t index=0) const
 
float userIsolation (const std::string &key) const
 
float userIsolation (IsolationKeys key) const
 
 ~Lepton () override
 destructor More...
 
- Public Member Functions inherited from pat::PATObject< reco::BaseTau >
void addGenParticleRef (const reco::GenParticleRef &ref)
 
void addTriggerObjectMatch (const TriggerObjectStandAlone &trigObj)
 add a trigger match More...
 
void addUserCand (const std::string &label, const reco::CandidatePtr &data, const bool overwrite=false)
 Set user-defined int. More...
 
void addUserData (const std::string &label, const T &data, bool transientOnly=false, bool overwrite=false)
 
void addUserDataFromPtr (const std::string &label, const edm::Ptr< pat::UserData > &data, bool overwrite=false)
 
void addUserFloat (const std::string &label, float data, const bool overwrite=false)
 Set user-defined float. More...
 
void addUserInt (const std::string &label, int32_t data, const bool overwrite=false)
 Set user-defined int. More...
 
std::vector< std::pair< std::string, pat::LookupTableRecord > > efficiencies () const
 Returns the efficiencies as <name,value> pairs (by value) More...
 
const pat::LookupTableRecordefficiency (const std::string &name) const
 Returns an efficiency given its name. More...
 
const std::vector< std::string > & efficiencyNames () const
 Returns the list of the names of the stored efficiencies. More...
 
const std::vector< pat::LookupTableRecord > & efficiencyValues () const
 Returns the list of the values of the stored efficiencies (the ordering is the same as in efficiencyNames()) More...
 
void embedGenParticle ()
 
const reco::GenParticlegenParticle (size_t idx=0) const
 
reco::GenParticleRef genParticleById (int pdgId, int status, uint8_t autoCharge=0) const
 
reco::GenParticleRef genParticleRef (size_t idx=0) const
 
std::vector< reco::GenParticleRefgenParticleRefs () const
 
size_t genParticlesSize () const
 Number of generator level particles stored as ref or embedded. More...
 
const pat::CandKinResolutiongetKinResolution (const std::string &label="") const
 
bool hasKinResolution (const std::string &label="") const
 Check if the kinematic resolutions are stored into this object (possibly specifying a label for them) More...
 
bool hasOverlaps (const std::string &label) const
 Returns true if there was at least one overlap for this test label. More...
 
bool hasUserCand (const std::string &key) const
 Return true if there is a user-defined int with a given name. More...
 
bool hasUserData (const std::string &key) const
 Check if user data with a specific type is present. More...
 
bool hasUserFloat (const char *key) const
 a CINT-friendly interface More...
 
bool hasUserFloat (const std::string &key) const
 Return true if there is a user-defined float with a given name. More...
 
bool hasUserInt (const std::string &key) const
 Return true if there is a user-defined int with a given name. More...
 
const reco::CandidateoriginalObject () const
 access to the original object; returns zero for null Ref and throws for unavailable collection More...
 
const edm::Ptr< reco::Candidate > & originalObjectRef () const
 reference to original object. Returns a null reference if not available More...
 
const std::vector< std::string > & overlapLabels () const
 Returns the labels of the overlap tests that found at least one overlap. More...
 
const reco::CandidatePtrVectoroverlaps (const std::string &label) const
 
 PATObject ()
 default constructor More...
 
 PATObject (const edm::Ptr< reco::BaseTau > &ref)
 constructor from reference More...
 
 PATObject (const edm::RefToBase< reco::BaseTau > &ref)
 constructor from reference More...
 
 PATObject (const reco::BaseTau &obj)
 constructor from a base object (leaves invalid reference to original object!) More...
 
double resolE (const std::string &label="") const
 Resolution on energy, possibly with a label to specify which resolution to use. More...
 
double resolEt (const std::string &label="") const
 Resolution on et, possibly with a label to specify which resolution to use. More...
 
double resolEta (const std::string &label="") const
 Resolution on eta, possibly with a label to specify which resolution to use. More...
 
double resolM (const std::string &label="") const
 
double resolP (const std::string &label="") const
 Resolution on p, possibly with a label to specify which resolution to use. More...
 
double resolPhi (const std::string &label="") const
 Resolution on phi, possibly with a label to specify which resolution to use. More...
 
double resolPInv (const std::string &label="") const
 Resolution on 1/p, possibly with a label to specify which resolution to use. More...
 
double resolPt (const std::string &label="") const
 Resolution on pt, possibly with a label to specify which resolution to use. More...
 
double resolPx (const std::string &label="") const
 Resolution on px, possibly with a label to specify which resolution to use. More...
 
double resolPy (const std::string &label="") const
 Resolution on py, possibly with a label to specify which resolution to use. More...
 
double resolPz (const std::string &label="") const
 Resolution on pz, possibly with a label to specify which resolution to use. More...
 
double resolTheta (const std::string &label="") const
 Resolution on theta, possibly with a label to specify which resolution to use. More...
 
void setEfficiency (const std::string &name, const pat::LookupTableRecord &value)
 
void setGenParticle (const reco::GenParticle &particle)
 Set the generator level particle from a particle not in the Event (embedding it, of course) More...
 
void setGenParticleRef (const reco::GenParticleRef &ref, bool embed=false)
 Set the generator level particle reference. More...
 
void setKinResolution (const pat::CandKinResolution &resol, const std::string &label="")
 Add a kinematic resolution to this object (possibly with a label) More...
 
void setOverlaps (const std::string &label, const reco::CandidatePtrVector &overlaps)
 
const TriggerObjectStandAlonetriggerObjectMatch (const size_t idx=0) const
 get one matched trigger object by index More...
 
const TriggerObjectStandAlonetriggerObjectMatchByAlgorithm (const char *nameAlgorithm, const bool algoCondAccepted=true, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByAlgorithm (const char *nameAlgorithm, const unsigned algoCondAccepted, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByAlgorithm (const std::string &nameAlgorithm, const bool algoCondAccepted=true, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByAlgorithm (const std::string &nameAlgorithm, const unsigned algoCondAccepted, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByCollection (const char *coll, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByCollection (const std::string &coll, const size_t idx=0) const
 get one matched trigger object from a certain collection by index More...
 
const TriggerObjectStandAlonetriggerObjectMatchByCondition (const char *nameCondition, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByCondition (const std::string &nameCondition, const size_t idx=0) const
 get one matched L1 object used in a succeeding object combination of a certain L1 condition by index More...
 
const TriggerObjectStandAlonetriggerObjectMatchByFilter (const char *labelFilter, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByFilter (const std::string &labelFilter, const size_t idx=0) const
 get one matched HLT object used in a certain HLT filter by index More...
 
const TriggerObjectStandAlonetriggerObjectMatchByFilterID (const unsigned triggerObjectType, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByPath (const char *namePath, const bool pathLastFilterAccepted=false, const bool pathL3FilterAccepted=true, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByPath (const char *namePath, const unsigned pathLastFilterAccepted, const unsigned pathL3FilterAccepted=1, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByPath (const std::string &namePath, const bool pathLastFilterAccepted=false, const bool pathL3FilterAccepted=true, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByPath (const std::string &namePath, const unsigned pathLastFilterAccepted, const unsigned pathL3FilterAccepted=1, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByType (const trigger::TriggerObjectType triggerObjectType, const size_t idx=0) const
 get one matched trigger object of a certain type by index More...
 
const TriggerObjectStandAlonetriggerObjectMatchByType (const unsigned triggerObjectType, const size_t idx=0) const
 
const TriggerObjectStandAloneCollectiontriggerObjectMatches () const
 get all matched trigger objects More...
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByAlgorithm (const char *nameAlgorithm, const bool algoCondAccepted=true) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByAlgorithm (const char *nameAlgorithm, const unsigned algoCondAccepted) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByAlgorithm (const std::string &nameAlgorithm, const bool algoCondAccepted=true) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByAlgorithm (const std::string &nameAlgorithm, const unsigned algoCondAccepted) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByCollection (const char *coll) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByCollection (const std::string &coll) const
 get all matched trigger objects from a certain collection More...
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByCondition (const char *nameCondition) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByCondition (const std::string &nameCondition) const
 get all matched L1 objects used in a succeeding object combination of a certain L1 condition More...
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByFilter (const char *labelFilter) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByFilter (const std::string &labelFilter) const
 get all matched HLT objects used in a certain HLT filter More...
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByFilterID (const unsigned triggerObjectType) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByPath (const char *namePath, const bool pathLastFilterAccepted=false, const bool pathL3FilterAccepted=true) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByPath (const char *namePath, const unsigned pathLastFilterAccepted, const unsigned pathL3FilterAccepted=1) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByPath (const std::string &namePath, const bool pathLastFilterAccepted=false, const bool pathL3FilterAccepted=true) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByPath (const std::string &namePath, const unsigned pathLastFilterAccepted, const unsigned pathL3FilterAccepted=1) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByType (const trigger::TriggerObjectType triggerObjectType) const
 
const TriggerObjectStandAloneCollection triggerObjectMatchesByType (const unsigned triggerObjectType) const
 
void unpackTriggerObjectPathNames (const edm::TriggerNames &names)
 unpack path names of matched trigger objects (if they were packed before embedding, which is not normally the case) More...
 
reco::CandidatePtr userCand (const std::string &key) const
 
const std::vector< std::string > & userCandNames () const
 Get list of user-defined cand names. More...
 
const TuserData (const std::string &key) const
 Returns user-defined data. Returns NULL if the data is not present, or not of type T. More...
 
const void * userDataBare (const std::string &key) const
 
const std::vector< std::string > & userDataNames () const
 Get list of user data object names. More...
 
const std::string & userDataObjectType (const std::string &key) const
 Get human-readable type of user data object, for debugging. More...
 
float userFloat (const char *key) const
 a CINT-friendly interface More...
 
float userFloat (const std::string &key) const
 
const std::vector< std::string > & userFloatNames () const
 Get list of user-defined float names. More...
 
std::vector< float > userFloatRange (const std::string &key) const
 return a range of values corresponding to key More...
 
int32_t userInt (const std::string &key) const
 
const std::vector< std::string > & userIntNames () const
 Get list of user-defined int names. More...
 
std::vector< int > userIntRange (const std::string &key) const
 returns a range of values corresponding to key More...
 
 ~PATObject () override
 destructor More...
 
- Public Member Functions inherited from reco::BaseTau
math::XYZTLorentzVector alternatLorentzVect () const
 
 BaseTau ()
 
 BaseTau (Charge q, const LorentzVector &, const Point &=Point(0, 0, 0))
 
void setalternatLorentzVect (const math::XYZTLorentzVector &)
 
void setisolationTracks (const TrackRefVector &)
 
void setleadTrack (const TrackRef &)
 
void setsignalTracks (const TrackRefVector &)
 
 ~BaseTau () override
 
- Public Member Functions inherited from reco::RecoCandidate
const TrackbestTrack () const override
 best track pointer More...
 
virtual TrackBaseRef bestTrackRef () const
 best track RefToBase More...
 
virtual TrackType bestTrackType () const
 track type More...
 
virtual CaloTowerRef caloTower () const
 reference to a CaloTower More...
 
virtual reco::TrackRef combinedMuon () const
 reference to a stand-alone muon Track More...
 
float dxyError () const override
 uncertainty on dxy More...
 
float dzError () const override
 uncertainty on dz More...
 
virtual reco::GsfTrackRef gsfTrack () const
 reference to a GsfTrack More...
 
virtual size_t numberOfTracks () const
 number of multiple Tracks More...
 
 RecoCandidate ()
 default constructor More...
 
template<typename P4 >
 RecoCandidate (Charge q, const P4 &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0)
 constructor from values More...
 
virtual reco::TrackRef standAloneMuon () const
 reference to a stand-alone muon Track More...
 
virtual reco::SuperClusterRef superCluster () const
 reference to a SuperCluster More...
 
virtual reco::TrackRef track () const
 reference to a Track More...
 
virtual reco::TrackRef track (size_t) const
 reference to one of multiple Tracks More...
 
 ~RecoCandidate () override
 destructor More...
 
- Public Member Functions inherited from reco::LeafCandidate
Vector boostToCM () const final
 
int charge () const final
 electric charge More...
 
void construct (int qx3, float pt, float eta, float phi, float mass, const Point &vtx, int pdgId, int status)
 
const Candidatedaughter (const std::string &s) const override
 return daughter with a specified role name More...
 
Candidatedaughter (const std::string &s) override
 return daughter with a specified role name More...
 
const Candidatedaughter (size_type) const override
 return daughter at a given position (throws an exception) More...
 
Candidatedaughter (size_type) override
 return daughter at a given position (throws an exception) More...
 
double energy () const final
 energy More...
 
double et () const final
 transverse energy More...
 
double et2 () const final
 transverse energy squared (use this for cut!) More...
 
double eta () const final
 momentum pseudorapidity More...
 
void fillVertexCovariance (CovarianceMatrix &v) const override
 fill SMatrix More...
 
template<typename T >
T get () const
 get a component More...
 
template<typename T , typename Tag >
T get () const
 get a component More...
 
template<typename T >
T get (size_type i) const
 get a component More...
 
template<typename T , typename Tag >
T get (size_type i) const
 get a component More...
 
bool hasMasterClone () const override
 
bool hasMasterClonePtr () const override
 
bool isCaloMuon () const override
 
bool isConvertedPhoton () const override
 
bool isElectron () const override
 
bool isGlobalMuon () const override
 
bool isJet () const override
 
bool isMuon () const override
 
bool isPhoton () const override
 
bool isStandAloneMuon () const override
 
bool isTrackerMuon () const override
 
 LeafCandidate ()
 
template<typename... Args>
 LeafCandidate (Args &&... args)
 
 LeafCandidate (const Candidate &c)
 
 LeafCandidate (LeafCandidate &&)=default
 
 LeafCandidate (LeafCandidate &rh)
 
 LeafCandidate (LeafCandidate const &)=default
 
bool longLived () const final
 is long lived? More...
 
double mass () const final
 mass More...
 
bool massConstraint () const final
 do mass constraint? More...
 
double massSqr () const final
 mass squared More...
 
const CandidateBaseRefmasterClone () const override
 
const CandidatePtrmasterClonePtr () const override
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
Vector momentum () const final
 spatial momentum vector More...
 
const Candidatemother (size_type) const override
 return mother at a given position (throws an exception) More...
 
double mt () const final
 transverse mass More...
 
double mtSqr () const final
 transverse mass squared More...
 
template<typename T >
size_type numberOf () const
 number of components More...
 
template<typename T , typename Tag >
size_type numberOf () const
 number of components More...
 
size_t numberOfDaughters () const override
 number of daughters More...
 
size_t numberOfMothers () const override
 number of mothers More...
 
LeafCandidateoperator= (LeafCandidate &&)=default
 
LeafCandidateoperator= (LeafCandidate const &)=default
 
double p () const final
 magnitude of momentum vector More...
 
const LorentzVectorp4 () const final
 four-momentum Lorentz vector More...
 
int pdgId () const final
 PDG identifier. More...
 
double phi () const final
 momentum azimuthal angle More...
 
const PolarLorentzVectorpolarP4 () const final
 four-momentum Lorentz vector More...
 
double pt () const final
 transverse momentum More...
 
double px () const final
 x coordinate of momentum vector More...
 
double py () const final
 y coordinate of momentum vector More...
 
double pz () const final
 z coordinate of momentum vector More...
 
double rapidity () const final
 rapidity More...
 
void setCharge (Charge q) final
 set electric charge More...
 
void setLongLived () final
 
void setMass (double m) final
 set particle mass More...
 
void setMassConstraint () final
 
void setP4 (const LorentzVector &p4) final
 set 4-momentum More...
 
void setP4 (const PolarLorentzVector &p4) final
 set 4-momentum More...
 
void setPdgId (int pdgId) final
 
void setPz (double pz) final
 
void setStatus (int status) final
 set status word More...
 
void setThreeCharge (Charge qx3) final
 set electric charge More...
 
void setVertex (const Point &vertex) override
 set vertex More...
 
int status () const final
 status word More...
 
double theta () const final
 momentum polar angle More...
 
int threeCharge () const final
 electric charge More...
 
const Pointvertex () const override
 vertex position (overwritten by PF...) More...
 
double vertexChi2 () const override
 chi-squares More...
 
CovarianceMatrix vertexCovariance () const final
 return SMatrix More...
 
double vertexCovariance (int i, int j) const override
 (i, j)-th element of error matrix, i, j = 0, ... 2 More...
 
double vertexNdof () const override
 
double vertexNormalizedChi2 () const override
 chi-squared divided by n.d.o.f. More...
 
double vx () const override
 x coordinate of vertex position More...
 
double vy () const override
 y coordinate of vertex position More...
 
double vz () const override
 z coordinate of vertex position More...
 
double y () const final
 rapidity More...
 
 ~LeafCandidate () override
 destructor More...
 
- Public Member Functions inherited from reco::Candidate
iterator begin ()
 first daughter iterator More...
 
const_iterator begin () const
 first daughter const_iterator More...
 
 Candidate ()
 default constructor More...
 
iterator end ()
 last daughter iterator More...
 
const_iterator end () const
 last daughter const_iterator More...
 
template<typename T >
T get () const
 get a component More...
 
template<typename T , typename Tag >
T get () const
 get a component More...
 
template<typename T >
T get (size_type i) const
 get a component More...
 
template<typename T , typename Tag >
T get (size_type i) const
 get a component More...
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
template<typename T >
size_type numberOf () const
 number of components More...
 
template<typename T , typename Tag >
size_type numberOf () const
 number of components More...
 
virtual void setSourceCandidatePtr (const CandidatePtr &ptr)
 Set the ptr to the source Candidate. More...
 
virtual ~Candidate ()
 destructor More...
 

Protected Member Functions

void addJECFactors (const TauJetCorrFactors &jec)
 add more sets of energy correction factors More...
 
void currentJECLevel (const unsigned int &level)
 update the current JEC level; used by correctedJet More...
 
void currentJECSet (const unsigned int &set)
 update the current JEC set; used by correctedJet More...
 
void initializeJEC (unsigned int level, const unsigned int set=0)
 initialize the jet to a given JEC level during creation starting from Uncorrected More...
 
int jecSet (const std::string &label) const
 
- Protected Member Functions inherited from pat::PATObject< reco::BaseTau >
void addUserDataObject_ (const std::string &label, std::unique_ptr< pat::UserData > value, bool overwrite=false)
 
- Protected Member Functions inherited from reco::RecoCandidate
template<typename R >
bool checkOverlap (const R &r1, const R &r2) const
 check if two components overlap More...
 

Private Member Functions

void initFromBaseTau (const reco::BaseTau &aTau)
 helper to avoid code duplication in constructors More...
 

Private Attributes

unsigned int currentJECLevel_
 
unsigned int currentJECSet_
 
bool embeddedIsolationPFCands_
 
bool embeddedIsolationPFChargedHadrCands_
 
bool embeddedIsolationPFGammaCands_
 
bool embeddedIsolationPFNeutralHadrCands_
 
bool embeddedIsolationTracks_
 
bool embeddedLeadPFCand_
 
bool embeddedLeadPFChargedHadrCand_
 
bool embeddedLeadPFNeutralCand_
 
bool embeddedLeadTrack_
 
bool embeddedSignalPFCands_
 
bool embeddedSignalPFChargedHadrCands_
 
bool embeddedSignalPFGammaCands_
 
bool embeddedSignalPFNeutralHadrCands_
 
bool embeddedSignalTracks_
 
std::vector< reco::GenJetgenJet_
 
reco::CandidatePtrVector isolationChargedHadrCandPtrs_
 
reco::CandidatePtrVector isolationGammaCandPtrs_
 
reco::CandidatePtrVector isolationNeutralHadrCandPtrs_
 
std::vector< reco::PFCandidateisolationPFCands_
 
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > isolationPFCandsTransientPtrs_
 
std::vector< reco::PFCandidateisolationPFChargedHadrCands_
 
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > isolationPFChargedHadrCandsTransientPtrs_
 
std::vector< reco::PFCandidateisolationPFGammaCands_
 
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > isolationPFGammaCandsTransientPtrs_
 
std::vector< reco::PFCandidateisolationPFNeutralHadrCands_
 
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > isolationPFNeutralHadrCandsTransientPtrs_
 
std::vector< reco::TrackisolationTracks_
 
edm::AtomicPtrCache< reco::TrackRefVectorisolationTracksTransientRefVector_
 
std::vector< pat::TauJetCorrFactorsjec_
 
std::vector< reco::PFCandidateleadPFCand_
 
std::vector< reco::PFCandidateleadPFChargedHadrCand_
 
std::vector< reco::PFCandidateleadPFNeutralCand_
 
std::vector< reco::TrackleadTrack_
 
std::vector< pat::tau::TauPFEssentialpfEssential_
 
std::vector< pat::tau::TauPFSpecificpfSpecific_
 holder for PFTau info, or empty vector if CaloTau More...
 
reco::CandidatePtrVector signalChargedHadrCandPtrs_
 
reco::CandidatePtrVector signalGammaCandPtrs_
 
reco::CandidatePtrVector signalNeutralHadrCandPtrs_
 
std::vector< reco::PFCandidatesignalPFCands_
 
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > signalPFCandsTransientPtrs_
 
std::vector< reco::PFCandidatesignalPFChargedHadrCands_
 
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > signalPFChargedHadrCandsTransientPtrs_
 
std::vector< reco::PFCandidatesignalPFGammaCands_
 
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > signalPFGammaCandsTransientPtrs_
 
std::vector< reco::PFCandidatesignalPFNeutralHadrCands_
 
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > signalPFNeutralHadrCandsTransientPtrs_
 
std::vector< reco::TracksignalTracks_
 
edm::AtomicPtrCache< reco::TrackRefVectorsignalTracksTransientRefVector_
 
std::vector< IdPairtauIDs_
 

Friends

class PATTauProducer
 
class PATTauSlimmer
 
std::ostream & reco::operator<< (std::ostream &out, const Tau &obj)
 pipe operator (introduced to use pat::Tau with PFTopProjectors) More...
 

Additional Inherited Members

- Protected Types inherited from pat::Lepton< reco::BaseTau >
typedef std::vector< std::pair< IsolationKeys, pat::IsoDeposit > > IsoDepositPairs
 
- Protected Attributes inherited from pat::Lepton< reco::BaseTau >
IsoDepositPairs isoDeposits_
 
std::vector< float > isolations_
 
PFIsolation miniPFIsolation_
 
- Protected Attributes inherited from pat::PATObject< reco::BaseTau >
std::vector< std::string > efficiencyNames_
 vector of the efficiencies (names) More...
 
std::vector< pat::LookupTableRecordefficiencyValues_
 vector of the efficiencies (values) More...
 
std::vector< reco::GenParticlegenParticleEmbedded_
 vector to hold an embedded generator level particle More...
 
std::vector< reco::GenParticleRefgenParticleRef_
 Reference to a generator level particle. More...
 
std::vector< std::string > kinResolutionLabels_
 
std::vector< pat::CandKinResolutionkinResolutions_
 Kinematic resolutions. More...
 
std::vector< reco::CandidatePtrVectoroverlapItems_
 Overlapping items (sorted by distance) More...
 
std::vector< std::string > overlapLabels_
 Overlapping test labels (only if there are any overlaps) More...
 
edm::Ptr< reco::CandidaterefToOrig_
 
TriggerObjectStandAloneCollection triggerObjectMatchesEmbedded_
 vector of trigger matches More...
 
std::vector< std::string > userCandLabels_
 
std::vector< reco::CandidatePtruserCands_
 
std::vector< std::string > userDataLabels_
 User data object. More...
 
pat::UserDataCollection userDataObjects_
 
std::vector< std::string > userFloatLabels_
 
std::vector< float > userFloats_
 
std::vector< std::string > userIntLabels_
 
std::vector< int32_t > userInts_
 

Detailed Description

Analysis-level tau class.

pat::Tau implements the analysis-level tau class within the 'pat' namespace. It inherits from reco::BaseTau, copies all the information from the source reco::PFTau, and adds some PAT-specific variables.

Please post comments and questions to the Physics Tools hypernews: https://hypernews.cern.ch/HyperNews/CMS/get/physTools.html

Author
Steven Lowette, Christophe Delaere, Giovanni Petrucciani, Frederic Ronga, Colin Bernet

Definition at line 53 of file Tau.h.

Member Typedef Documentation

◆ IdPair

typedef std::pair<std::string, float> pat::Tau::IdPair

Definition at line 60 of file Tau.h.

Constructor & Destructor Documentation

◆ Tau() [1/4]

pat::Tau::Tau ( )

default constructor

Referenced by clone().

◆ Tau() [2/4]

pat::Tau::Tau ( const reco::BaseTau aTau)

constructor from a reco tau

◆ Tau() [3/4]

pat::Tau::Tau ( const edm::RefToBase< reco::BaseTau > &  aTauRef)

constructor from a RefToBase to a reco tau (to be superseded by Ptr counterpart)

◆ Tau() [4/4]

pat::Tau::Tau ( const edm::Ptr< reco::BaseTau > &  aTauRef)

constructor from a Ptr to a reco tau

◆ ~Tau()

pat::Tau::~Tau ( )
override

destructor

Member Function Documentation

◆ addJECFactors()

void pat::Tau::addJECFactors ( const TauJetCorrFactors jec)
inlineprotected

add more sets of energy correction factors

Definition at line 412 of file Tau.h.

412 { jec_.push_back(jec); };

References jetMETDQMOfflineSource_cff::jec, and jec_.

Referenced by pat::PATTauProducer::produce().

◆ availableJECLevels() [1/2]

const std::vector<std::string> pat::Tau::availableJECLevels ( const int &  set = 0) const

Referenced by availableJECLevels().

◆ availableJECLevels() [2/2]

const std::vector<std::string> pat::Tau::availableJECLevels ( const std::string &  set) const
inline

Definition at line 358 of file Tau.h.

358  {
359  return availableJECLevels(jecSet(set));
360  };

References availableJECLevels(), and jecSet().

◆ availableJECSets()

const std::vector<std::string> pat::Tau::availableJECSets ( ) const

-— methods for jet corrections -— returns the labels of all available sets of jet energy corrections

◆ bremsRecoveryEOverPLead()

float pat::Tau::bremsRecoveryEOverPLead ( ) const
inline

Method copied from reco::PFTau. Throws an exception if this pat::Tau was not made from a reco::PFTau

Definition at line 205 of file Tau.h.

References pat::tau::TauPFSpecific::bremsRecoveryEOverPLead_, and pfSpecific().

◆ caloComp()

float pat::Tau::caloComp ( ) const
inline

Method copied from reco::PFTau. Throws an exception if this pat::Tau was not made from a reco::PFTau

Definition at line 217 of file Tau.h.

217 { return pfSpecific().caloComp_; }

References pat::tau::TauPFSpecific::caloComp_, and pfSpecific().

◆ clone()

Tau* pat::Tau::clone ( void  ) const
inlineoverridevirtual

required reimplementation of the Candidate's clone method

Reimplemented from reco::LeafCandidate.

Definition at line 74 of file Tau.h.

74 { return new Tau(*this); }

References Tau().

◆ correctedP4() [1/2]

const LorentzVector& pat::Tau::correctedP4 ( const std::string &  level,
const std::string &  set = "" 
) const
inline

p4 of the jet corrected up to the given level for the set of jet energy correction factors, which is currently in use

Definition at line 392 of file Tau.h.

392  {
393  return correctedTauJet(level, set).p4();
394  }

References correctedTauJet(), personalPlayback::level, and reco::LeafCandidate::p4().

◆ correctedP4() [2/2]

const LorentzVector& pat::Tau::correctedP4 ( const unsigned int &  level,
const unsigned int &  set = 0 
) const
inline

p4 of the jet corrected up to the given level for the set of jet energy correction factors, which is currently in use

Definition at line 397 of file Tau.h.

397  {
398  return correctedTauJet(level, set).p4();
399  }

References correctedTauJet(), personalPlayback::level, and reco::LeafCandidate::p4().

◆ correctedTauJet() [1/2]

Tau pat::Tau::correctedTauJet ( const std::string &  level,
const std::string &  set = "" 
) const

copy of the jet corrected up to the given level for the set of jet energy correction factors, which is currently in use

Referenced by correctedP4().

◆ correctedTauJet() [2/2]

Tau pat::Tau::correctedTauJet ( const unsigned int &  level,
const unsigned int &  set = 0 
) const

copy of the jet corrected up to the given level for the set of jet energy correction factors, which is currently in use

◆ currentJECLevel() [1/2]

std::string pat::Tau::currentJECLevel ( ) const
inline

return the name of the current step of jet energy corrections

Definition at line 375 of file Tau.h.

375  {
376  return currentJECSet_ < jec_.size() ? jec_.at(currentJECSet_).jecLevel(currentJECLevel_) : std::string("ERROR");
377  }

References currentJECLevel_, currentJECSet_, jec_, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ currentJECLevel() [2/2]

void pat::Tau::currentJECLevel ( const unsigned int &  level)
inlineprotected

update the current JEC level; used by correctedJet

Definition at line 410 of file Tau.h.

410 { currentJECLevel_ = level; };

References currentJECLevel_, and personalPlayback::level.

◆ currentJECSet() [1/2]

std::string pat::Tau::currentJECSet ( ) const
inline

returns the label of the current set of jet energy corrections

Definition at line 371 of file Tau.h.

371  {
372  return currentJECSet_ < jec_.size() ? jec_.at(currentJECSet_).jecSet() : std::string("ERROR");
373  }

References currentJECSet_, jec_, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ currentJECSet() [2/2]

void pat::Tau::currentJECSet ( const unsigned int &  set)
inlineprotected

update the current JEC set; used by correctedJet

Definition at line 408 of file Tau.h.

408 { currentJECSet_ = set; };

References currentJECSet_.

◆ decayMode()

int pat::Tau::decayMode ( ) const
inline

reconstructed tau decay mode (specific to PFTau)

Definition at line 328 of file Tau.h.

328 { return pfEssential().decayMode_; }

References pat::tau::TauPFEssential::decayMode_, and pfEssential().

Referenced by Tau.Tau::__str__().

◆ dxy()

float pat::Tau::dxy ( ) const
inline

Definition at line 277 of file Tau.h.

277 { return pfEssential().dxy_; }

References pat::tau::TauPFEssential::dxy_, and pfEssential().

Referenced by Electron.Electron::cutBasedId(), and ntupleDataFormat.Track::dxyPull().

◆ dxy_error()

float pat::Tau::dxy_error ( ) const
inline

Definition at line 278 of file Tau.h.

278 { return pfEssential().dxy_error_; }

References pat::tau::TauPFEssential::dxy_error_, and pfEssential().

◆ dxy_PCA()

const pat::tau::TauPFEssential::Point& pat::Tau::dxy_PCA ( ) const
inline

-— Tau lifetime information -— Filled from PFTauTIPAssociation. Throws an exception if this pat::Tau was not made from a reco::PFTau

Definition at line 276 of file Tau.h.

276 { return pfEssential().dxy_PCA_; }

References pat::tau::TauPFEssential::dxy_PCA_, and pfEssential().

◆ dxy_Sig()

float pat::Tau::dxy_Sig ( ) const

◆ ecalEnergy()

float pat::Tau::ecalEnergy ( ) const
inline

-— Information for MVA isolation -— Needed to recompute MVA isolation on MiniAOD return sum of ecal energies from signal candidates

Definition at line 297 of file Tau.h.

297 { return pfEssential().ecalEnergy_; }

References pat::tau::TauPFEssential::ecalEnergy_, and pfEssential().

◆ ecalEnergyLeadChargedHadrCand()

float pat::Tau::ecalEnergyLeadChargedHadrCand ( ) const
inline

-— Information for anti-electron training -— Needed to recompute on MiniAOD return ecal energy from LeadChargedHadrCand

Definition at line 306 of file Tau.h.

References pat::tau::TauPFEssential::ecalEnergyLeadChargedHadrCand_, and pfEssential().

Referenced by AntiElectronIDMVA6< TauType, ElectronType >::getTauVarsTypeSpecific().

◆ ecalStripSumEOverPLead()

float pat::Tau::ecalStripSumEOverPLead ( ) const
inline

Method copied from reco::PFTau. Throws an exception if this pat::Tau was not made from a reco::PFTau

Definition at line 202 of file Tau.h.

References pat::tau::TauPFSpecific::ecalStripSumEOverPLead_, and pfSpecific().

◆ electronPreIDDecision()

bool pat::Tau::electronPreIDDecision ( ) const
inline

Method copied from reco::PFTau. Throws an exception if this pat::Tau was not made from a reco::PFTau

Definition at line 214 of file Tau.h.

References pat::tau::TauPFSpecific::electronPreIDDecision_, and pfSpecific().

◆ electronPreIDOutput()

float pat::Tau::electronPreIDOutput ( ) const
inline

Method copied from reco::PFTau. Throws an exception if this pat::Tau was not made from a reco::PFTau

Definition at line 211 of file Tau.h.

211 { return pfSpecific().electronPreIDOutput_; }

References pat::tau::TauPFSpecific::electronPreIDOutput_, and pfSpecific().

◆ electronPreIDTrack()

const reco::TrackRef& pat::Tau::electronPreIDTrack ( ) const
inline

Method copied from reco::PFTau. Throws an exception if this pat::Tau was not made from a reco::PFTau

Definition at line 208 of file Tau.h.

208 { return pfSpecific().electronPreIDTrack_; }

References pat::tau::TauPFSpecific::electronPreIDTrack_, and pfSpecific().

◆ embedIsolationPFCands()

void pat::Tau::embedIsolationPFCands ( )

method to store the isolation candidates internally

Referenced by pat::PATTauProducer::produce().

◆ embedIsolationPFChargedHadrCands()

void pat::Tau::embedIsolationPFChargedHadrCands ( )

method to store the isolation charged hadrons candidates internally

Referenced by pat::PATTauProducer::produce().

◆ embedIsolationPFGammaCands()

void pat::Tau::embedIsolationPFGammaCands ( )

method to store the isolation gamma candidates internally

Referenced by pat::PATTauProducer::produce().

◆ embedIsolationPFNeutralHadrCands()

void pat::Tau::embedIsolationPFNeutralHadrCands ( )

method to store the isolation neutral hadrons candidates internally

Referenced by pat::PATTauProducer::produce().

◆ embedIsolationTracks()

void pat::Tau::embedIsolationTracks ( )

method to store the isolation tracks internally

Referenced by pat::PATTauProducer::produce().

◆ embedLeadPFCand()

void pat::Tau::embedLeadPFCand ( )
  • PFTau specific content - method to store the leading candidate internally

Referenced by pat::PATTauProducer::produce().

◆ embedLeadPFChargedHadrCand()

void pat::Tau::embedLeadPFChargedHadrCand ( )

method to store the leading charged hadron candidate internally

Referenced by pat::PATTauProducer::produce().

◆ embedLeadPFNeutralCand()

void pat::Tau::embedLeadPFNeutralCand ( )

method to store the leading neutral candidate internally

Referenced by pat::PATTauProducer::produce().

◆ embedLeadTrack()

void pat::Tau::embedLeadTrack ( )

method to store the leading track internally

Referenced by pat::PATTauProducer::produce().

◆ embedSignalPFCands()

void pat::Tau::embedSignalPFCands ( )

method to store the signal candidates internally

Referenced by pat::PATTauProducer::produce().

◆ embedSignalPFChargedHadrCands()

void pat::Tau::embedSignalPFChargedHadrCands ( )

method to store the signal charged hadrons candidates internally

Referenced by pat::PATTauProducer::produce().

◆ embedSignalPFGammaCands()

void pat::Tau::embedSignalPFGammaCands ( )

method to store the signal gamma candidates internally

Referenced by pat::PATTauProducer::produce().

◆ embedSignalPFNeutralHadrCands()

void pat::Tau::embedSignalPFNeutralHadrCands ( )

method to store the signal neutral hadrons candidates internally

Referenced by pat::PATTauProducer::produce().

◆ embedSignalTracks()

void pat::Tau::embedSignalTracks ( )

method to store the signal tracks internally

Referenced by pat::PATTauProducer::produce().

◆ emFraction()

float pat::Tau::emFraction ( ) const
inline

Method copied from reco::PFTau. Throws an exception if this pat::Tau was not made from a reco::PFTau

Definition at line 190 of file Tau.h.

190 { return pfSpecific().emFraction_; }

References pat::tau::TauPFSpecific::emFraction_, and pfSpecific().

◆ emFraction_MVA()

float pat::Tau::emFraction_MVA ( ) const
inline

return emFraction_MVA

Definition at line 318 of file Tau.h.

318 { return pfEssential().emFraction_; }

References pat::tau::TauPFEssential::emFraction_, and pfEssential().

Referenced by AntiElectronIDMVA6< TauType, ElectronType >::getTauVarsTypeSpecific().

◆ etaAtEcalEntrance()

float pat::Tau::etaAtEcalEntrance ( ) const
inline

return etaAtEcalEntrance

Definition at line 312 of file Tau.h.

312 { return pfEssential().etaAtEcalEntrance_; }

References pat::tau::TauPFEssential::etaAtEcalEntrance_, and pfEssential().

Referenced by AntiElectronIDMVA6< TauType, ElectronType >::getTauVarsTypeSpecific().

◆ etaAtEcalEntranceLeadChargedCand()

float pat::Tau::etaAtEcalEntranceLeadChargedCand ( ) const
inline

return etaAtEcalEntrance from LeadChargedCand

Definition at line 314 of file Tau.h.

References pat::tau::TauPFEssential::etaAtEcalEntranceLeadChargedCand_, and pfEssential().

Referenced by AntiElectronIDMVA6< TauType, ElectronType >::getTauVarsTypeSpecific().

◆ etaetaMoment()

float pat::Tau::etaetaMoment ( ) const

◆ etaphiMoment()

float pat::Tau::etaphiMoment ( ) const

◆ ExistIsolationCands()

bool pat::Tau::ExistIsolationCands ( ) const

◆ ExistSignalCands()

bool pat::Tau::ExistSignalCands ( ) const

return the PFCandidates if available (reference or embedded), or the PackedPFCandidate on miniAOD note that the vector is returned by value.

◆ flightLength()

const pat::tau::TauPFEssential::Vector& pat::Tau::flightLength ( ) const
inline

Definition at line 284 of file Tau.h.

284 { return pfEssential().flightLength_; }

References pat::tau::TauPFEssential::flightLength_, and pfEssential().

◆ flightLengthCov()

pat::tau::TauPFEssential::CovMatrix pat::Tau::flightLengthCov ( ) const

◆ flightLengthSig()

float pat::Tau::flightLengthSig ( ) const
inline

Definition at line 285 of file Tau.h.

285 { return pfEssential().flightLengthSig_; }

References pat::tau::TauPFEssential::flightLengthSig_, and pfEssential().

◆ genJet()

const reco::GenJet* pat::Tau::genJet ( ) const

return matched GenJet, built from the visible particles of a generated tau

◆ hasSecondaryVertex()

bool pat::Tau::hasSecondaryVertex ( ) const
inline

Definition at line 283 of file Tau.h.

283 { return pfEssential().hasSV_; }

References pat::tau::TauPFEssential::hasSV_, and pfEssential().

◆ hcal3x3OverPLead()

float pat::Tau::hcal3x3OverPLead ( ) const
inline

Method copied from reco::PFTau. Throws an exception if this pat::Tau was not made from a reco::PFTau

Definition at line 199 of file Tau.h.

199 { return pfSpecific().hcal3x3OverPLead_; }

References pat::tau::TauPFSpecific::hcal3x3OverPLead_, and pfSpecific().

◆ hcalEnergy()

float pat::Tau::hcalEnergy ( ) const
inline

return sum of hcal energies from signal candidates

Definition at line 299 of file Tau.h.

299 { return pfEssential().hcalEnergy_; }

References pat::tau::TauPFEssential::hcalEnergy_, and pfEssential().

◆ hcalEnergyLeadChargedHadrCand()

float pat::Tau::hcalEnergyLeadChargedHadrCand ( ) const
inline

return hcal energy from LeadChargedHadrCand

Definition at line 308 of file Tau.h.

References pat::tau::TauPFEssential::hcalEnergyLeadChargedHadrCand_, and pfEssential().

Referenced by AntiElectronIDMVA6< TauType, ElectronType >::getTauVarsTypeSpecific().

◆ hcalMaxOverPLead()

float pat::Tau::hcalMaxOverPLead ( ) const
inline

Method copied from reco::PFTau. Throws an exception if this pat::Tau was not made from a reco::PFTau

Definition at line 196 of file Tau.h.

196 { return pfSpecific().hcalMaxOverPLead_; }

References pat::tau::TauPFSpecific::hcalMaxOverPLead_, and pfSpecific().

◆ hcalTotOverPLead()

float pat::Tau::hcalTotOverPLead ( ) const
inline

Method copied from reco::PFTau. Throws an exception if this pat::Tau was not made from a reco::PFTau

Definition at line 193 of file Tau.h.

193 { return pfSpecific().hcalTotOverPLead_; }

References pat::tau::TauPFSpecific::hcalTotOverPLead_, and pfSpecific().

◆ initFromBaseTau()

void pat::Tau::initFromBaseTau ( const reco::BaseTau aTau)
private

helper to avoid code duplication in constructors

◆ initializeJEC()

void pat::Tau::initializeJEC ( unsigned int  level,
const unsigned int  set = 0 
)
protected

initialize the jet to a given JEC level during creation starting from Uncorrected

Referenced by pat::PATTauProducer::produce().

◆ ip3d()

float pat::Tau::ip3d ( ) const
inline

Definition at line 290 of file Tau.h.

290 { return pfEssential().ip3d_; }

References pat::tau::TauPFEssential::ip3d_, and pfEssential().

◆ ip3d_error()

float pat::Tau::ip3d_error ( ) const
inline

Definition at line 291 of file Tau.h.

291 { return pfEssential().ip3d_error_; }

References pat::tau::TauPFEssential::ip3d_error_, and pfEssential().

◆ ip3d_Sig()

float pat::Tau::ip3d_Sig ( ) const

◆ isolationCands()

reco::CandidatePtrVector pat::Tau::isolationCands ( ) const

return the PFCandidates if available (reference or embedded), or the PackedPFCandidate on miniAOD note that the vector is returned by value.

◆ isolationChargedHadrCands()

reco::CandidatePtrVector pat::Tau::isolationChargedHadrCands ( ) const

return the PFCandidates if available (reference or embedded), or the PackedPFCandidate on miniAOD note that the vector is returned by value.

◆ isolationGammaCands()

reco::CandidatePtrVector pat::Tau::isolationGammaCands ( ) const

return the PFCandidates if available (reference or embedded), or the PackedPFCandidate on miniAOD note that the vector is returned by value.

◆ isolationNeutrHadrCands()

reco::CandidatePtrVector pat::Tau::isolationNeutrHadrCands ( ) const

return the PFCandidates if available (reference or embedded), or the PackedPFCandidate on miniAOD note that the vector is returned by value.

◆ isolationPFCands()

const std::vector<reco::PFCandidatePtr>& pat::Tau::isolationPFCands ( ) const

Method copied from reco::PFTau. Throws an exception if this pat::Tau was not made from a reco::PFTau

◆ isolationPFChargedHadrCands()

const std::vector<reco::PFCandidatePtr>& pat::Tau::isolationPFChargedHadrCands ( ) const

Method copied from reco::PFTau. Throws an exception if this pat::Tau was not made from a reco::PFTau

◆ isolationPFChargedHadrCandsPtSum()

float pat::Tau::isolationPFChargedHadrCandsPtSum ( ) const
inline

Method copied from reco::PFTau. Throws an exception if this pat::Tau was not made from a reco::PFTau

Definition at line 181 of file Tau.h.

References pat::tau::TauPFSpecific::isolationPFChargedHadrCandsPtSum_, and pfSpecific().

◆ isolationPFGammaCands()

const std::vector<reco::PFCandidatePtr>& pat::Tau::isolationPFGammaCands ( ) const

Method copied from reco::PFTau. Throws an exception if this pat::Tau was not made from a reco::PFTau

◆ isolationPFGammaCandsEtSum()

float pat::Tau::isolationPFGammaCandsEtSum ( ) const
inline

Method copied from reco::PFTau. Throws an exception if this pat::Tau was not made from a reco::PFTau

Definition at line 184 of file Tau.h.

References pat::tau::TauPFSpecific::isolationPFGammaCandsEtSum_, and pfSpecific().

◆ isolationPFNeutrHadrCands()

const std::vector<reco::PFCandidatePtr>& pat::Tau::isolationPFNeutrHadrCands ( ) const

Method copied from reco::PFTau. Throws an exception if this pat::Tau was not made from a reco::PFTau

◆ isolationPiZeroCandidates()

const std::vector<reco::RecoTauPiZero>& pat::Tau::isolationPiZeroCandidates ( ) const

Method copied from reco::PFTau. Throws an exception if this pat::Tau was not made from a reco::PFTau

◆ isolationTauChargedHadronCandidates()

const std::vector<reco::PFRecoTauChargedHadron>& pat::Tau::isolationTauChargedHadronCandidates ( ) const

Method copied from reco::PFTau. Throws an exception if this pat::Tau was not made from a reco::PFTau

◆ isolationTracks()

const reco::TrackRefVector& pat::Tau::isolationTracks ( ) const
overridevirtual

override the reco::BaseTau::isolationTracks method, to access the internal storage of the isolation tracks

Reimplemented from reco::BaseTau.

◆ isPFTau()

bool pat::Tau::isPFTau ( ) const
inline

Returns true if this pat::Tau was made from a reco::PFTau.

Definition at line 121 of file Tau.h.

121 { return !pfSpecific_.empty(); }

References pfSpecific_.

Referenced by pat::PATTauProducer::produce().

◆ isTauIDAvailable()

bool pat::Tau::isTauIDAvailable ( const std::string &  name) const

Returns true if a specific ID is available in this pat::Tau.

◆ jecFactor() [1/2]

float pat::Tau::jecFactor ( const std::string &  level,
const std::string &  set = "" 
) const

correction factor to the given level for a specific set of correction factors, starting from the current level

Referenced by Jet.Jet::rawFactor(), and Jet.Jet::setRawFactor().

◆ jecFactor() [2/2]

float pat::Tau::jecFactor ( const unsigned int &  level,
const unsigned int &  set = 0 
) const

correction factor to the given level for a specific set of correction factors, starting from the current level

Referenced by Jet.Jet::rawFactor(), and Jet.Jet::setRawFactor().

◆ jecSet()

int pat::Tau::jecSet ( const std::string &  label) const
protected

index of the set of jec factors with given label; returns -1 if no set of jec factors exists with the given label

Referenced by availableJECLevels(), and jecSetAvailable().

◆ jecSetAvailable() [1/2]

bool pat::Tau::jecSetAvailable ( const std::string &  set) const
inline

returns true if the jet carries a set of jet energy correction factors with the given label

Definition at line 366 of file Tau.h.

366 { return (jecSet(set) >= 0); };

References jecSet().

◆ jecSetAvailable() [2/2]

bool pat::Tau::jecSetAvailable ( const unsigned int &  set) const
inline

returns true if the jet carries a set of jet energy correction factors with the given label

Definition at line 369 of file Tau.h.

369 { return (set < jec_.size()); };

References jec_.

◆ jecSetsAvailable()

bool pat::Tau::jecSetsAvailable ( ) const
inline

returns true if the jet carries jet energy correction information at all

Definition at line 363 of file Tau.h.

363 { return !jec_.empty(); }

References jec_.

◆ leadCand()

const reco::CandidatePtr pat::Tau::leadCand ( ) const

return the PFCandidate if available (reference or embedded), or the PackedPFCandidate on miniAOD

◆ leadChargedHadrCand()

const reco::CandidatePtr pat::Tau::leadChargedHadrCand ( ) const

--— Methods returning associated PFCandidates that work on PAT+AOD, PAT+embedding and miniAOD --— return the PFCandidate if available (reference or embedded), or the PackedPFCandidate on miniAOD

Referenced by Tau.Tau::dxy_approx(), Tau.Tau::dz(), AntiElectronIDMVA6< TauType, ElectronType >::getTauVarsTypeSpecific(), and AntiElectronDeadECAL::operator()().

◆ leadingTrackNormChi2()

float pat::Tau::leadingTrackNormChi2 ( ) const
inline

return normalized chi2 of leading track

Definition at line 301 of file Tau.h.

References pat::tau::TauPFEssential::leadingTrackNormChi2_, and pfEssential().

◆ leadNeutralCand()

const reco::CandidatePtr pat::Tau::leadNeutralCand ( ) const

return the PFCandidate if available (reference or embedded), or the PackedPFCandidate on miniAOD

◆ leadPFCand()

const reco::PFCandidatePtr pat::Tau::leadPFCand ( ) const

Method copied from reco::PFTau. Throws an exception if this pat::Tau was not made from a reco::PFTau

◆ leadPFChargedHadrCand()

const reco::PFCandidatePtr pat::Tau::leadPFChargedHadrCand ( ) const

Method copied from reco::PFTau. Throws an exception if this pat::Tau was not made from a reco::PFTau

◆ leadPFChargedHadrCandsignedSipt()

float pat::Tau::leadPFChargedHadrCandsignedSipt ( ) const
inline

Method copied from reco::PFTau. Throws an exception if this pat::Tau was not made from a reco::PFTau

Definition at line 136 of file Tau.h.

References pat::tau::TauPFSpecific::leadPFChargedHadrCandsignedSipt_, and pfSpecific().

◆ leadPFNeutralCand()

const reco::PFCandidatePtr pat::Tau::leadPFNeutralCand ( ) const

Method copied from reco::PFTau. Throws an exception if this pat::Tau was not made from a reco::PFTau

◆ leadTauChargedHadronCandidate()

reco::PFRecoTauChargedHadronRef pat::Tau::leadTauChargedHadronCandidate ( ) const

Method copied from reco::PFTau. Throws an exception if this pat::Tau was not made from a reco::PFTau

◆ leadTrack()

reco::TrackRef pat::Tau::leadTrack ( ) const
overridevirtual

override the reco::BaseTau::leadTrack method, to access the internal storage of the leading track

Reimplemented from reco::BaseTau.

◆ maximumHCALPFClusterEt()

float pat::Tau::maximumHCALPFClusterEt ( ) const
inline

Method copied from reco::PFTau. Throws an exception if this pat::Tau was not made from a reco::PFTau

Definition at line 187 of file Tau.h.

References pat::tau::TauPFSpecific::maximumHCALPFClusterEt_, and pfSpecific().

◆ muonDecision()

bool pat::Tau::muonDecision ( ) const
inline

Method copied from reco::PFTau. Throws an exception if this pat::Tau was not made from a reco::PFTau

Definition at line 223 of file Tau.h.

223 { return pfSpecific().muonDecision_; }

References pat::tau::TauPFSpecific::muonDecision_, and pfSpecific().

◆ numberOfSourceCandidatePtrs()

size_t pat::Tau::numberOfSourceCandidatePtrs ( ) const
overridevirtual

--— Top Projection business ----— get the number of non-null PFCandidates

Reimplemented from reco::LeafCandidate.

◆ p4Jet()

reco::Candidate::LorentzVector pat::Tau::p4Jet ( ) const

Methods copied from reco::Jet. (accessible from reco::PFTau via reco::PFTauTagInfo)

◆ pfEssential()

const pat::tau::TauPFEssential& pat::Tau::pfEssential ( ) const

◆ pfJetRef()

const reco::JetBaseRef& pat::Tau::pfJetRef ( ) const
inline

Method copied from reco::PFTau. Throws an exception if this pat::Tau was not made from a reco::PFTau

Definition at line 127 of file Tau.h.

127 { return pfSpecific().pfJetRef_; }

References pat::tau::TauPFSpecific::pfJetRef_, and pfSpecific().

Referenced by PFMEtSignInterfaceBase::compResolution().

◆ pfSpecific()

const pat::tau::TauPFSpecific& pat::Tau::pfSpecific ( ) const

◆ phiAtEcalEntrance()

float pat::Tau::phiAtEcalEntrance ( ) const
inline

return phiAtEcalEntrance

Definition at line 310 of file Tau.h.

310 { return pfEssential().phiAtEcalEntrance_; }

References pfEssential(), and pat::tau::TauPFEssential::phiAtEcalEntrance_.

Referenced by AntiElectronIDMVA6< TauType, ElectronType >::getTauVarsTypeSpecific().

◆ phiphiMoment()

float pat::Tau::phiphiMoment ( ) const

◆ primaryVertex()

const reco::VertexRef& pat::Tau::primaryVertex ( ) const
inline

Definition at line 280 of file Tau.h.

280 { return pfEssential().pv_; }

References pfEssential(), and pat::tau::TauPFEssential::pv_.

◆ primaryVertexCov()

const pat::tau::TauPFEssential::CovMatrix& pat::Tau::primaryVertexCov ( ) const
inline

Definition at line 282 of file Tau.h.

282 { return pfEssential().pvCov_; }

References pfEssential(), and pat::tau::TauPFEssential::pvCov_.

◆ primaryVertexPos()

const pat::tau::TauPFEssential::Point& pat::Tau::primaryVertexPos ( ) const
inline

Definition at line 281 of file Tau.h.

281 { return pfEssential().pvPos_; }

References pfEssential(), and pat::tau::TauPFEssential::pvPos_.

◆ ptLeadChargedCand()

float pat::Tau::ptLeadChargedCand ( ) const
inline

return pt from LeadChargedCand

Definition at line 316 of file Tau.h.

316 { return pfEssential().ptLeadChargedCand_; }

References pfEssential(), and pat::tau::TauPFEssential::ptLeadChargedCand_.

Referenced by AntiElectronIDMVA6< TauType, ElectronType >::getTauVarsTypeSpecific().

◆ secondaryVertex()

const reco::VertexRef& pat::Tau::secondaryVertex ( ) const
inline

Definition at line 287 of file Tau.h.

287 { return pfEssential().sv_; }

References pfEssential(), and pat::tau::TauPFEssential::sv_.

◆ secondaryVertexCov()

const pat::tau::TauPFEssential::CovMatrix& pat::Tau::secondaryVertexCov ( ) const
inline

Definition at line 289 of file Tau.h.

289 { return pfEssential().svCov_; }

References pfEssential(), and pat::tau::TauPFEssential::svCov_.

◆ secondaryVertexPos()

const pat::tau::TauPFEssential::Point& pat::Tau::secondaryVertexPos ( ) const
inline

Definition at line 288 of file Tau.h.

288 { return pfEssential().svPos_; }

References pfEssential(), and pat::tau::TauPFEssential::svPos_.

◆ segComp()

float pat::Tau::segComp ( ) const
inline

Method copied from reco::PFTau. Throws an exception if this pat::Tau was not made from a reco::PFTau

Definition at line 220 of file Tau.h.

220 { return pfSpecific().segComp_; }

References pfSpecific(), and pat::tau::TauPFSpecific::segComp_.

◆ setDecayMode()

void pat::Tau::setDecayMode ( int  )

set decay mode

Referenced by pat::PATTauProducer::produce().

◆ setGenJet()

void pat::Tau::setGenJet ( const reco::GenJetRef ref)

set the matched GenJet

Referenced by pat::PATTauProducer::produce().

◆ setIsolationChargedHadrCands()

void pat::Tau::setIsolationChargedHadrCands ( const reco::CandidatePtrVector ptrs)
inline

Definition at line 263 of file Tau.h.

References isolationChargedHadrCandPtrs_.

◆ setIsolationGammaCands()

void pat::Tau::setIsolationGammaCands ( const reco::CandidatePtrVector ptrs)
inline

Definition at line 265 of file Tau.h.

265 { isolationGammaCandPtrs_ = ptrs; }

References isolationGammaCandPtrs_.

◆ setIsolationNeutralHadrCands()

void pat::Tau::setIsolationNeutralHadrCands ( const reco::CandidatePtrVector ptrs)
inline

Definition at line 264 of file Tau.h.

References isolationNeutralHadrCandPtrs_.

◆ setSignalChargedHadrCands()

void pat::Tau::setSignalChargedHadrCands ( const reco::CandidatePtrVector ptrs)
inline

setters for the PtrVectors (for miniAOD)

Definition at line 260 of file Tau.h.

260 { signalChargedHadrCandPtrs_ = ptrs; }

References signalChargedHadrCandPtrs_.

◆ setSignalGammaCands()

void pat::Tau::setSignalGammaCands ( const reco::CandidatePtrVector ptrs)
inline

Definition at line 262 of file Tau.h.

262 { signalGammaCandPtrs_ = ptrs; }

References signalGammaCandPtrs_.

◆ setSignalNeutralHadrCands()

void pat::Tau::setSignalNeutralHadrCands ( const reco::CandidatePtrVector ptrs)
inline

Definition at line 261 of file Tau.h.

261 { signalNeutralHadrCandPtrs_ = ptrs; }

References signalNeutralHadrCandPtrs_.

◆ setTauIDs()

void pat::Tau::setTauIDs ( const std::vector< IdPair > &  ids)
inline

Store multiple tau ID values, discarding existing ones The first one in the list becomes the 'default' tau id

Definition at line 347 of file Tau.h.

347 { tauIDs_ = ids; }

References tauIDs_.

Referenced by PATTauIDEmbedder::produce(), and pat::PATTauProducer::produce().

◆ signalCands()

reco::CandidatePtrVector pat::Tau::signalCands ( ) const

◆ signalChargedHadrCands()

reco::CandidatePtrVector pat::Tau::signalChargedHadrCands ( ) const

return the PFCandidates if available (reference or embedded), or the PackedPFCandidate on miniAOD note that the vector is returned by value.

◆ signalGammaCands()

reco::CandidatePtrVector pat::Tau::signalGammaCands ( ) const

return the PFCandidates if available (reference or embedded), or the PackedPFCandidate on miniAOD note that the vector is returned by value.

◆ signalNeutrHadrCands()

reco::CandidatePtrVector pat::Tau::signalNeutrHadrCands ( ) const

return the PFCandidates if available (reference or embedded), or the PackedPFCandidate on miniAOD note that the vector is returned by value.

◆ signalPFCands()

const std::vector<reco::PFCandidatePtr>& pat::Tau::signalPFCands ( ) const

Method copied from reco::PFTau. Throws an exception if this pat::Tau was not made from a reco::PFTau

◆ signalPFChargedHadrCands()

const std::vector<reco::PFCandidatePtr>& pat::Tau::signalPFChargedHadrCands ( ) const

Method copied from reco::PFTau. Throws an exception if this pat::Tau was not made from a reco::PFTau

◆ signalPFGammaCands()

const std::vector<reco::PFCandidatePtr>& pat::Tau::signalPFGammaCands ( ) const

Method copied from reco::PFTau. Throws an exception if this pat::Tau was not made from a reco::PFTau

◆ signalPFNeutrHadrCands()

const std::vector<reco::PFCandidatePtr>& pat::Tau::signalPFNeutrHadrCands ( ) const

Method copied from reco::PFTau. Throws an exception if this pat::Tau was not made from a reco::PFTau

◆ signalPiZeroCandidates()

const std::vector<reco::RecoTauPiZero>& pat::Tau::signalPiZeroCandidates ( ) const

Method copied from reco::PFTau. Throws an exception if this pat::Tau was not made from a reco::PFTau

◆ signalTauChargedHadronCandidates()

const std::vector<reco::PFRecoTauChargedHadron>& pat::Tau::signalTauChargedHadronCandidates ( ) const

Method copied from reco::PFTau. Throws an exception if this pat::Tau was not made from a reco::PFTau

◆ signalTracks()

const reco::TrackRefVector& pat::Tau::signalTracks ( ) const
overridevirtual

override the reco::BaseTau::signalTracks method, to access the internal storage of the signal tracks

Reimplemented from reco::BaseTau.

◆ sourceCandidatePtr()

reco::CandidatePtr pat::Tau::sourceCandidatePtr ( size_type  i) const
overridevirtual

get the source candidate pointer with index i

Reimplemented from reco::LeafCandidate.

◆ tauID() [1/2]

float pat::Tau::tauID ( const char *  name) const
inline

Definition at line 339 of file Tau.h.

339 { return tauID(std::string(name)); }

References Skims_PA_cff::name, AlCaHLTBitMon_QueryRunRegistry::string, and tauID().

Referenced by tauID().

◆ tauID() [2/2]

float pat::Tau::tauID ( const std::string &  name) const

Returns a specific tau ID associated to the pat::Tau given its name For cut-based IDs, the value is 1.0 for good, 0.0 for bad. The names are defined within the configuration parameterset "tauIDSources" in PhysicsTools/PatAlgos/python/producersLayer1/tauProducer_cfi.py . Note: an exception is thrown if the specified ID is not available

◆ tauIDs()

const std::vector<IdPair>& pat::Tau::tauIDs ( ) const
inline

Returns all the tau IDs in the form of <name,value> pairs The 'default' ID is the first in the list

Definition at line 344 of file Tau.h.

344 { return tauIDs_; }

References tauIDs_.

Friends And Related Function Documentation

◆ PATTauProducer

friend class PATTauProducer
friend

make friends with PATTauProducer so that it can set the initial jet energy scale unequal to raw calling the private initializeJEC function, which should be non accessible to any other user

Definition at line 57 of file Tau.h.

◆ PATTauSlimmer

friend class PATTauSlimmer
friend

Definition at line 401 of file Tau.h.

◆ reco::operator<<

std::ostream& reco::operator<< ( std::ostream &  out,
const Tau obj 
)
friend

pipe operator (introduced to use pat::Tau with PFTopProjectors)

Member Data Documentation

◆ currentJECLevel_

unsigned int pat::Tau::currentJECLevel_
private

Definition at line 480 of file Tau.h.

Referenced by currentJECLevel().

◆ currentJECSet_

unsigned int pat::Tau::currentJECSet_
private

Definition at line 478 of file Tau.h.

Referenced by currentJECLevel(), and currentJECSet().

◆ embeddedIsolationPFCands_

bool pat::Tau::embeddedIsolationPFCands_
private

Definition at line 449 of file Tau.h.

◆ embeddedIsolationPFChargedHadrCands_

bool pat::Tau::embeddedIsolationPFChargedHadrCands_
private

Definition at line 452 of file Tau.h.

◆ embeddedIsolationPFGammaCands_

bool pat::Tau::embeddedIsolationPFGammaCands_
private

Definition at line 458 of file Tau.h.

◆ embeddedIsolationPFNeutralHadrCands_

bool pat::Tau::embeddedIsolationPFNeutralHadrCands_
private

Definition at line 455 of file Tau.h.

◆ embeddedIsolationTracks_

bool pat::Tau::embeddedIsolationTracks_
private

Definition at line 420 of file Tau.h.

◆ embeddedLeadPFCand_

bool pat::Tau::embeddedLeadPFCand_
private

Definition at line 430 of file Tau.h.

◆ embeddedLeadPFChargedHadrCand_

bool pat::Tau::embeddedLeadPFChargedHadrCand_
private

Definition at line 432 of file Tau.h.

◆ embeddedLeadPFNeutralCand_

bool pat::Tau::embeddedLeadPFNeutralCand_
private

Definition at line 434 of file Tau.h.

◆ embeddedLeadTrack_

bool pat::Tau::embeddedLeadTrack_
private

Definition at line 423 of file Tau.h.

◆ embeddedSignalPFCands_

bool pat::Tau::embeddedSignalPFCands_
private

Definition at line 437 of file Tau.h.

◆ embeddedSignalPFChargedHadrCands_

bool pat::Tau::embeddedSignalPFChargedHadrCands_
private

Definition at line 440 of file Tau.h.

◆ embeddedSignalPFGammaCands_

bool pat::Tau::embeddedSignalPFGammaCands_
private

Definition at line 446 of file Tau.h.

◆ embeddedSignalPFNeutralHadrCands_

bool pat::Tau::embeddedSignalPFNeutralHadrCands_
private

Definition at line 443 of file Tau.h.

◆ embeddedSignalTracks_

bool pat::Tau::embeddedSignalTracks_
private

Definition at line 425 of file Tau.h.

◆ genJet_

std::vector<reco::GenJet> pat::Tau::genJet_
private

Definition at line 462 of file Tau.h.

◆ isolationChargedHadrCandPtrs_

reco::CandidatePtrVector pat::Tau::isolationChargedHadrCandPtrs_
private

Definition at line 487 of file Tau.h.

Referenced by setIsolationChargedHadrCands().

◆ isolationGammaCandPtrs_

reco::CandidatePtrVector pat::Tau::isolationGammaCandPtrs_
private

Definition at line 489 of file Tau.h.

Referenced by setIsolationGammaCands().

◆ isolationNeutralHadrCandPtrs_

reco::CandidatePtrVector pat::Tau::isolationNeutralHadrCandPtrs_
private

Definition at line 488 of file Tau.h.

Referenced by setIsolationNeutralHadrCands().

◆ isolationPFCands_

std::vector<reco::PFCandidate> pat::Tau::isolationPFCands_
private

Definition at line 448 of file Tau.h.

◆ isolationPFCandsTransientPtrs_

edm::AtomicPtrCache<std::vector<reco::PFCandidatePtr> > pat::Tau::isolationPFCandsTransientPtrs_
private

Definition at line 450 of file Tau.h.

◆ isolationPFChargedHadrCands_

std::vector<reco::PFCandidate> pat::Tau::isolationPFChargedHadrCands_
private

Definition at line 451 of file Tau.h.

◆ isolationPFChargedHadrCandsTransientPtrs_

edm::AtomicPtrCache<std::vector<reco::PFCandidatePtr> > pat::Tau::isolationPFChargedHadrCandsTransientPtrs_
private

Definition at line 453 of file Tau.h.

◆ isolationPFGammaCands_

std::vector<reco::PFCandidate> pat::Tau::isolationPFGammaCands_
private

Definition at line 457 of file Tau.h.

◆ isolationPFGammaCandsTransientPtrs_

edm::AtomicPtrCache<std::vector<reco::PFCandidatePtr> > pat::Tau::isolationPFGammaCandsTransientPtrs_
private

Definition at line 459 of file Tau.h.

◆ isolationPFNeutralHadrCands_

std::vector<reco::PFCandidate> pat::Tau::isolationPFNeutralHadrCands_
private

Definition at line 454 of file Tau.h.

◆ isolationPFNeutralHadrCandsTransientPtrs_

edm::AtomicPtrCache<std::vector<reco::PFCandidatePtr> > pat::Tau::isolationPFNeutralHadrCandsTransientPtrs_
private

Definition at line 456 of file Tau.h.

◆ isolationTracks_

std::vector<reco::Track> pat::Tau::isolationTracks_
private

Definition at line 421 of file Tau.h.

◆ isolationTracksTransientRefVector_

edm::AtomicPtrCache<reco::TrackRefVector> pat::Tau::isolationTracksTransientRefVector_
private

Definition at line 422 of file Tau.h.

◆ jec_

std::vector<pat::TauJetCorrFactors> pat::Tau::jec_
private

◆ leadPFCand_

std::vector<reco::PFCandidate> pat::Tau::leadPFCand_
private

Definition at line 429 of file Tau.h.

◆ leadPFChargedHadrCand_

std::vector<reco::PFCandidate> pat::Tau::leadPFChargedHadrCand_
private

Definition at line 431 of file Tau.h.

◆ leadPFNeutralCand_

std::vector<reco::PFCandidate> pat::Tau::leadPFNeutralCand_
private

Definition at line 433 of file Tau.h.

◆ leadTrack_

std::vector<reco::Track> pat::Tau::leadTrack_
private

Definition at line 424 of file Tau.h.

◆ pfEssential_

std::vector<pat::tau::TauPFEssential> pat::Tau::pfEssential_
private

Definition at line 493 of file Tau.h.

Referenced by pat::PATTauProducer::produce().

◆ pfSpecific_

std::vector<pat::tau::TauPFSpecific> pat::Tau::pfSpecific_
private

holder for PFTau info, or empty vector if CaloTau

Definition at line 469 of file Tau.h.

Referenced by isPFTau().

◆ signalChargedHadrCandPtrs_

reco::CandidatePtrVector pat::Tau::signalChargedHadrCandPtrs_
private

Definition at line 483 of file Tau.h.

Referenced by setSignalChargedHadrCands().

◆ signalGammaCandPtrs_

reco::CandidatePtrVector pat::Tau::signalGammaCandPtrs_
private

Definition at line 485 of file Tau.h.

Referenced by setSignalGammaCands().

◆ signalNeutralHadrCandPtrs_

reco::CandidatePtrVector pat::Tau::signalNeutralHadrCandPtrs_
private

Definition at line 484 of file Tau.h.

Referenced by setSignalNeutralHadrCands().

◆ signalPFCands_

std::vector<reco::PFCandidate> pat::Tau::signalPFCands_
private

Definition at line 436 of file Tau.h.

◆ signalPFCandsTransientPtrs_

edm::AtomicPtrCache<std::vector<reco::PFCandidatePtr> > pat::Tau::signalPFCandsTransientPtrs_
private

Definition at line 438 of file Tau.h.

◆ signalPFChargedHadrCands_

std::vector<reco::PFCandidate> pat::Tau::signalPFChargedHadrCands_
private

Definition at line 439 of file Tau.h.

◆ signalPFChargedHadrCandsTransientPtrs_

edm::AtomicPtrCache<std::vector<reco::PFCandidatePtr> > pat::Tau::signalPFChargedHadrCandsTransientPtrs_
private

Definition at line 441 of file Tau.h.

◆ signalPFGammaCands_

std::vector<reco::PFCandidate> pat::Tau::signalPFGammaCands_
private

Definition at line 445 of file Tau.h.

◆ signalPFGammaCandsTransientPtrs_

edm::AtomicPtrCache<std::vector<reco::PFCandidatePtr> > pat::Tau::signalPFGammaCandsTransientPtrs_
private

Definition at line 447 of file Tau.h.

◆ signalPFNeutralHadrCands_

std::vector<reco::PFCandidate> pat::Tau::signalPFNeutralHadrCands_
private

Definition at line 442 of file Tau.h.

◆ signalPFNeutralHadrCandsTransientPtrs_

edm::AtomicPtrCache<std::vector<reco::PFCandidatePtr> > pat::Tau::signalPFNeutralHadrCandsTransientPtrs_
private

Definition at line 444 of file Tau.h.

◆ signalTracks_

std::vector<reco::Track> pat::Tau::signalTracks_
private

Definition at line 426 of file Tau.h.

◆ signalTracksTransientRefVector_

edm::AtomicPtrCache<reco::TrackRefVector> pat::Tau::signalTracksTransientRefVector_
private

Definition at line 427 of file Tau.h.

◆ tauIDs_

std::vector<IdPair> pat::Tau::tauIDs_
private

Definition at line 465 of file Tau.h.

Referenced by setTauIDs(), and tauIDs().

personalPlayback.level
level
Definition: personalPlayback.py:22
pat::tau::TauPFEssential::svPos_
Point svPos_
Definition: TauPFEssential.h:50
pat::Tau::Tau
Tau()
default constructor
pat::tau::TauPFEssential::hasSV_
bool hasSV_
Definition: TauPFEssential.h:46
pat::Tau::currentJECLevel_
unsigned int currentJECLevel_
Definition: Tau.h:480
pat::tau::TauPFSpecific::ecalStripSumEOverPLead_
float ecalStripSumEOverPLead_
Definition: TauPFSpecific.h:53
pat::Tau::isolationChargedHadrCandPtrs_
reco::CandidatePtrVector isolationChargedHadrCandPtrs_
Definition: Tau.h:487
pat::tau::TauPFEssential::sv_
reco::VertexRef sv_
Definition: TauPFEssential.h:49
pat::tau::TauPFSpecific::isolationPFGammaCandsEtSum_
float isolationPFGammaCandsEtSum_
Definition: TauPFSpecific.h:46
pat::tau::TauPFEssential::dxy_error_
float dxy_error_
Definition: TauPFEssential.h:41
pat::tau::TauPFSpecific::maximumHCALPFClusterEt_
float maximumHCALPFClusterEt_
Definition: TauPFSpecific.h:47
pat::tau::TauPFEssential::flightLengthSig_
float flightLengthSig_
Definition: TauPFEssential.h:48
pat::tau::TauPFSpecific::isolationPFChargedHadrCandsPtSum_
float isolationPFChargedHadrCandsPtSum_
Definition: TauPFSpecific.h:45
pat::tau::TauPFEssential::etaAtEcalEntranceLeadChargedCand_
float etaAtEcalEntranceLeadChargedCand_
Definition: TauPFEssential.h:61
pat::tau::TauPFSpecific::hcalTotOverPLead_
float hcalTotOverPLead_
Definition: TauPFSpecific.h:50
pat::Tau::signalGammaCandPtrs_
reco::CandidatePtrVector signalGammaCandPtrs_
Definition: Tau.h:485
pat::Tau::isolationNeutralHadrCandPtrs_
reco::CandidatePtrVector isolationNeutralHadrCandPtrs_
Definition: Tau.h:488
pat::tau::TauPFEssential::ptLeadChargedCand_
float ptLeadChargedCand_
Definition: TauPFEssential.h:62
pat::tau::TauPFEssential::flightLength_
Vector flightLength_
Definition: TauPFEssential.h:47
pat::tau::TauPFSpecific::pfJetRef_
reco::JetBaseRef pfJetRef_
Definition: TauPFSpecific.h:28
pat::tau::TauPFEssential::pv_
reco::VertexRef pv_
Definition: TauPFEssential.h:43
pat::tau::TauPFEssential::ip3d_
float ip3d_
Definition: TauPFEssential.h:52
pat::Tau::jec_
std::vector< pat::TauJetCorrFactors > jec_
Definition: Tau.h:475
pat::Tau::tauID
float tauID(const std::string &name) const
pat::tau::TauPFEssential::svCov_
CovMatrix svCov_
Definition: TauPFEssential.h:51
pat::tau::TauPFSpecific::segComp_
float segComp_
Definition: TauPFSpecific.h:60
pat::tau::TauPFEssential::dxy_
float dxy_
Definition: TauPFEssential.h:40
pat::Tau::signalNeutralHadrCandPtrs_
reco::CandidatePtrVector signalNeutralHadrCandPtrs_
Definition: Tau.h:484
pat::tau::TauPFEssential::ip3d_error_
float ip3d_error_
Definition: TauPFEssential.h:53
pat::Tau::isolationGammaCandPtrs_
reco::CandidatePtrVector isolationGammaCandPtrs_
Definition: Tau.h:489
pat::tau::TauPFSpecific::electronPreIDDecision_
bool electronPreIDDecision_
Definition: TauPFSpecific.h:57
pat::tau::TauPFEssential::hcalEnergy_
float hcalEnergy_
Definition: TauPFEssential.h:55
pat::tau::TauPFEssential::pvPos_
Point pvPos_
Definition: TauPFEssential.h:44
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
pat::Tau::currentJECSet_
unsigned int currentJECSet_
Definition: Tau.h:478
pat::Tau::pfSpecific
const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception 'not PFTau'
pat::tau::TauPFSpecific::electronPreIDOutput_
float electronPreIDOutput_
Definition: TauPFSpecific.h:56
pat::tau::TauPFSpecific::hcalMaxOverPLead_
float hcalMaxOverPLead_
Definition: TauPFSpecific.h:51
pat::tau::TauPFEssential::emFraction_
float emFraction_
Definition: TauPFEssential.h:63
pat::Tau::pfSpecific_
std::vector< pat::tau::TauPFSpecific > pfSpecific_
holder for PFTau info, or empty vector if CaloTau
Definition: Tau.h:469
pat::Tau::signalChargedHadrCandPtrs_
reco::CandidatePtrVector signalChargedHadrCandPtrs_
Definition: Tau.h:483
reco::LeafCandidate::p4
const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:114
pat::tau::TauPFSpecific::bremsRecoveryEOverPLead_
float bremsRecoveryEOverPLead_
Definition: TauPFSpecific.h:54
pat::tau::TauPFSpecific::leadPFChargedHadrCandsignedSipt_
float leadPFChargedHadrCandsignedSipt_
Definition: TauPFSpecific.h:30
pat::tau::TauPFSpecific::muonDecision_
bool muonDecision_
Definition: TauPFSpecific.h:61
pat::tau::TauPFEssential::leadingTrackNormChi2_
float leadingTrackNormChi2_
Definition: TauPFEssential.h:56
pat::tau::TauPFSpecific::hcal3x3OverPLead_
float hcal3x3OverPLead_
Definition: TauPFSpecific.h:52
pat::tau::TauPFSpecific::electronPreIDTrack_
reco::TrackRef electronPreIDTrack_
Definition: TauPFSpecific.h:55
pat::tau::TauPFEssential::decayMode_
int decayMode_
Definition: TauPFEssential.h:37
pat::Tau::correctedTauJet
Tau correctedTauJet(const std::string &level, const std::string &set="") const
pat::Tau::availableJECLevels
const std::vector< std::string > availableJECLevels(const int &set=0) const
pat::tau::TauPFEssential::ecalEnergyLeadChargedHadrCand_
float ecalEnergyLeadChargedHadrCand_
Definition: TauPFEssential.h:59
pat::tau::TauPFSpecific::emFraction_
float emFraction_
Definition: TauPFSpecific.h:49
pat::tau::TauPFEssential::pvCov_
CovMatrix pvCov_
Definition: TauPFEssential.h:45
pat::tau::TauPFEssential::etaAtEcalEntrance_
float etaAtEcalEntrance_
Definition: TauPFEssential.h:58
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
jetMETDQMOfflineSource_cff.jec
jec
Definition: jetMETDQMOfflineSource_cff.py:27
pat::Tau::tauIDs_
std::vector< IdPair > tauIDs_
Definition: Tau.h:465
pat::tau::TauPFSpecific::caloComp_
float caloComp_
Definition: TauPFSpecific.h:59
pat::Tau::pfEssential
const pat::tau::TauPFEssential & pfEssential() const
pat::Tau::jecSet
int jecSet(const std::string &label) const
pat::tau::TauPFEssential::ecalEnergy_
float ecalEnergy_
Definition: TauPFEssential.h:54
pat::tau::TauPFEssential::dxy_PCA_
Point dxy_PCA_
Definition: TauPFEssential.h:39
pat::tau::TauPFEssential::phiAtEcalEntrance_
float phiAtEcalEntrance_
Definition: TauPFEssential.h:57
pat::tau::TauPFEssential::hcalEnergyLeadChargedHadrCand_
float hcalEnergyLeadChargedHadrCand_
Definition: TauPFEssential.h:60