CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Protected 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

float bremsRecoveryEOverPLead () const
 
float caloComp () const
 
const pat::tau::TauCaloSpecificcaloSpecific () const
 return CaloTau info or throw exception 'not CaloTau' More...
 
reco::CaloTauTagInfoRef caloTauTagInfoRef () const
 
virtual Tauclone () const
 required reimplementation of the Candidate's clone method More...
 
int decayMode () const
 reconstructed tau decay mode (specific to PFTau) More...
 
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 ()
 method to store the leading candidate internally More...
 
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 etaetaMoment () const
 
float etaphiMoment () const
 
const reco::GenJetgenJet () const
 return matched GenJet, built from the visible particles of a generated tau More...
 
float hcal3x3OverPLead () const
 
float hcalMaxOverPLead () const
 
float hcalTotOverPLead () const
 
bool isCaloTau () const
 Returns true if this pat::Tau was made from a reco::CaloTau. More...
 
float isolationECALhitsEtSum () const
 
const reco::PFCandidateRefVectorisolationPFCands () const
 
const reco::PFCandidateRefVectorisolationPFChargedHadrCands () const
 
float isolationPFChargedHadrCandsPtSum () const
 
const reco::PFCandidateRefVectorisolationPFGammaCands () const
 
float isolationPFGammaCandsEtSum () const
 
const reco::PFCandidateRefVectorisolationPFNeutrHadrCands () const
 
const reco::TrackRefVectorisolationTracks () const
 override the reco::BaseTau::isolationTracks method, to access the internal storage of the isolation tracks More...
 
float isolationTracksPtSum () const
 
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...
 
const reco::PFCandidateRef leadPFCand () const
 
const reco::PFCandidateRef leadPFChargedHadrCand () const
 
float leadPFChargedHadrCandsignedSipt () const
 
const reco::PFCandidateRef leadPFNeutralCand () const
 
reco::TrackRef leadTrack () const
 override the reco::BaseTau::leadTrack method, to access the internal storage of the leading track More...
 
float leadTrackHCAL3x3hitsEtSum () const
 
float leadTrackHCAL3x3hottesthitDEta () const
 
float leadTracksignedSipt () const
 
float maximumHCALhitEt () const
 
float maximumHCALPFClusterEt () const
 
bool muonDecision () const
 
const reco::PFJetRefpfJetRef () const
 
const pat::tau::TauPFSpecificpfSpecific () const
 return PFTau info or throw exception 'not PFTau' More...
 
float phiphiMoment () const
 
float segComp () const
 
void setDecayMode (int)
 set decay mode More...
 
void setGenJet (const reco::GenJetRef &ref)
 set the matched GenJet More...
 
void setTauIDs (const std::vector< IdPair > &ids)
 
const reco::PFCandidateRefVectorsignalPFCands () const
 
const reco::PFCandidateRefVectorsignalPFChargedHadrCands () const
 
const reco::PFCandidateRefVectorsignalPFGammaCands () const
 
const reco::PFCandidateRefVectorsignalPFNeutrHadrCands () const
 
const reco::TrackRefVectorsignalTracks () const
 override the reco::BaseTau::signalTracks method, to access the internal storage of the signal tracks More...
 
float signalTracksInvariantMass () const
 
 Tau ()
 default constructor More...
 
 Tau (const reco::BaseTau &aTau)
 constructor from 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 edm::Ptr< reco::BaseTau > &aTauRef)
 constructor from a Ptr to a reco tau More...
 
float tauID (const std::string &name) const
 
const std::vector< IdPair > & tauIDs () const
 
float TracksInvariantMass () const
 
virtual ~Tau ()
 destructor More...
 
- Public Member Functions inherited from pat::Lepton< reco::BaseTau >
float caloIso () const
 
float chargedHadronIso () const
 
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 ()
 
 Lepton (const reco::BaseTau &aLepton)
 
 Lepton (const edm::RefToBase< reco::BaseTau > &aLeptonRef)
 
 Lepton (const edm::Ptr< reco::BaseTau > &aLeptonRef)
 
float neutralHadronIso () const
 
float particleIso () const
 
float photonIso () 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 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
 
const IsoDeposituserIsoDeposit (uint8_t index=0) const
 
void userIsoDeposit (const IsoDeposit &dep, uint8_t index=0)
 
float userIsolation (IsolationKeys key) const
 
float userIsolation (const std::string &key) const
 
virtual ~Lepton ()
 
- 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)
 Set user-defined int. More...
 
void addUserData (const std::string &label, const T &data, bool transientOnly=false)
 
void addUserDataFromPtr (const std::string &label, const edm::Ptr< pat::UserData > &data)
 
void addUserFloat (const std::string &label, float data)
 Set user-defined float. More...
 
void addUserInt (const std::string &label, int32_t data)
 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 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 reco::BaseTau &obj)
 constructor from a base object (leaves invalid reference to original object!) More...
 
 PATObject (const edm::RefToBase< reco::BaseTau > &ref)
 constructor from reference More...
 
 PATObject (const edm::Ptr< reco::BaseTau > &ref)
 constructor from reference 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 std::string &nameAlgorithm, const bool algoCondAccepted=true, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByAlgorithm (const char *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 TriggerObjectStandAlonetriggerObjectMatchByAlgorithm (const char *nameAlgorithm, const unsigned algoCondAccepted, 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 TriggerObjectStandAlonetriggerObjectMatchByCollection (const char *coll, 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 TriggerObjectStandAlonetriggerObjectMatchByCondition (const char *nameCondition, 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 TriggerObjectStandAlonetriggerObjectMatchByFilter (const char *labelFilter, const size_t idx=0) const
 
const TriggerObjectStandAlonetriggerObjectMatchByFilterID (const unsigned triggerObjectType, 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 char *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 TriggerObjectStandAlonetriggerObjectMatchByPath (const char *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
TriggerObjectStandAloneCollection
triggerObjectMatches () const
 get all matched trigger objects More...
 
const
TriggerObjectStandAloneCollection 
triggerObjectMatchesByAlgorithm (const std::string &nameAlgorithm, const bool algoCondAccepted=true) const
 
const
TriggerObjectStandAloneCollection 
triggerObjectMatchesByAlgorithm (const char *nameAlgorithm, const bool algoCondAccepted=true) const
 
const
TriggerObjectStandAloneCollection 
triggerObjectMatchesByAlgorithm (const std::string &nameAlgorithm, const unsigned algoCondAccepted) const
 
const
TriggerObjectStandAloneCollection 
triggerObjectMatchesByAlgorithm (const char *nameAlgorithm, const unsigned algoCondAccepted) const
 
const
TriggerObjectStandAloneCollection 
triggerObjectMatchesByCollection (const std::string &coll) const
 get all matched trigger objects from a certain collection More...
 
const
TriggerObjectStandAloneCollection 
triggerObjectMatchesByCollection (const char *coll) 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 
triggerObjectMatchesByCondition (const char *nameCondition) const
 
const
TriggerObjectStandAloneCollection 
triggerObjectMatchesByFilter (const std::string &labelFilter) const
 get all matched HLT objects used in a certain HLT filter More...
 
const
TriggerObjectStandAloneCollection 
triggerObjectMatchesByFilter (const char *labelFilter) const
 
const
TriggerObjectStandAloneCollection 
triggerObjectMatchesByFilterID (const unsigned triggerObjectType) const
 
const
TriggerObjectStandAloneCollection 
triggerObjectMatchesByPath (const std::string &namePath, const bool pathLastFilterAccepted=false, const bool pathL3FilterAccepted=true) const
 
const
TriggerObjectStandAloneCollection 
triggerObjectMatchesByPath (const char *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 
triggerObjectMatchesByPath (const char *namePath, const unsigned pathLastFilterAccepted, const unsigned pathL3FilterAccepted=1) const
 
const
TriggerObjectStandAloneCollection 
triggerObjectMatchesByType (const trigger::TriggerObjectType triggerObjectType) const
 
const
TriggerObjectStandAloneCollection 
triggerObjectMatchesByType (const unsigned triggerObjectType) const
 
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 std::string &key) const
 
const std::vector< std::string > & userFloatNames () const
 Get list of user-defined float names. More...
 
int32_t userInt (const std::string &key) const
 
const std::vector< std::string > & userIntNames () const
 Get list of user-defined int names. More...
 
virtual ~PATObject ()
 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 (math::XYZTLorentzVector)
 
void setisolationTracks (const TrackRefVector &)
 
void setleadTrack (const TrackRef &)
 
void setsignalTracks (const TrackRefVector &)
 
virtual ~BaseTau ()
 
- Public Member Functions inherited from reco::RecoCandidate
const TrackbestTrack () const
 best track pointer More...
 
TrackBaseRef bestTrackRef () const
 best track RefToBase More...
 
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...
 
virtual reco::GsfTrackRef gsfTrack () const
 reference to a GsfTrack More...
 
virtual size_t numberOfTracks () const
 number of multiple Tracks More...
 
 RecoCandidate ()
 default constructor More...
 
 RecoCandidate (Charge q, const LorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0)
 constructor from values More...
 
 RecoCandidate (Charge q, const PolarLorentzVector &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...
 
virtual ~RecoCandidate ()
 destructor More...
 
- Public Member Functions inherited from reco::LeafCandidate
virtual const_iterator begin () const
 first daughter const_iterator More...
 
virtual iterator begin ()
 first daughter iterator More...
 
template<typename S >
daughter_iterator< S >::type beginFilter (const S &s) const
 
virtual Vector boostToCM () const
 
virtual int charge () const
 electric charge More...
 
virtual const Candidatedaughter (size_type) const
 return daughter at a given position (throws an exception) More...
 
virtual Candidatedaughter (size_type)
 return daughter at a given position (throws an exception) More...
 
virtual Candidatedaughter (const std::string &s)
 return daughter with a specified role name More...
 
virtual const Candidatedaughter (const std::string &s) const
 return daughter with a specified role name More...
 
virtual const_iterator end () const
 last daughter const_iterator More...
 
virtual iterator end ()
 last daughter iterator More...
 
template<typename S >
daughter_iterator< S >::type endFilter (const S &s) const
 
virtual double energy () const
 energy More...
 
virtual double et () const
 transverse energy More...
 
virtual double eta () const
 momentum pseudorapidity More...
 
virtual void fillVertexCovariance (CovarianceMatrix &v) const
 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...
 
virtual bool hasMasterClone () const
 
virtual bool hasMasterClonePtr () const
 
virtual bool isCaloMuon () const
 
virtual bool isConvertedPhoton () const
 
virtual bool isElectron () const
 
virtual bool isGlobalMuon () const
 
virtual bool isJet () const
 
virtual bool isMuon () const
 
virtual bool isPhoton () const
 
virtual bool isStandAloneMuon () const
 
virtual bool isTrackerMuon () const
 
 LeafCandidate ()
 default constructor More...
 
 LeafCandidate (const Candidate &c)
 
 LeafCandidate (Charge q, const LorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values More...
 
 LeafCandidate (Charge q, const PolarLorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values More...
 
virtual bool longLived () const
 is long lived? More...
 
virtual double mass () const
 mass More...
 
virtual bool massConstraint () const
 do mass constraint? More...
 
virtual double massSqr () const
 mass squared More...
 
virtual const CandidateBaseRefmasterClone () const
 
virtual const CandidatePtrmasterClonePtr () const
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
virtual Vector momentum () const
 spatial momentum vector More...
 
virtual const Candidatemother (size_type) const
 return mother at a given position (throws an exception) More...
 
virtual double mt () const
 transverse mass More...
 
virtual double mtSqr () const
 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...
 
virtual size_t numberOfDaughters () const
 number of daughters More...
 
virtual size_t numberOfMothers () const
 number of mothers More...
 
virtual size_t numberOfSourceCandidatePtrs () const
 
virtual double p () const
 magnitude of momentum vector More...
 
virtual const LorentzVectorp4 () const
 four-momentum Lorentz vector More...
 
virtual int pdgId () const
 PDG identifier. More...
 
virtual double phi () const
 momentum azimuthal angle More...
 
virtual const PolarLorentzVectorpolarP4 () const
 four-momentum Lorentz vector More...
 
virtual double pt () const
 transverse momentum More...
 
virtual double px () const
 x coordinate of momentum vector More...
 
virtual double py () const
 y coordinate of momentum vector More...
 
virtual double pz () const
 z coordinate of momentum vector More...
 
virtual double rapidity () const
 rapidity More...
 
virtual void setCharge (Charge q)
 set electric charge More...
 
virtual void setLongLived ()
 set long lived flag More...
 
virtual void setMass (double m)
 set particle mass More...
 
virtual void setMassConstraint ()
 set mass constraint flag More...
 
virtual void setP4 (const LorentzVector &p4)
 set 4-momentum More...
 
virtual void setP4 (const PolarLorentzVector &p4)
 set 4-momentum More...
 
virtual void setPdgId (int pdgId)
 
virtual void setPz (double pz)
 
virtual void setStatus (int status)
 set status word More...
 
virtual void setThreeCharge (Charge qx3)
 set electric charge More...
 
virtual void setVertex (const Point &vertex)
 set vertex More...
 
virtual CandidatePtr sourceCandidatePtr (size_type i) const
 
virtual int status () const
 status word More...
 
virtual double theta () const
 momentum polar angle More...
 
virtual int threeCharge () const
 electric charge More...
 
virtual const Pointvertex () const
 vertex position More...
 
virtual double vertexChi2 () const
 chi-squares More...
 
virtual double vertexCovariance (int i, int j) const
 (i, j)-th element of error matrix, i, j = 0, ... 2 More...
 
CovarianceMatrix vertexCovariance () const
 return SMatrix More...
 
virtual double vertexNdof () const
 
virtual double vertexNormalizedChi2 () const
 chi-squared divided by n.d.o.f. More...
 
virtual double vx () const
 x coordinate of vertex position More...
 
virtual double vy () const
 y coordinate of vertex position More...
 
virtual double vz () const
 z coordinate of vertex position More...
 
virtual double y () const
 rapidity More...
 
virtual ~LeafCandidate ()
 destructor More...
 
- Public Member Functions inherited from reco::Candidate
template<typename S >
daughter_iterator< S >::type beginFilter (const S &s) const
 
 Candidate ()
 default constructor More...
 
template<typename S >
daughter_iterator< S >::type endFilter (const S &s) const
 
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 Attributes

std::vector
< pat::tau::TauCaloSpecific
caloSpecific_
 holder for CaloTau info, or empty vector if PFTau More...
 
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_
 
std::vector< reco::PFCandidateisolationPFCands_
 
edm::BoolCache isolationPFCandsRefVectorFixed_
 
reco::PFCandidateRefVector isolationPFCandsTransientRefVector_
 
std::vector< reco::PFCandidateisolationPFChargedHadrCands_
 
edm::BoolCache isolationPFChargedHadrCandsRefVectorFixed_
 
reco::PFCandidateRefVector isolationPFChargedHadrCandsTransientRefVector_
 
std::vector< reco::PFCandidateisolationPFGammaCands_
 
edm::BoolCache isolationPFGammaCandsRefVectorFixed_
 
reco::PFCandidateRefVector isolationPFGammaCandsTransientRefVector_
 
std::vector< reco::PFCandidateisolationPFNeutralHadrCands_
 
edm::BoolCache isolationPFNeutralHadrCandsRefVectorFixed_
 
reco::PFCandidateRefVector isolationPFNeutralHadrCandsTransientRefVector_
 
std::vector< reco::TrackisolationTracks_
 
reco::TrackRefVector isolationTracksTransientRefVector_
 
edm::BoolCache isolationTracksTransientRefVectorFixed_
 
std::vector< reco::PFCandidateleadPFCand_
 
std::vector< reco::PFCandidateleadPFChargedHadrCand_
 
std::vector< reco::PFCandidateleadPFNeutralCand_
 
std::vector< reco::TrackleadTrack_
 
std::vector
< pat::tau::TauPFSpecific
pfSpecific_
 holder for PFTau info, or empty vector if CaloTau More...
 
std::vector< reco::PFCandidatesignalPFCands_
 
edm::BoolCache signalPFCandsRefVectorFixed_
 
reco::PFCandidateRefVector signalPFCandsTransientRefVector_
 
std::vector< reco::PFCandidatesignalPFChargedHadrCands_
 
edm::BoolCache signalPFChargedHadrCandsRefVectorFixed_
 
reco::PFCandidateRefVector signalPFChargedHadrCandsTransientRefVector_
 
std::vector< reco::PFCandidatesignalPFGammaCands_
 
edm::BoolCache signalPFGammaCandsRefVectorFixed_
 
reco::PFCandidateRefVector signalPFGammaCandsTransientRefVector_
 
std::vector< reco::PFCandidatesignalPFNeutralHadrCands_
 
edm::BoolCache signalPFNeutralHadrCandsRefVectorFixed_
 
reco::PFCandidateRefVector signalPFNeutralHadrCandsTransientRefVector_
 
std::vector< reco::TracksignalTracks_
 
reco::TrackRefVector signalTracksTransientRefVector_
 
edm::BoolCache signalTracksTransientRefVectorFixed_
 
std::vector< IdPairtauIDs_
 
- Protected Attributes inherited from pat::Lepton< reco::BaseTau >
IsoDepositPairs isoDeposits_
 
std::vector< float > isolations_
 
- Protected Attributes inherited from pat::PATObject< reco::BaseTau >
std::vector< std::string > efficiencyNames_
 vector of the efficiencies (names) More...
 
std::vector
< pat::LookupTableRecord
efficiencyValues_
 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::CandKinResolution
kinResolutions_
 Kinematic resolutions. More...
 
std::vector
< reco::CandidatePtrVector
overlapItems_
 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_
 
- Protected Attributes inherited from reco::LeafCandidate
edm::BoolCache cacheCartesianFixed_
 
edm::BoolCache cachePolarFixed_
 has cache been set? More...
 
float eta_
 
float mass_
 
LorentzVector p4Cartesian_
 internal cache for p4 More...
 
PolarLorentzVector p4Polar_
 internal cache for p4 More...
 
int pdgId_
 PDG identifier. More...
 
float phi_
 
float pt_
 four-momentum Lorentz vector More...
 
Charge qx3_
 electric charge More...
 
int status_
 status word More...
 
Point vertex_
 vertex position More...
 

Friends

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

Additional Inherited Members

- Static Public Attributes inherited from reco::LeafCandidate
static const unsigned int longLivedTag = 65536
 long lived flag More...
 
static const unsigned int massConstraintTag = 131072
 do mass constraint flag More...
 
- Protected Types inherited from pat::Lepton< reco::BaseTau >
typedef std::vector< std::pair
< IsolationKeys,
pat::IsoDeposit > > 
IsoDepositPairs
 
- 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...
 
- Protected Member Functions inherited from reco::LeafCandidate
void cacheCartesian () const
 set internal cache More...
 
void cachePolar () const
 set internal cache More...
 
void clearCache () const
 clear internal cache More...
 

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::CaloTau or reco::PFTau, and adds some PAT-specific variable.

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
Version
Id:
Tau.h,v 1.28 2011/03/11 17:45:34 veelken Exp

Definition at line 51 of file Tau.h.

Member Typedef Documentation

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

Definition at line 55 of file Tau.h.

Constructor & Destructor Documentation

Tau::Tau ( )

default constructor

Definition at line 13 of file Tau.cc.

Referenced by clone().

13  :
16  embeddedLeadTrack_(false),
18  ,embeddedLeadPFCand_(false)
29 {
30 }
bool embeddedLeadPFNeutralCand_
Definition: Tau.h:286
bool embeddedSignalPFChargedHadrCands_
Definition: Tau.h:293
bool embeddedIsolationPFChargedHadrCands_
Definition: Tau.h:309
bool embeddedIsolationPFCands_
Definition: Tau.h:305
bool embeddedIsolationPFNeutralHadrCands_
Definition: Tau.h:313
bool embeddedLeadTrack_
Definition: Tau.h:274
bool embeddedSignalPFGammaCands_
Definition: Tau.h:301
bool embeddedIsolationPFGammaCands_
Definition: Tau.h:317
bool embeddedSignalTracks_
Definition: Tau.h:276
bool embeddedLeadPFCand_
Definition: Tau.h:282
bool embeddedLeadPFChargedHadrCand_
Definition: Tau.h:284
bool embeddedSignalPFNeutralHadrCands_
Definition: Tau.h:297
bool embeddedSignalPFCands_
Definition: Tau.h:289
bool embeddedIsolationTracks_
Definition: Tau.h:270
Tau::Tau ( const reco::BaseTau aTau)

constructor from a reco tau

constructor from reco::BaseTau

Definition at line 33 of file Tau.cc.

References caloSpecific_, and pfSpecific_.

33  :
36  embeddedLeadTrack_(false),
38  ,embeddedLeadPFCand_(false)
49 {
50  const reco::PFTau * pfTau = dynamic_cast<const reco::PFTau *>(&aTau);
51  if (pfTau != 0) pfSpecific_.push_back(pat::tau::TauPFSpecific(*pfTau));
52  const reco::CaloTau * caloTau = dynamic_cast<const reco::CaloTau *>(&aTau);
53  if (caloTau != 0) caloSpecific_.push_back(pat::tau::TauCaloSpecific(*caloTau));
54 }
bool embeddedLeadPFNeutralCand_
Definition: Tau.h:286
bool embeddedSignalPFChargedHadrCands_
Definition: Tau.h:293
bool embeddedIsolationPFChargedHadrCands_
Definition: Tau.h:309
bool embeddedIsolationPFCands_
Definition: Tau.h:305
bool embeddedIsolationPFNeutralHadrCands_
Definition: Tau.h:313
bool embeddedLeadTrack_
Definition: Tau.h:274
bool embeddedSignalPFGammaCands_
Definition: Tau.h:301
bool embeddedIsolationPFGammaCands_
Definition: Tau.h:317
bool embeddedSignalTracks_
Definition: Tau.h:276
bool embeddedLeadPFCand_
Definition: Tau.h:282
bool embeddedLeadPFChargedHadrCand_
Definition: Tau.h:284
bool embeddedSignalPFNeutralHadrCands_
Definition: Tau.h:297
std::vector< pat::tau::TauCaloSpecific > caloSpecific_
holder for CaloTau info, or empty vector if PFTau
Definition: Tau.h:327
bool embeddedSignalPFCands_
Definition: Tau.h:289
bool embeddedIsolationTracks_
Definition: Tau.h:270
std::vector< pat::tau::TauPFSpecific > pfSpecific_
holder for PFTau info, or empty vector if CaloTau
Definition: Tau.h:330
Tau::Tau ( const edm::RefToBase< reco::BaseTau > &  aTauRef)

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

constructor from ref to reco::BaseTau

Definition at line 57 of file Tau.cc.

References caloSpecific_, edm::RefToBase< T >::get(), and pfSpecific_.

57  :
58  Lepton<reco::BaseTau>(aTauRef),
60  embeddedLeadTrack_(false),
62  ,embeddedLeadPFCand_(false)
73 {
74  const reco::PFTau * pfTau = dynamic_cast<const reco::PFTau *>(aTauRef.get());
75  if (pfTau != 0) pfSpecific_.push_back(pat::tau::TauPFSpecific(*pfTau));
76  const reco::CaloTau * caloTau = dynamic_cast<const reco::CaloTau *>(aTauRef.get());
77  if (caloTau != 0) caloSpecific_.push_back(pat::tau::TauCaloSpecific(*caloTau));
78 }
bool embeddedLeadPFNeutralCand_
Definition: Tau.h:286
bool embeddedSignalPFChargedHadrCands_
Definition: Tau.h:293
bool embeddedIsolationPFChargedHadrCands_
Definition: Tau.h:309
bool embeddedIsolationPFCands_
Definition: Tau.h:305
bool embeddedIsolationPFNeutralHadrCands_
Definition: Tau.h:313
bool embeddedLeadTrack_
Definition: Tau.h:274
bool embeddedSignalPFGammaCands_
Definition: Tau.h:301
bool embeddedIsolationPFGammaCands_
Definition: Tau.h:317
bool embeddedSignalTracks_
Definition: Tau.h:276
bool embeddedLeadPFCand_
Definition: Tau.h:282
bool embeddedLeadPFChargedHadrCand_
Definition: Tau.h:284
bool embeddedSignalPFNeutralHadrCands_
Definition: Tau.h:297
std::vector< pat::tau::TauCaloSpecific > caloSpecific_
holder for CaloTau info, or empty vector if PFTau
Definition: Tau.h:327
bool embeddedSignalPFCands_
Definition: Tau.h:289
bool embeddedIsolationTracks_
Definition: Tau.h:270
value_type const * get() const
Definition: RefToBase.h:212
std::vector< pat::tau::TauPFSpecific > pfSpecific_
holder for PFTau info, or empty vector if CaloTau
Definition: Tau.h:330
Tau::Tau ( const edm::Ptr< reco::BaseTau > &  aTauRef)

constructor from a Ptr to a reco tau

constructor from ref to reco::BaseTau

Definition at line 81 of file Tau.cc.

References caloSpecific_, edm::Ptr< T >::get(), and pfSpecific_.

81  :
82  Lepton<reco::BaseTau>(aTauRef),
84  embeddedLeadTrack_(false),
86  ,embeddedLeadPFCand_(false)
97 {
98  const reco::PFTau * pfTau = dynamic_cast<const reco::PFTau *>(aTauRef.get());
99  if (pfTau != 0) pfSpecific_.push_back(pat::tau::TauPFSpecific(*pfTau));
100  const reco::CaloTau * caloTau = dynamic_cast<const reco::CaloTau *>(aTauRef.get());
101  if (caloTau != 0) caloSpecific_.push_back(pat::tau::TauCaloSpecific(*caloTau));
102 }
bool embeddedLeadPFNeutralCand_
Definition: Tau.h:286
bool embeddedSignalPFChargedHadrCands_
Definition: Tau.h:293
bool embeddedIsolationPFChargedHadrCands_
Definition: Tau.h:309
bool embeddedIsolationPFCands_
Definition: Tau.h:305
bool embeddedIsolationPFNeutralHadrCands_
Definition: Tau.h:313
bool embeddedLeadTrack_
Definition: Tau.h:274
bool embeddedSignalPFGammaCands_
Definition: Tau.h:301
T const * get() const
Returns C++ pointer to the item.
Definition: Ptr.h:148
bool embeddedIsolationPFGammaCands_
Definition: Tau.h:317
bool embeddedSignalTracks_
Definition: Tau.h:276
bool embeddedLeadPFCand_
Definition: Tau.h:282
bool embeddedLeadPFChargedHadrCand_
Definition: Tau.h:284
bool embeddedSignalPFNeutralHadrCands_
Definition: Tau.h:297
std::vector< pat::tau::TauCaloSpecific > caloSpecific_
holder for CaloTau info, or empty vector if PFTau
Definition: Tau.h:327
bool embeddedSignalPFCands_
Definition: Tau.h:289
bool embeddedIsolationTracks_
Definition: Tau.h:270
std::vector< pat::tau::TauPFSpecific > pfSpecific_
holder for PFTau info, or empty vector if CaloTau
Definition: Tau.h:330
Tau::~Tau ( )
virtual

destructor

Definition at line 105 of file Tau.cc.

105  {
106 }

Member Function Documentation

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 217 of file Tau.h.

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

const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception &#39;not PFTau&#39;
Definition: Tau.cc:238
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 229 of file Tau.h.

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

229 { return pfSpecific().caloComp_; }
const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception &#39;not PFTau&#39;
Definition: Tau.cc:238
const pat::tau::TauCaloSpecific & Tau::caloSpecific ( ) const

return CaloTau info or throw exception 'not CaloTau'

Definition at line 243 of file Tau.cc.

References caloSpecific_, edm::hlt::Exception, and isCaloTau().

Referenced by caloTauTagInfoRef(), etaetaMoment(), etaphiMoment(), isolationECALhitsEtSum(), isolationTracksPtSum(), leadTrackHCAL3x3hitsEtSum(), leadTrackHCAL3x3hottesthitDEta(), leadTracksignedSipt(), maximumHCALhitEt(), phiphiMoment(), signalTracksInvariantMass(), and TracksInvariantMass().

243  {
244  if (!isCaloTau()) throw cms::Exception("Type Error") << "Requesting a CaloTau-specific information from a pat::Tau which wasn't made from a CaloTau.\n";
245  return caloSpecific_[0];
246 }
std::vector< pat::tau::TauCaloSpecific > caloSpecific_
holder for CaloTau info, or empty vector if PFTau
Definition: Tau.h:327
bool isCaloTau() const
Returns true if this pat::Tau was made from a reco::CaloTau.
Definition: Tau.h:116
reco::CaloTauTagInfoRef pat::Tau::caloTauTagInfoRef ( ) const
inline

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

Definition at line 121 of file Tau.h.

References caloSpecific(), and pat::tau::TauCaloSpecific::CaloTauTagInfoRef_.

121 { return caloSpecific().CaloTauTagInfoRef_; }
reco::CaloTauTagInfoRef CaloTauTagInfoRef_
const pat::tau::TauCaloSpecific & caloSpecific() const
return CaloTau info or throw exception &#39;not CaloTau&#39;
Definition: Tau.cc:243
virtual Tau* pat::Tau::clone ( void  ) const
inlinevirtual

required reimplementation of the Candidate's clone method

Reimplemented from pat::Lepton< reco::BaseTau >.

Definition at line 69 of file Tau.h.

References Tau().

69 { return new Tau(*this); }
Tau()
default constructor
Definition: Tau.cc:13
int pat::Tau::decayMode ( ) const
inline

reconstructed tau decay mode (specific to PFTau)

Definition at line 244 of file Tau.h.

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

Referenced by setDecayMode().

244 { return pfSpecific().decayMode_; }
const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception &#39;not PFTau&#39;
Definition: Tau.cc:238
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 214 of file Tau.h.

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

const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception &#39;not PFTau&#39;
Definition: Tau.cc:238
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 226 of file Tau.h.

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

const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception &#39;not PFTau&#39;
Definition: Tau.cc:238
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 223 of file Tau.h.

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

223 { return pfSpecific().electronPreIDOutput_; }
const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception &#39;not PFTau&#39;
Definition: Tau.cc:238
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 220 of file Tau.h.

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

220 { return pfSpecific().electronPreIDTrack_; }
reco::TrackRef electronPreIDTrack_
Definition: TauPFSpecific.h:43
const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception &#39;not PFTau&#39;
Definition: Tau.cc:238
void Tau::embedIsolationPFCands ( )

method to store the isolation candidates internally

Definition at line 350 of file Tau.cc.

References edm::RefVector< C, T, F >::at(), embeddedIsolationPFCands_, i, isolationPFCands_, isPFTau(), pfSpecific_, and edm::RefVector< C, T, F >::size().

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

350  {
351  if (!isPFTau() ) {//additional check with warning in pat::tau producer
352  return;
353  }
354  reco::PFCandidateRefVector candRefVec = pfSpecific_[0].selectedIsolationPFCands_;
355  for (unsigned int i = 0; i < candRefVec.size(); i++) {
356  isolationPFCands_.push_back(*candRefVec.at(i));
357  }
359 }
int i
Definition: DBlmapReader.cc:9
bool embeddedIsolationPFCands_
Definition: Tau.h:305
std::vector< reco::PFCandidate > isolationPFCands_
Definition: Tau.h:304
value_type const at(size_type idx) const
Retrieve an element of the RefVector.
Definition: RefVector.h:71
size_type size() const
Size of the RefVector.
Definition: RefVector.h:84
bool isPFTau() const
Returns true if this pat::Tau was made from a reco::PFTau.
Definition: Tau.h:149
std::vector< pat::tau::TauPFSpecific > pfSpecific_
holder for PFTau info, or empty vector if CaloTau
Definition: Tau.h:330
void Tau::embedIsolationPFChargedHadrCands ( )

method to store the isolation charged hadrons candidates internally

Definition at line 361 of file Tau.cc.

References edm::RefVector< C, T, F >::at(), embeddedIsolationPFChargedHadrCands_, i, isolationPFChargedHadrCands_, isPFTau(), pfSpecific_, and edm::RefVector< C, T, F >::size().

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

361  {
362  if (!isPFTau() ) {//additional check with warning in pat::tau producer
363  return;
364  }
365  reco::PFCandidateRefVector candRefVec = pfSpecific_[0].selectedIsolationPFChargedHadrCands_;
366  for (unsigned int i = 0; i < candRefVec.size(); i++) {
367  isolationPFChargedHadrCands_.push_back(*candRefVec.at(i));
368  }
370 }
int i
Definition: DBlmapReader.cc:9
bool embeddedIsolationPFChargedHadrCands_
Definition: Tau.h:309
std::vector< reco::PFCandidate > isolationPFChargedHadrCands_
Definition: Tau.h:308
value_type const at(size_type idx) const
Retrieve an element of the RefVector.
Definition: RefVector.h:71
size_type size() const
Size of the RefVector.
Definition: RefVector.h:84
bool isPFTau() const
Returns true if this pat::Tau was made from a reco::PFTau.
Definition: Tau.h:149
std::vector< pat::tau::TauPFSpecific > pfSpecific_
holder for PFTau info, or empty vector if CaloTau
Definition: Tau.h:330
void Tau::embedIsolationPFGammaCands ( )

method to store the isolation gamma candidates internally

Definition at line 381 of file Tau.cc.

References edm::RefVector< C, T, F >::at(), embeddedIsolationPFGammaCands_, i, isolationPFGammaCands_, isPFTau(), pfSpecific_, and edm::RefVector< C, T, F >::size().

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

381  {
382  if (!isPFTau() ) {//additional check with warning in pat::tau producer
383  return;
384  }
385  reco::PFCandidateRefVector candRefVec = pfSpecific_[0].selectedIsolationPFGammaCands_;
386  for (unsigned int i = 0; i < candRefVec.size(); i++) {
387  isolationPFGammaCands_.push_back(*candRefVec.at(i));
388  }
390 }
int i
Definition: DBlmapReader.cc:9
std::vector< reco::PFCandidate > isolationPFGammaCands_
Definition: Tau.h:316
bool embeddedIsolationPFGammaCands_
Definition: Tau.h:317
value_type const at(size_type idx) const
Retrieve an element of the RefVector.
Definition: RefVector.h:71
size_type size() const
Size of the RefVector.
Definition: RefVector.h:84
bool isPFTau() const
Returns true if this pat::Tau was made from a reco::PFTau.
Definition: Tau.h:149
std::vector< pat::tau::TauPFSpecific > pfSpecific_
holder for PFTau info, or empty vector if CaloTau
Definition: Tau.h:330
void Tau::embedIsolationPFNeutralHadrCands ( )

method to store the isolation neutral hadrons candidates internally

Definition at line 371 of file Tau.cc.

References edm::RefVector< C, T, F >::at(), embeddedIsolationPFNeutralHadrCands_, i, isolationPFNeutralHadrCands_, isPFTau(), pfSpecific_, and edm::RefVector< C, T, F >::size().

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

371  {
372  if (!isPFTau() ) {//additional check with warning in pat::tau producer
373  return;
374  }
375  reco::PFCandidateRefVector candRefVec = pfSpecific_[0].selectedIsolationPFNeutrHadrCands_;
376  for (unsigned int i = 0; i < candRefVec.size(); i++) {
377  isolationPFNeutralHadrCands_.push_back(*candRefVec.at(i));
378  }
380 }
int i
Definition: DBlmapReader.cc:9
std::vector< reco::PFCandidate > isolationPFNeutralHadrCands_
Definition: Tau.h:312
bool embeddedIsolationPFNeutralHadrCands_
Definition: Tau.h:313
value_type const at(size_type idx) const
Retrieve an element of the RefVector.
Definition: RefVector.h:71
size_type size() const
Size of the RefVector.
Definition: RefVector.h:84
bool isPFTau() const
Returns true if this pat::Tau was made from a reco::PFTau.
Definition: Tau.h:149
std::vector< pat::tau::TauPFSpecific > pfSpecific_
holder for PFTau info, or empty vector if CaloTau
Definition: Tau.h:330
void Tau::embedIsolationTracks ( )

method to store the isolation tracks internally

Definition at line 172 of file Tau.cc.

References edm::RefVector< C, T, F >::at(), embeddedIsolationTracks_, i, reco::BaseTau::isolationTracks(), isolationTracks_, and edm::RefVector< C, T, F >::size().

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

172  {
173  isolationTracks_.clear();
175  for (unsigned int i = 0; i < trackRefVec.size(); i++) {
176  isolationTracks_.push_back(*trackRefVec.at(i));
177  }
179 }
int i
Definition: DBlmapReader.cc:9
virtual const reco::TrackRefVector & isolationTracks() const
Definition: BaseTau.cc:30
std::vector< reco::Track > isolationTracks_
Definition: Tau.h:271
value_type const at(size_type idx) const
Retrieve an element of the RefVector.
Definition: RefVector.h:71
size_type size() const
Size of the RefVector.
Definition: RefVector.h:84
bool embeddedIsolationTracks_
Definition: Tau.h:270
void Tau::embedLeadPFCand ( )

method to store the leading candidate internally

  • PFTau specific content - method to store the leading candidate internally

Definition at line 276 of file Tau.cc.

References embeddedLeadPFCand_, isPFTau(), leadPFCand_, and pfSpecific_.

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

276  {
277  if (!isPFTau() ) {//additional check with warning in pat::tau producer
278  return;
279  }
280  leadPFCand_.clear();
281  if (pfSpecific_[0].leadPFCand_.isNonnull() ) {
282  leadPFCand_.push_back(*pfSpecific_[0].leadPFCand_); //already set in C-tor
283  embeddedLeadPFCand_ = true;
284  }
285 }
std::vector< reco::PFCandidate > leadPFCand_
Definition: Tau.h:281
bool embeddedLeadPFCand_
Definition: Tau.h:282
bool isPFTau() const
Returns true if this pat::Tau was made from a reco::PFTau.
Definition: Tau.h:149
std::vector< pat::tau::TauPFSpecific > pfSpecific_
holder for PFTau info, or empty vector if CaloTau
Definition: Tau.h:330
void Tau::embedLeadPFChargedHadrCand ( )

method to store the leading charged hadron candidate internally

method to store the leading candidate internally

Definition at line 287 of file Tau.cc.

References embeddedLeadPFChargedHadrCand_, isPFTau(), leadPFChargedHadrCand_, and pfSpecific_.

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

287  {
288  if (!isPFTau() ) {//additional check with warning in pat::tau producer
289  return;
290  }
291  leadPFChargedHadrCand_.clear();
292  if (pfSpecific_[0].leadPFChargedHadrCand_.isNonnull() ) {
293  leadPFChargedHadrCand_.push_back(*pfSpecific_[0].leadPFChargedHadrCand_); //already set in C-tor
295  }
296 }
bool embeddedLeadPFChargedHadrCand_
Definition: Tau.h:284
bool isPFTau() const
Returns true if this pat::Tau was made from a reco::PFTau.
Definition: Tau.h:149
std::vector< reco::PFCandidate > leadPFChargedHadrCand_
Definition: Tau.h:283
std::vector< pat::tau::TauPFSpecific > pfSpecific_
holder for PFTau info, or empty vector if CaloTau
Definition: Tau.h:330
void Tau::embedLeadPFNeutralCand ( )

method to store the leading neutral candidate internally

method to store the leading candidate internally

Definition at line 298 of file Tau.cc.

References embeddedLeadPFNeutralCand_, isPFTau(), leadPFNeutralCand_, and pfSpecific_.

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

298  {
299  if (!isPFTau() ) {//additional check with warning in pat::tau producer
300  return;
301  }
302  leadPFNeutralCand_.clear();
303  if (pfSpecific_[0].leadPFNeutralCand_.isNonnull() ) {
304  leadPFNeutralCand_.push_back(*pfSpecific_[0].leadPFNeutralCand_); //already set in C-tor
306  }
307 }
bool embeddedLeadPFNeutralCand_
Definition: Tau.h:286
std::vector< reco::PFCandidate > leadPFNeutralCand_
Definition: Tau.h:285
bool isPFTau() const
Returns true if this pat::Tau was made from a reco::PFTau.
Definition: Tau.h:149
std::vector< pat::tau::TauPFSpecific > pfSpecific_
holder for PFTau info, or empty vector if CaloTau
Definition: Tau.h:330
void Tau::embedLeadTrack ( )

method to store the leading track internally

method to store the isolation tracks internally

Definition at line 183 of file Tau.cc.

References embeddedLeadTrack_, reco::BaseTau::leadTrack(), and leadTrack_.

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

183  {
184  leadTrack_.clear();
185  if (reco::BaseTau::leadTrack().isNonnull()) {
186  leadTrack_.push_back(*reco::BaseTau::leadTrack());
187  embeddedLeadTrack_ = true;
188  }
189 }
virtual reco::TrackRef leadTrack() const
Definition: BaseTau.cc:26
bool embeddedLeadTrack_
Definition: Tau.h:274
std::vector< reco::Track > leadTrack_
Definition: Tau.h:275
void Tau::embedSignalPFCands ( )

method to store the signal candidates internally

Definition at line 309 of file Tau.cc.

References edm::RefVector< C, T, F >::at(), embeddedSignalPFCands_, i, isPFTau(), pfSpecific_, signalPFCands_, and edm::RefVector< C, T, F >::size().

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

309  {
310  if (!isPFTau() ) {//additional check with warning in pat::tau producer
311  return;
312  }
313  reco::PFCandidateRefVector candRefVec = pfSpecific_[0].selectedSignalPFCands_;
314  for (unsigned int i = 0; i < candRefVec.size(); i++) {
315  signalPFCands_.push_back(*candRefVec.at(i));
316  }
317  embeddedSignalPFCands_ = true;
318 }
int i
Definition: DBlmapReader.cc:9
std::vector< reco::PFCandidate > signalPFCands_
Definition: Tau.h:288
value_type const at(size_type idx) const
Retrieve an element of the RefVector.
Definition: RefVector.h:71
bool embeddedSignalPFCands_
Definition: Tau.h:289
size_type size() const
Size of the RefVector.
Definition: RefVector.h:84
bool isPFTau() const
Returns true if this pat::Tau was made from a reco::PFTau.
Definition: Tau.h:149
std::vector< pat::tau::TauPFSpecific > pfSpecific_
holder for PFTau info, or empty vector if CaloTau
Definition: Tau.h:330
void Tau::embedSignalPFChargedHadrCands ( )

method to store the signal charged hadrons candidates internally

Definition at line 319 of file Tau.cc.

References edm::RefVector< C, T, F >::at(), embeddedSignalPFChargedHadrCands_, i, isPFTau(), pfSpecific_, signalPFChargedHadrCands_, and edm::RefVector< C, T, F >::size().

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

319  {
320  if (!isPFTau() ) {//additional check with warning in pat::tau producer
321  return;
322  }
323  reco::PFCandidateRefVector candRefVec = pfSpecific_[0].selectedSignalPFChargedHadrCands_;
324  for (unsigned int i = 0; i < candRefVec.size(); i++) {
325  signalPFChargedHadrCands_.push_back(*candRefVec.at(i));
326  }
328 }
int i
Definition: DBlmapReader.cc:9
bool embeddedSignalPFChargedHadrCands_
Definition: Tau.h:293
std::vector< reco::PFCandidate > signalPFChargedHadrCands_
Definition: Tau.h:292
value_type const at(size_type idx) const
Retrieve an element of the RefVector.
Definition: RefVector.h:71
size_type size() const
Size of the RefVector.
Definition: RefVector.h:84
bool isPFTau() const
Returns true if this pat::Tau was made from a reco::PFTau.
Definition: Tau.h:149
std::vector< pat::tau::TauPFSpecific > pfSpecific_
holder for PFTau info, or empty vector if CaloTau
Definition: Tau.h:330
void Tau::embedSignalPFGammaCands ( )

method to store the signal gamma candidates internally

Definition at line 339 of file Tau.cc.

References edm::RefVector< C, T, F >::at(), embeddedSignalPFGammaCands_, i, isPFTau(), pfSpecific_, signalPFGammaCands_, and edm::RefVector< C, T, F >::size().

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

339  {
340  if (!isPFTau() ) {//additional check with warning in pat::tau producer
341  return;
342  }
343  reco::PFCandidateRefVector candRefVec = pfSpecific_[0].selectedSignalPFGammaCands_;
344  for (unsigned int i = 0; i < candRefVec.size(); i++) {
345  signalPFGammaCands_.push_back(*candRefVec.at(i));
346  }
348 }
int i
Definition: DBlmapReader.cc:9
bool embeddedSignalPFGammaCands_
Definition: Tau.h:301
std::vector< reco::PFCandidate > signalPFGammaCands_
Definition: Tau.h:300
value_type const at(size_type idx) const
Retrieve an element of the RefVector.
Definition: RefVector.h:71
size_type size() const
Size of the RefVector.
Definition: RefVector.h:84
bool isPFTau() const
Returns true if this pat::Tau was made from a reco::PFTau.
Definition: Tau.h:149
std::vector< pat::tau::TauPFSpecific > pfSpecific_
holder for PFTau info, or empty vector if CaloTau
Definition: Tau.h:330
void Tau::embedSignalPFNeutralHadrCands ( )

method to store the signal neutral hadrons candidates internally

Definition at line 329 of file Tau.cc.

References edm::RefVector< C, T, F >::at(), embeddedSignalPFNeutralHadrCands_, i, isPFTau(), pfSpecific_, signalPFNeutralHadrCands_, and edm::RefVector< C, T, F >::size().

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

329  {
330  if (!isPFTau() ) {//additional check with warning in pat::tau producer
331  return;
332  }
333  reco::PFCandidateRefVector candRefVec = pfSpecific_[0].selectedSignalPFNeutrHadrCands_;
334  for (unsigned int i = 0; i < candRefVec.size(); i++) {
335  signalPFNeutralHadrCands_.push_back(*candRefVec.at(i));
336  }
338 }
int i
Definition: DBlmapReader.cc:9
std::vector< reco::PFCandidate > signalPFNeutralHadrCands_
Definition: Tau.h:296
bool embeddedSignalPFNeutralHadrCands_
Definition: Tau.h:297
value_type const at(size_type idx) const
Retrieve an element of the RefVector.
Definition: RefVector.h:71
size_type size() const
Size of the RefVector.
Definition: RefVector.h:84
bool isPFTau() const
Returns true if this pat::Tau was made from a reco::PFTau.
Definition: Tau.h:149
std::vector< pat::tau::TauPFSpecific > pfSpecific_
holder for PFTau info, or empty vector if CaloTau
Definition: Tau.h:330
void Tau::embedSignalTracks ( )

method to store the signal tracks internally

method to store the isolation tracks internally

Definition at line 193 of file Tau.cc.

References edm::RefVector< C, T, F >::at(), embeddedSignalTracks_, i, reco::BaseTau::signalTracks(), signalTracks_, and edm::RefVector< C, T, F >::size().

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

193  {
194  signalTracks_.clear();
196  for (unsigned int i = 0; i < trackRefVec.size(); i++) {
197  signalTracks_.push_back(*trackRefVec.at(i));
198  }
199  embeddedSignalTracks_ = true;
200 }
int i
Definition: DBlmapReader.cc:9
std::vector< reco::Track > signalTracks_
Definition: Tau.h:277
bool embeddedSignalTracks_
Definition: Tau.h:276
virtual const reco::TrackRefVector & signalTracks() const
Definition: BaseTau.cc:28
value_type const at(size_type idx) const
Retrieve an element of the RefVector.
Definition: RefVector.h:71
size_type size() const
Size of the RefVector.
Definition: RefVector.h:84
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 202 of file Tau.h.

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

202 { return pfSpecific().emFraction_; }
const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception &#39;not PFTau&#39;
Definition: Tau.cc:238
float Tau::etaetaMoment ( ) const

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

Definition at line 248 of file Tau.cc.

References caloSpecific(), pat::tau::TauCaloSpecific::etaetaMoment_, pat::tau::TauPFSpecific::etaetaMoment_, edm::hlt::Exception, isCaloTau(), isPFTau(), and pfSpecific().

249 {
250  if ( isCaloTau() ) return caloSpecific().etaetaMoment_;
251  if ( isPFTau() ) return pfSpecific().etaetaMoment_;
252  throw cms::Exception("Type Error") << "Requesting a CaloTau/PFTau-specific information from a pat::Tau which wasn't made from either a CaloTau or a PFTau.\n";
253 }
const pat::tau::TauCaloSpecific & caloSpecific() const
return CaloTau info or throw exception &#39;not CaloTau&#39;
Definition: Tau.cc:243
const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception &#39;not PFTau&#39;
Definition: Tau.cc:238
bool isCaloTau() const
Returns true if this pat::Tau was made from a reco::CaloTau.
Definition: Tau.h:116
bool isPFTau() const
Returns true if this pat::Tau was made from a reco::PFTau.
Definition: Tau.h:149
float Tau::etaphiMoment ( ) const

Definition at line 262 of file Tau.cc.

References caloSpecific(), pat::tau::TauCaloSpecific::etaphiMoment_, pat::tau::TauPFSpecific::etaphiMoment_, edm::hlt::Exception, isCaloTau(), isPFTau(), and pfSpecific().

263 {
264  if ( isCaloTau() ) return caloSpecific().etaphiMoment_;
265  if ( isPFTau() ) return pfSpecific().etaphiMoment_;
266  throw cms::Exception("Type Error") << "Requesting a CaloTau/PFTau-specific information from a pat::Tau which wasn't made from either a CaloTau or a PFTau.\n";
267 }
const pat::tau::TauCaloSpecific & caloSpecific() const
return CaloTau info or throw exception &#39;not CaloTau&#39;
Definition: Tau.cc:243
const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception &#39;not PFTau&#39;
Definition: Tau.cc:238
bool isCaloTau() const
Returns true if this pat::Tau was made from a reco::CaloTau.
Definition: Tau.h:116
bool isPFTau() const
Returns true if this pat::Tau was made from a reco::PFTau.
Definition: Tau.h:149
const reco::GenJet * Tau::genJet ( ) const

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

return the matched generated jet

Definition at line 210 of file Tau.cc.

References genJet_.

210  {
211  return (genJet_.size() > 0 ? &genJet_.front() : 0);
212 }
std::vector< reco::GenJet > genJet_
Definition: Tau.h:322
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 211 of file Tau.h.

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

211 { return pfSpecific().hcal3x3OverPLead_; }
const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception &#39;not PFTau&#39;
Definition: Tau.cc:238
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 208 of file Tau.h.

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

208 { return pfSpecific().hcalMaxOverPLead_; }
const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception &#39;not PFTau&#39;
Definition: Tau.cc:238
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 205 of file Tau.h.

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

205 { return pfSpecific().hcalTotOverPLead_; }
const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception &#39;not PFTau&#39;
Definition: Tau.cc:238
bool pat::Tau::isCaloTau ( ) const
inline

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

Definition at line 116 of file Tau.h.

References caloSpecific_.

Referenced by caloSpecific(), etaetaMoment(), etaphiMoment(), and phiphiMoment().

116 { return !caloSpecific_.empty(); }
std::vector< pat::tau::TauCaloSpecific > caloSpecific_
holder for CaloTau info, or empty vector if PFTau
Definition: Tau.h:327
float pat::Tau::isolationECALhitsEtSum ( ) const
inline

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

Definition at line 142 of file Tau.h.

References caloSpecific(), and pat::tau::TauCaloSpecific::isolationECALhitsEtSum_.

const pat::tau::TauCaloSpecific & caloSpecific() const
return CaloTau info or throw exception &#39;not CaloTau&#39;
Definition: Tau.cc:243
const reco::PFCandidateRefVector & Tau::isolationPFCands ( ) const

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

Definition at line 473 of file Tau.cc.

References embeddedIsolationPFCands_, i, isolationPFCands_, isolationPFCandsRefVectorFixed_, isolationPFCandsTransientRefVector_, pfSpecific(), edm::RefVector< C, T, F >::push_back(), pat::tau::TauPFSpecific::selectedIsolationPFCands_, and edm::RefVector< C, T, F >::swap().

473  {
477  for (unsigned int i = 0; i < isolationPFCands_.size(); i++) {
479  }
482  }
484  } else
486 }
int i
Definition: DBlmapReader.cc:9
edm::BoolCache isolationPFCandsRefVectorFixed_
Definition: Tau.h:307
bool embeddedIsolationPFCands_
Definition: Tau.h:305
reco::PFCandidateRefVector isolationPFCandsTransientRefVector_
Definition: Tau.h:306
const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception &#39;not PFTau&#39;
Definition: Tau.cc:238
void swap(RefVector< C, T, F > &other)
Swap two vectors.
Definition: RefVector.h:152
std::vector< reco::PFCandidate > isolationPFCands_
Definition: Tau.h:304
void push_back(value_type const &ref)
Add a Ref&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:60
reco::PFCandidateRefVector selectedIsolationPFCands_
Definition: TauPFSpecific.h:32
const reco::PFCandidateRefVector & Tau::isolationPFChargedHadrCands ( ) const

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

Definition at line 488 of file Tau.cc.

References embeddedIsolationPFChargedHadrCands_, i, isolationPFChargedHadrCands_, isolationPFChargedHadrCandsRefVectorFixed_, isolationPFChargedHadrCandsTransientRefVector_, pfSpecific(), edm::RefVector< C, T, F >::push_back(), pat::tau::TauPFSpecific::selectedIsolationPFChargedHadrCands_, and edm::RefVector< C, T, F >::swap().

488  {
492  for (unsigned int i = 0; i < isolationPFChargedHadrCands_.size(); i++) {
494  }
497  }
499  } else
501 }
int i
Definition: DBlmapReader.cc:9
reco::PFCandidateRefVector selectedIsolationPFChargedHadrCands_
Definition: TauPFSpecific.h:32
bool embeddedIsolationPFChargedHadrCands_
Definition: Tau.h:309
const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception &#39;not PFTau&#39;
Definition: Tau.cc:238
reco::PFCandidateRefVector isolationPFChargedHadrCandsTransientRefVector_
Definition: Tau.h:310
void swap(RefVector< C, T, F > &other)
Swap two vectors.
Definition: RefVector.h:152
std::vector< reco::PFCandidate > isolationPFChargedHadrCands_
Definition: Tau.h:308
void push_back(value_type const &ref)
Add a Ref&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:60
edm::BoolCache isolationPFChargedHadrCandsRefVectorFixed_
Definition: Tau.h:311
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 193 of file Tau.h.

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

const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception &#39;not PFTau&#39;
Definition: Tau.cc:238
float isolationPFChargedHadrCandsPtSum_
Definition: TauPFSpecific.h:33
const reco::PFCandidateRefVector & Tau::isolationPFGammaCands ( ) const

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

Definition at line 518 of file Tau.cc.

References embeddedIsolationPFGammaCands_, i, isolationPFGammaCands_, isolationPFGammaCandsRefVectorFixed_, isolationPFGammaCandsTransientRefVector_, pfSpecific(), edm::RefVector< C, T, F >::push_back(), pat::tau::TauPFSpecific::selectedIsolationPFGammaCands_, and edm::RefVector< C, T, F >::swap().

518  {
522  for (unsigned int i = 0; i < isolationPFGammaCands_.size(); i++) {
524  }
527  }
529  } else
531 }
int i
Definition: DBlmapReader.cc:9
reco::PFCandidateRefVector selectedIsolationPFGammaCands_
Definition: TauPFSpecific.h:32
std::vector< reco::PFCandidate > isolationPFGammaCands_
Definition: Tau.h:316
const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception &#39;not PFTau&#39;
Definition: Tau.cc:238
reco::PFCandidateRefVector isolationPFGammaCandsTransientRefVector_
Definition: Tau.h:318
bool embeddedIsolationPFGammaCands_
Definition: Tau.h:317
edm::BoolCache isolationPFGammaCandsRefVectorFixed_
Definition: Tau.h:319
void swap(RefVector< C, T, F > &other)
Swap two vectors.
Definition: RefVector.h:152
void push_back(value_type const &ref)
Add a Ref&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:60
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 196 of file Tau.h.

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

const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception &#39;not PFTau&#39;
Definition: Tau.cc:238
const reco::PFCandidateRefVector & Tau::isolationPFNeutrHadrCands ( ) const

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

Definition at line 503 of file Tau.cc.

References embeddedIsolationPFNeutralHadrCands_, i, isolationPFNeutralHadrCands_, isolationPFNeutralHadrCandsRefVectorFixed_, isolationPFNeutralHadrCandsTransientRefVector_, pfSpecific(), edm::RefVector< C, T, F >::push_back(), pat::tau::TauPFSpecific::selectedIsolationPFNeutrHadrCands_, and edm::RefVector< C, T, F >::swap().

503  {
507  for (unsigned int i = 0; i < isolationPFNeutralHadrCands_.size(); i++) {
509  }
512  }
514  } else
516 }
int i
Definition: DBlmapReader.cc:9
edm::BoolCache isolationPFNeutralHadrCandsRefVectorFixed_
Definition: Tau.h:315
std::vector< reco::PFCandidate > isolationPFNeutralHadrCands_
Definition: Tau.h:312
bool embeddedIsolationPFNeutralHadrCands_
Definition: Tau.h:313
const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception &#39;not PFTau&#39;
Definition: Tau.cc:238
reco::PFCandidateRefVector isolationPFNeutralHadrCandsTransientRefVector_
Definition: Tau.h:314
reco::PFCandidateRefVector selectedIsolationPFNeutrHadrCands_
Definition: TauPFSpecific.h:32
void swap(RefVector< C, T, F > &other)
Swap two vectors.
Definition: RefVector.h:152
void push_back(value_type const &ref)
Add a Ref&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:60
const reco::TrackRefVector & Tau::isolationTracks ( ) const
virtual

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

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

Reimplemented from reco::BaseTau.

Definition at line 126 of file Tau.cc.

References embeddedIsolationTracks_, i, reco::BaseTau::isolationTracks(), isolationTracks_, isolationTracksTransientRefVector_, isolationTracksTransientRefVectorFixed_, edm::RefVector< C, T, F >::push_back(), and edm::RefVector< C, T, F >::swap().

126  {
129  reco::TrackRefVector trackRefVec;
130  for (unsigned int i = 0; i < isolationTracks_.size(); i++) {
131  trackRefVec.push_back(reco::TrackRef(&isolationTracks_, i));
132  }
135  }
137  } else {
139  }
140 }
int i
Definition: DBlmapReader.cc:9
virtual const reco::TrackRefVector & isolationTracks() const
Definition: BaseTau.cc:30
edm::BoolCache isolationTracksTransientRefVectorFixed_
Definition: Tau.h:273
void swap(RefVector< C, T, F > &other)
Swap two vectors.
Definition: RefVector.h:152
std::vector< reco::Track > isolationTracks_
Definition: Tau.h:271
void push_back(value_type const &ref)
Add a Ref&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:60
bool embeddedIsolationTracks_
Definition: Tau.h:270
reco::TrackRefVector isolationTracksTransientRefVector_
Definition: Tau.h:272
float pat::Tau::isolationTracksPtSum ( ) const
inline

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

Definition at line 139 of file Tau.h.

References caloSpecific(), and pat::tau::TauCaloSpecific::isolationTracksPtSum_.

const pat::tau::TauCaloSpecific & caloSpecific() const
return CaloTau info or throw exception &#39;not CaloTau&#39;
Definition: Tau.cc:243
bool pat::Tau::isPFTau ( ) const
inline
bool Tau::isTauIDAvailable ( const std::string &  name) const

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

Definition at line 230 of file Tau.cc.

References tauIDs_.

230  {
231  for (std::vector<IdPair>::const_iterator it = tauIDs_.begin(), ed = tauIDs_.end(); it != ed; ++it) {
232  if (it->first == name) return true;
233  }
234  return false;
235 }
std::vector< IdPair > tauIDs_
Definition: Tau.h:324
const reco::PFCandidateRef Tau::leadPFCand ( ) const

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

Definition at line 406 of file Tau.cc.

References embeddedLeadPFCand_, pat::tau::TauPFSpecific::leadPFCand_, leadPFCand_, and pfSpecific().

406  {
408  return pfSpecific().leadPFCand_;
409  else
411 }
const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception &#39;not PFTau&#39;
Definition: Tau.cc:238
std::vector< reco::PFCandidate > leadPFCand_
Definition: Tau.h:281
bool embeddedLeadPFCand_
Definition: Tau.h:282
edm::Ref< PFCandidateCollection > PFCandidateRef
persistent reference to a PFCandidate
reco::PFCandidateRef leadPFCand_
Definition: TauPFSpecific.h:30
const reco::PFCandidateRef Tau::leadPFChargedHadrCand ( ) const

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

Definition at line 392 of file Tau.cc.

References embeddedLeadPFChargedHadrCand_, pat::tau::TauPFSpecific::leadPFChargedHadrCand_, leadPFChargedHadrCand_, and pfSpecific().

392  {
395  else
397 }
reco::PFCandidateRef leadPFChargedHadrCand_
Definition: TauPFSpecific.h:27
const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception &#39;not PFTau&#39;
Definition: Tau.cc:238
edm::Ref< PFCandidateCollection > PFCandidateRef
persistent reference to a PFCandidate
bool embeddedLeadPFChargedHadrCand_
Definition: Tau.h:284
std::vector< reco::PFCandidate > leadPFChargedHadrCand_
Definition: Tau.h:283
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 160 of file Tau.h.

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

float leadPFChargedHadrCandsignedSipt_
Definition: TauPFSpecific.h:28
const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception &#39;not PFTau&#39;
Definition: Tau.cc:238
const reco::PFCandidateRef Tau::leadPFNeutralCand ( ) const

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

Definition at line 399 of file Tau.cc.

References embeddedLeadPFNeutralCand_, pat::tau::TauPFSpecific::leadPFNeutralCand_, leadPFNeutralCand_, and pfSpecific().

399  {
402  else
404 }
bool embeddedLeadPFNeutralCand_
Definition: Tau.h:286
std::vector< reco::PFCandidate > leadPFNeutralCand_
Definition: Tau.h:285
const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception &#39;not PFTau&#39;
Definition: Tau.cc:238
edm::Ref< PFCandidateCollection > PFCandidateRef
persistent reference to a PFCandidate
reco::PFCandidateRef leadPFNeutralCand_
Definition: TauPFSpecific.h:29
reco::TrackRef Tau::leadTrack ( ) const
virtual

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

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

Reimplemented from reco::BaseTau.

Definition at line 144 of file Tau.cc.

References embeddedLeadTrack_, reco::BaseTau::leadTrack(), and leadTrack_.

144  {
145  if (embeddedLeadTrack_) {
146  return reco::TrackRef(&leadTrack_, 0);
147  } else {
148  return reco::BaseTau::leadTrack();
149  }
150 }
virtual reco::TrackRef leadTrack() const
Definition: BaseTau.cc:26
bool embeddedLeadTrack_
Definition: Tau.h:274
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
Definition: TrackFwd.h:14
std::vector< reco::Track > leadTrack_
Definition: Tau.h:275
float pat::Tau::leadTrackHCAL3x3hitsEtSum ( ) const
inline

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

Definition at line 127 of file Tau.h.

References caloSpecific(), and pat::tau::TauCaloSpecific::leadTrackHCAL3x3hitsEtSum_.

const pat::tau::TauCaloSpecific & caloSpecific() const
return CaloTau info or throw exception &#39;not CaloTau&#39;
Definition: Tau.cc:243
float pat::Tau::leadTrackHCAL3x3hottesthitDEta ( ) const
inline

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

Definition at line 130 of file Tau.h.

References caloSpecific(), and pat::tau::TauCaloSpecific::leadTrackHCAL3x3hottesthitDEta_.

const pat::tau::TauCaloSpecific & caloSpecific() const
return CaloTau info or throw exception &#39;not CaloTau&#39;
Definition: Tau.cc:243
float pat::Tau::leadTracksignedSipt ( ) const
inline

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

Definition at line 124 of file Tau.h.

References caloSpecific(), and pat::tau::TauCaloSpecific::leadTracksignedSipt_.

const pat::tau::TauCaloSpecific & caloSpecific() const
return CaloTau info or throw exception &#39;not CaloTau&#39;
Definition: Tau.cc:243
float pat::Tau::maximumHCALhitEt ( ) const
inline

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

Definition at line 145 of file Tau.h.

References caloSpecific(), and pat::tau::TauCaloSpecific::maximumHCALhitEt_.

145 { return caloSpecific().maximumHCALhitEt_; }
const pat::tau::TauCaloSpecific & caloSpecific() const
return CaloTau info or throw exception &#39;not CaloTau&#39;
Definition: Tau.cc:243
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 199 of file Tau.h.

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

const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception &#39;not PFTau&#39;
Definition: Tau.cc:238
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 235 of file Tau.h.

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

235 { return pfSpecific().muonDecision_; }
const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception &#39;not PFTau&#39;
Definition: Tau.cc:238
const reco::PFJetRef& 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 154 of file Tau.h.

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

154 { return pfSpecific().pfJetRef_; }
const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception &#39;not PFTau&#39;
Definition: Tau.cc:238
reco::PFJetRef pfJetRef_
Definition: TauPFSpecific.h:26
const pat::tau::TauPFSpecific & Tau::pfSpecific ( ) const

return PFTau info or throw exception 'not PFTau'

Definition at line 238 of file Tau.cc.

References edm::hlt::Exception, isPFTau(), and pfSpecific_.

Referenced by bremsRecoveryEOverPLead(), caloComp(), decayMode(), ecalStripSumEOverPLead(), electronPreIDDecision(), electronPreIDOutput(), electronPreIDTrack(), emFraction(), etaetaMoment(), etaphiMoment(), hcal3x3OverPLead(), hcalMaxOverPLead(), hcalTotOverPLead(), isolationPFCands(), isolationPFChargedHadrCands(), isolationPFChargedHadrCandsPtSum(), isolationPFGammaCands(), isolationPFGammaCandsEtSum(), isolationPFNeutrHadrCands(), leadPFCand(), leadPFChargedHadrCand(), leadPFChargedHadrCandsignedSipt(), leadPFNeutralCand(), maximumHCALPFClusterEt(), muonDecision(), pfJetRef(), phiphiMoment(), segComp(), signalPFCands(), signalPFChargedHadrCands(), signalPFGammaCands(), and signalPFNeutrHadrCands().

238  {
239  if (!isPFTau()) throw cms::Exception("Type Error") << "Requesting a PFTau-specific information from a pat::Tau which wasn't made from a PFTau.\n";
240  return pfSpecific_[0];
241 }
bool isPFTau() const
Returns true if this pat::Tau was made from a reco::PFTau.
Definition: Tau.h:149
std::vector< pat::tau::TauPFSpecific > pfSpecific_
holder for PFTau info, or empty vector if CaloTau
Definition: Tau.h:330
float Tau::phiphiMoment ( ) const

Definition at line 255 of file Tau.cc.

References caloSpecific(), edm::hlt::Exception, isCaloTau(), isPFTau(), pfSpecific(), pat::tau::TauCaloSpecific::phiphiMoment_, and pat::tau::TauPFSpecific::phiphiMoment_.

256 {
257  if ( isCaloTau() ) return caloSpecific().phiphiMoment_;
258  if ( isPFTau() ) return pfSpecific().phiphiMoment_;
259  throw cms::Exception("Type Error") << "Requesting a CaloTau/PFTau-specific information from a pat::Tau which wasn't made from either a CaloTau or a PFTau.\n";
260 }
const pat::tau::TauCaloSpecific & caloSpecific() const
return CaloTau info or throw exception &#39;not CaloTau&#39;
Definition: Tau.cc:243
const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception &#39;not PFTau&#39;
Definition: Tau.cc:238
bool isCaloTau() const
Returns true if this pat::Tau was made from a reco::CaloTau.
Definition: Tau.h:116
bool isPFTau() const
Returns true if this pat::Tau was made from a reco::PFTau.
Definition: Tau.h:149
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 232 of file Tau.h.

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

232 { return pfSpecific().segComp_; }
const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception &#39;not PFTau&#39;
Definition: Tau.cc:238
void Tau::setDecayMode ( int  decayMode)

set decay mode

Definition at line 269 of file Tau.cc.

References decayMode(), edm::hlt::Exception, isPFTau(), and pfSpecific_.

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

270 {
271  if (!isPFTau()) throw cms::Exception("Type Error") << "Requesting a PFTau-specific information from a pat::Tau which wasn't made from a PFTau.\n";
272  pfSpecific_[0].decayMode_ = decayMode;
273 }
int decayMode() const
reconstructed tau decay mode (specific to PFTau)
Definition: Tau.h:244
bool isPFTau() const
Returns true if this pat::Tau was made from a reco::PFTau.
Definition: Tau.h:149
std::vector< pat::tau::TauPFSpecific > pfSpecific_
holder for PFTau info, or empty vector if CaloTau
Definition: Tau.h:330
void Tau::setGenJet ( const reco::GenJetRef ref)

set the matched GenJet

method to set the matched generated jet

Definition at line 204 of file Tau.cc.

References genJet_.

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

204  {
205  genJet_.clear();
206  genJet_.push_back(*gj);
207 }
std::vector< reco::GenJet > genJet_
Definition: Tau.h:322
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 262 of file Tau.h.

References tauIDs_.

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

262 { tauIDs_ = ids; }
std::vector< IdPair > tauIDs_
Definition: Tau.h:324
const reco::PFCandidateRefVector & Tau::signalPFCands ( ) const

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

Definition at line 413 of file Tau.cc.

References embeddedSignalPFCands_, i, pfSpecific(), edm::RefVector< C, T, F >::push_back(), pat::tau::TauPFSpecific::selectedSignalPFCands_, signalPFCands_, signalPFCandsRefVectorFixed_, signalPFCandsTransientRefVector_, and edm::RefVector< C, T, F >::swap().

413  {
417  for (unsigned int i = 0; i < signalPFCands_.size(); i++) {
419  }
422  }
424  } else
426 }
int i
Definition: DBlmapReader.cc:9
reco::PFCandidateRefVector signalPFCandsTransientRefVector_
Definition: Tau.h:290
std::vector< reco::PFCandidate > signalPFCands_
Definition: Tau.h:288
reco::PFCandidateRefVector selectedSignalPFCands_
Definition: TauPFSpecific.h:31
const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception &#39;not PFTau&#39;
Definition: Tau.cc:238
void swap(RefVector< C, T, F > &other)
Swap two vectors.
Definition: RefVector.h:152
edm::BoolCache signalPFCandsRefVectorFixed_
Definition: Tau.h:291
bool embeddedSignalPFCands_
Definition: Tau.h:289
void push_back(value_type const &ref)
Add a Ref&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:60
const reco::PFCandidateRefVector & Tau::signalPFChargedHadrCands ( ) const

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

Definition at line 428 of file Tau.cc.

References embeddedSignalPFChargedHadrCands_, i, pfSpecific(), edm::RefVector< C, T, F >::push_back(), pat::tau::TauPFSpecific::selectedSignalPFChargedHadrCands_, signalPFChargedHadrCands_, signalPFChargedHadrCandsRefVectorFixed_, signalPFChargedHadrCandsTransientRefVector_, and edm::RefVector< C, T, F >::swap().

428  {
432  for (unsigned int i = 0; i < signalPFChargedHadrCands_.size(); i++) {
434  }
437  }
439  } else
441 }
int i
Definition: DBlmapReader.cc:9
bool embeddedSignalPFChargedHadrCands_
Definition: Tau.h:293
reco::PFCandidateRefVector signalPFChargedHadrCandsTransientRefVector_
Definition: Tau.h:294
const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception &#39;not PFTau&#39;
Definition: Tau.cc:238
std::vector< reco::PFCandidate > signalPFChargedHadrCands_
Definition: Tau.h:292
void swap(RefVector< C, T, F > &other)
Swap two vectors.
Definition: RefVector.h:152
edm::BoolCache signalPFChargedHadrCandsRefVectorFixed_
Definition: Tau.h:295
reco::PFCandidateRefVector selectedSignalPFChargedHadrCands_
Definition: TauPFSpecific.h:31
void push_back(value_type const &ref)
Add a Ref&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:60
const reco::PFCandidateRefVector & Tau::signalPFGammaCands ( ) const

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

Definition at line 458 of file Tau.cc.

References embeddedSignalPFGammaCands_, i, pfSpecific(), edm::RefVector< C, T, F >::push_back(), pat::tau::TauPFSpecific::selectedSignalPFGammaCands_, signalPFGammaCands_, signalPFGammaCandsRefVectorFixed_, signalPFGammaCandsTransientRefVector_, and edm::RefVector< C, T, F >::swap().

458  {
462  for (unsigned int i = 0; i < signalPFGammaCands_.size(); i++) {
464  }
467  }
469  } else
471 }
int i
Definition: DBlmapReader.cc:9
reco::PFCandidateRefVector signalPFGammaCandsTransientRefVector_
Definition: Tau.h:302
const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception &#39;not PFTau&#39;
Definition: Tau.cc:238
bool embeddedSignalPFGammaCands_
Definition: Tau.h:301
void swap(RefVector< C, T, F > &other)
Swap two vectors.
Definition: RefVector.h:152
edm::BoolCache signalPFGammaCandsRefVectorFixed_
Definition: Tau.h:303
std::vector< reco::PFCandidate > signalPFGammaCands_
Definition: Tau.h:300
void push_back(value_type const &ref)
Add a Ref&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:60
reco::PFCandidateRefVector selectedSignalPFGammaCands_
Definition: TauPFSpecific.h:31
const reco::PFCandidateRefVector & Tau::signalPFNeutrHadrCands ( ) const

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

Definition at line 443 of file Tau.cc.

References embeddedSignalPFNeutralHadrCands_, i, pfSpecific(), edm::RefVector< C, T, F >::push_back(), pat::tau::TauPFSpecific::selectedSignalPFNeutrHadrCands_, signalPFNeutralHadrCands_, signalPFNeutralHadrCandsRefVectorFixed_, signalPFNeutralHadrCandsTransientRefVector_, and edm::RefVector< C, T, F >::swap().

443  {
447  for (unsigned int i = 0; i < signalPFNeutralHadrCands_.size(); i++) {
449  }
452  }
454  } else
456 }
int i
Definition: DBlmapReader.cc:9
std::vector< reco::PFCandidate > signalPFNeutralHadrCands_
Definition: Tau.h:296
const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception &#39;not PFTau&#39;
Definition: Tau.cc:238
reco::PFCandidateRefVector selectedSignalPFNeutrHadrCands_
Definition: TauPFSpecific.h:31
edm::BoolCache signalPFNeutralHadrCandsRefVectorFixed_
Definition: Tau.h:299
void swap(RefVector< C, T, F > &other)
Swap two vectors.
Definition: RefVector.h:152
bool embeddedSignalPFNeutralHadrCands_
Definition: Tau.h:297
reco::PFCandidateRefVector signalPFNeutralHadrCandsTransientRefVector_
Definition: Tau.h:298
void push_back(value_type const &ref)
Add a Ref&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:60
const reco::TrackRefVector & Tau::signalTracks ( ) const
virtual

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

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

Reimplemented from reco::BaseTau.

Definition at line 154 of file Tau.cc.

References embeddedSignalTracks_, i, edm::RefVector< C, T, F >::push_back(), reco::BaseTau::signalTracks(), signalTracks_, signalTracksTransientRefVector_, signalTracksTransientRefVectorFixed_, and edm::RefVector< C, T, F >::swap().

154  {
155  if (embeddedSignalTracks_) {
156  reco::TrackRefVector trackRefVec;
158  for (unsigned int i = 0; i < signalTracks_.size(); i++) {
159  trackRefVec.push_back(reco::TrackRef(&signalTracks_, i));
160  }
163  }
165  } else {
167  }
168 }
int i
Definition: DBlmapReader.cc:9
edm::BoolCache signalTracksTransientRefVectorFixed_
Definition: Tau.h:279
reco::TrackRefVector signalTracksTransientRefVector_
Definition: Tau.h:278
std::vector< reco::Track > signalTracks_
Definition: Tau.h:277
bool embeddedSignalTracks_
Definition: Tau.h:276
void swap(RefVector< C, T, F > &other)
Swap two vectors.
Definition: RefVector.h:152
virtual const reco::TrackRefVector & signalTracks() const
Definition: BaseTau.cc:28
void push_back(value_type const &ref)
Add a Ref&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:60
float pat::Tau::signalTracksInvariantMass ( ) const
inline

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

Definition at line 133 of file Tau.h.

References caloSpecific(), and pat::tau::TauCaloSpecific::signalTracksInvariantMass_.

const pat::tau::TauCaloSpecific & caloSpecific() const
return CaloTau info or throw exception &#39;not CaloTau&#39;
Definition: Tau.cc:243
float 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

Definition at line 216 of file Tau.cc.

References tauIDs_.

216  {
217  for (std::vector<IdPair>::const_iterator it = tauIDs_.begin(), ed = tauIDs_.end(); it != ed; ++it) {
218  if (it->first == name) return it->second;
219  }
220  cms::Exception ex("Key not found");
221  ex << "pat::Tau: the ID " << name << " can't be found in this pat::Tau.\n";
222  ex << "The available IDs are: ";
223  for (std::vector<IdPair>::const_iterator it = tauIDs_.begin(), ed = tauIDs_.end(); it != ed; ++it) {
224  ex << "'" << it->first << "' ";
225  }
226  ex << ".\n";
227  throw ex;
228 }
std::vector< IdPair > tauIDs_
Definition: Tau.h:324
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 259 of file Tau.h.

References tauIDs_.

259 { return tauIDs_; }
std::vector< IdPair > tauIDs_
Definition: Tau.h:324
float pat::Tau::TracksInvariantMass ( ) const
inline

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

Definition at line 136 of file Tau.h.

References caloSpecific(), and pat::tau::TauCaloSpecific::TracksInvariantMass_.

136 { return caloSpecific().TracksInvariantMass_; }
const pat::tau::TauCaloSpecific & caloSpecific() const
return CaloTau info or throw exception &#39;not CaloTau&#39;
Definition: Tau.cc:243

Friends And Related Function Documentation

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

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

Member Data Documentation

std::vector<pat::tau::TauCaloSpecific> pat::Tau::caloSpecific_
protected

holder for CaloTau info, or empty vector if PFTau

Definition at line 327 of file Tau.h.

Referenced by caloSpecific(), isCaloTau(), and Tau().

bool pat::Tau::embeddedIsolationPFCands_
protected

Definition at line 305 of file Tau.h.

Referenced by embedIsolationPFCands(), and isolationPFCands().

bool pat::Tau::embeddedIsolationPFChargedHadrCands_
protected

Definition at line 309 of file Tau.h.

Referenced by embedIsolationPFChargedHadrCands(), and isolationPFChargedHadrCands().

bool pat::Tau::embeddedIsolationPFGammaCands_
protected

Definition at line 317 of file Tau.h.

Referenced by embedIsolationPFGammaCands(), and isolationPFGammaCands().

bool pat::Tau::embeddedIsolationPFNeutralHadrCands_
protected

Definition at line 313 of file Tau.h.

Referenced by embedIsolationPFNeutralHadrCands(), and isolationPFNeutrHadrCands().

bool pat::Tau::embeddedIsolationTracks_
protected

Definition at line 270 of file Tau.h.

Referenced by embedIsolationTracks(), and isolationTracks().

bool pat::Tau::embeddedLeadPFCand_
protected

Definition at line 282 of file Tau.h.

Referenced by embedLeadPFCand(), and leadPFCand().

bool pat::Tau::embeddedLeadPFChargedHadrCand_
protected

Definition at line 284 of file Tau.h.

Referenced by embedLeadPFChargedHadrCand(), and leadPFChargedHadrCand().

bool pat::Tau::embeddedLeadPFNeutralCand_
protected

Definition at line 286 of file Tau.h.

Referenced by embedLeadPFNeutralCand(), and leadPFNeutralCand().

bool pat::Tau::embeddedLeadTrack_
protected

Definition at line 274 of file Tau.h.

Referenced by embedLeadTrack(), and leadTrack().

bool pat::Tau::embeddedSignalPFCands_
protected

Definition at line 289 of file Tau.h.

Referenced by embedSignalPFCands(), and signalPFCands().

bool pat::Tau::embeddedSignalPFChargedHadrCands_
protected

Definition at line 293 of file Tau.h.

Referenced by embedSignalPFChargedHadrCands(), and signalPFChargedHadrCands().

bool pat::Tau::embeddedSignalPFGammaCands_
protected

Definition at line 301 of file Tau.h.

Referenced by embedSignalPFGammaCands(), and signalPFGammaCands().

bool pat::Tau::embeddedSignalPFNeutralHadrCands_
protected

Definition at line 297 of file Tau.h.

Referenced by embedSignalPFNeutralHadrCands(), and signalPFNeutrHadrCands().

bool pat::Tau::embeddedSignalTracks_
protected

Definition at line 276 of file Tau.h.

Referenced by embedSignalTracks(), and signalTracks().

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

Definition at line 322 of file Tau.h.

Referenced by genJet(), and setGenJet().

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

Definition at line 304 of file Tau.h.

Referenced by embedIsolationPFCands(), and isolationPFCands().

edm::BoolCache pat::Tau::isolationPFCandsRefVectorFixed_
mutableprotected

Definition at line 307 of file Tau.h.

Referenced by isolationPFCands().

reco::PFCandidateRefVector pat::Tau::isolationPFCandsTransientRefVector_
mutableprotected

Definition at line 306 of file Tau.h.

Referenced by isolationPFCands().

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

Definition at line 308 of file Tau.h.

Referenced by embedIsolationPFChargedHadrCands(), and isolationPFChargedHadrCands().

edm::BoolCache pat::Tau::isolationPFChargedHadrCandsRefVectorFixed_
mutableprotected

Definition at line 311 of file Tau.h.

Referenced by isolationPFChargedHadrCands().

reco::PFCandidateRefVector pat::Tau::isolationPFChargedHadrCandsTransientRefVector_
mutableprotected

Definition at line 310 of file Tau.h.

Referenced by isolationPFChargedHadrCands().

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

Definition at line 316 of file Tau.h.

Referenced by embedIsolationPFGammaCands(), and isolationPFGammaCands().

edm::BoolCache pat::Tau::isolationPFGammaCandsRefVectorFixed_
mutableprotected

Definition at line 319 of file Tau.h.

Referenced by isolationPFGammaCands().

reco::PFCandidateRefVector pat::Tau::isolationPFGammaCandsTransientRefVector_
mutableprotected

Definition at line 318 of file Tau.h.

Referenced by isolationPFGammaCands().

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

Definition at line 312 of file Tau.h.

Referenced by embedIsolationPFNeutralHadrCands(), and isolationPFNeutrHadrCands().

edm::BoolCache pat::Tau::isolationPFNeutralHadrCandsRefVectorFixed_
mutableprotected

Definition at line 315 of file Tau.h.

Referenced by isolationPFNeutrHadrCands().

reco::PFCandidateRefVector pat::Tau::isolationPFNeutralHadrCandsTransientRefVector_
mutableprotected

Definition at line 314 of file Tau.h.

Referenced by isolationPFNeutrHadrCands().

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

Definition at line 271 of file Tau.h.

Referenced by embedIsolationTracks(), and isolationTracks().

reco::TrackRefVector pat::Tau::isolationTracksTransientRefVector_
mutableprotected

Definition at line 272 of file Tau.h.

Referenced by isolationTracks().

edm::BoolCache pat::Tau::isolationTracksTransientRefVectorFixed_
mutableprotected

Definition at line 273 of file Tau.h.

Referenced by isolationTracks().

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

Definition at line 281 of file Tau.h.

Referenced by embedLeadPFCand(), and leadPFCand().

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

Definition at line 283 of file Tau.h.

Referenced by embedLeadPFChargedHadrCand(), and leadPFChargedHadrCand().

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

Definition at line 285 of file Tau.h.

Referenced by embedLeadPFNeutralCand(), and leadPFNeutralCand().

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

Definition at line 275 of file Tau.h.

Referenced by embedLeadTrack(), and leadTrack().

std::vector<pat::tau::TauPFSpecific> pat::Tau::pfSpecific_
protected
std::vector<reco::PFCandidate> pat::Tau::signalPFCands_
protected

Definition at line 288 of file Tau.h.

Referenced by embedSignalPFCands(), and signalPFCands().

edm::BoolCache pat::Tau::signalPFCandsRefVectorFixed_
mutableprotected

Definition at line 291 of file Tau.h.

Referenced by signalPFCands().

reco::PFCandidateRefVector pat::Tau::signalPFCandsTransientRefVector_
mutableprotected

Definition at line 290 of file Tau.h.

Referenced by signalPFCands().

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

Definition at line 292 of file Tau.h.

Referenced by embedSignalPFChargedHadrCands(), and signalPFChargedHadrCands().

edm::BoolCache pat::Tau::signalPFChargedHadrCandsRefVectorFixed_
mutableprotected

Definition at line 295 of file Tau.h.

Referenced by signalPFChargedHadrCands().

reco::PFCandidateRefVector pat::Tau::signalPFChargedHadrCandsTransientRefVector_
mutableprotected

Definition at line 294 of file Tau.h.

Referenced by signalPFChargedHadrCands().

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

Definition at line 300 of file Tau.h.

Referenced by embedSignalPFGammaCands(), and signalPFGammaCands().

edm::BoolCache pat::Tau::signalPFGammaCandsRefVectorFixed_
mutableprotected

Definition at line 303 of file Tau.h.

Referenced by signalPFGammaCands().

reco::PFCandidateRefVector pat::Tau::signalPFGammaCandsTransientRefVector_
mutableprotected

Definition at line 302 of file Tau.h.

Referenced by signalPFGammaCands().

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

Definition at line 296 of file Tau.h.

Referenced by embedSignalPFNeutralHadrCands(), and signalPFNeutrHadrCands().

edm::BoolCache pat::Tau::signalPFNeutralHadrCandsRefVectorFixed_
mutableprotected

Definition at line 299 of file Tau.h.

Referenced by signalPFNeutrHadrCands().

reco::PFCandidateRefVector pat::Tau::signalPFNeutralHadrCandsTransientRefVector_
mutableprotected

Definition at line 298 of file Tau.h.

Referenced by signalPFNeutrHadrCands().

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

Definition at line 277 of file Tau.h.

Referenced by embedSignalTracks(), and signalTracks().

reco::TrackRefVector pat::Tau::signalTracksTransientRefVector_
mutableprotected

Definition at line 278 of file Tau.h.

Referenced by signalTracks().

edm::BoolCache pat::Tau::signalTracksTransientRefVectorFixed_
mutableprotected

Definition at line 279 of file Tau.h.

Referenced by signalTracks().

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

Definition at line 324 of file Tau.h.

Referenced by isTauIDAvailable(), setTauIDs(), tauID(), and tauIDs().