CMS 3D CMS Logo

Tau.h
Go to the documentation of this file.
1 #ifndef DataFormats_PatCandidates_Tau_h
2 #define DataFormats_PatCandidates_Tau_h
3 
26 
30 
32 
33 // Define typedefs for convenience
34 namespace pat {
35  class Tau;
36  typedef std::vector<Tau> TauCollection;
40 } // namespace pat
41 
42 namespace reco {
44  std::ostream& operator<<(std::ostream& out, const pat::Tau& obj);
45  // bool sortByPt(const CandidatePtrVector::const_iterator &lhs, const CandidatePtrVector::const_iterator &rhs) { return (*lhs)->pt() < (*rhs)->pt(); }
46 } // namespace reco
47 
48 // Class definition
49 namespace pat {
50 
51  class PATTauSlimmer;
52 
53  class Tau : public Lepton<reco::BaseTau> {
57  friend class PATTauProducer;
58 
59  public:
60  typedef std::pair<std::string, float> IdPair;
61 
63  Tau();
65  Tau(const reco::BaseTau& aTau);
67  Tau(const edm::RefToBase<reco::BaseTau>& aTauRef);
69  Tau(const edm::Ptr<reco::BaseTau>& aTauRef);
71  ~Tau() override;
72 
74  Tau* clone() const override { return new Tau(*this); }
75 
76  // ---- methods for content embedding ----
78  const reco::TrackRefVector& isolationTracks() const override;
80  reco::TrackRef leadTrack() const override;
82  const reco::TrackRefVector& signalTracks() const override;
84  void embedIsolationTracks();
86  void embedLeadTrack();
88  void embedSignalTracks();
91  void embedLeadPFCand();
97  void embedSignalPFCands();
105  void embedIsolationPFCands();
112 
113  // ---- matched GenJet methods ----
115  const reco::GenJet* genJet() const;
117  void setGenJet(const reco::GenJetRef& ref);
118 
119  // ---- PFTau accessors (getters only) ----
121  bool isPFTau() const { return !pfSpecific_.empty(); }
123  const pat::tau::TauPFSpecific& pfSpecific() const;
124  const pat::tau::TauPFEssential& pfEssential() const;
127  const reco::JetBaseRef& pfJetRef() const { return pfSpecific().pfJetRef_; }
142  const reco::PFCandidatePtr leadPFCand() const;
145  const std::vector<reco::PFCandidatePtr>& signalPFCands() const;
148  const std::vector<reco::PFCandidatePtr>& signalPFChargedHadrCands() const;
151  const std::vector<reco::PFCandidatePtr>& signalPFNeutrHadrCands() const;
154  const std::vector<reco::PFCandidatePtr>& signalPFGammaCands() const;
157  const std::vector<reco::PFRecoTauChargedHadron>& signalTauChargedHadronCandidates() const;
160  const std::vector<reco::RecoTauPiZero>& signalPiZeroCandidates() const;
163  const std::vector<reco::PFCandidatePtr>& isolationPFCands() const;
166  const std::vector<reco::PFCandidatePtr>& isolationPFChargedHadrCands() const;
169  const std::vector<reco::PFCandidatePtr>& isolationPFNeutrHadrCands() const;
172  const std::vector<reco::PFCandidatePtr>& isolationPFGammaCands() const;
175  const std::vector<reco::PFRecoTauChargedHadron>& isolationTauChargedHadronCandidates() const;
178  const std::vector<reco::RecoTauPiZero>& isolationPiZeroCandidates() const;
190  float emFraction() const { return pfSpecific().emFraction_; }
193  float hcalTotOverPLead() const { return pfSpecific().hcalTotOverPLead_; }
196  float hcalMaxOverPLead() const { return pfSpecific().hcalMaxOverPLead_; }
199  float hcal3x3OverPLead() const { return pfSpecific().hcal3x3OverPLead_; }
217  float caloComp() const { return pfSpecific().caloComp_; }
220  float segComp() const { return pfSpecific().segComp_; }
223  bool muonDecision() const { return pfSpecific().muonDecision_; }
224 
229  const reco::CandidatePtr leadNeutralCand() const;
231  const reco::CandidatePtr leadCand() const;
234  bool ExistSignalCands() const;
235  bool ExistIsolationCands() const;
258 
261  std::vector<reco::CandidatePtr> signalLostTracks() const;
262 
270  void setSignalLostTracks(const std::vector<reco::CandidatePtr>& ptrs);
271 
274  size_t numberOfSourceCandidatePtrs() const override;
277 
282  float dxy() const { return pfEssential().dxy_; }
283  float dxy_error() const { return pfEssential().dxy_error_; }
284  float dxy_Sig() const;
285  const reco::VertexRef& primaryVertex() const { return pfEssential().pv_; }
288  bool hasSecondaryVertex() const { return pfEssential().hasSV_; }
290  float flightLengthSig() const { return pfEssential().flightLengthSig_; }
292  const reco::VertexRef& secondaryVertex() const { return pfEssential().sv_; }
295  float ip3d() const { return pfEssential().ip3d_; }
296  float ip3d_error() const { return pfEssential().ip3d_error_; }
297  float ip3d_Sig() const;
298 
302  float ecalEnergy() const { return pfEssential().ecalEnergy_; }
304  float hcalEnergy() const { return pfEssential().hcalEnergy_; }
307 
323  float emFraction_MVA() const { return pfEssential().emFraction_; }
324 
328  float etaetaMoment() const;
329  float phiphiMoment() const;
330  float etaphiMoment() const;
331 
333  int decayMode() const { return pfEssential().decayMode_; }
335  void setDecayMode(int);
336 
337  // ---- methods for tau ID ----
343  float tauID(const std::string& name) const;
344  float tauID(const char* name) const { return tauID(std::string(name)); }
346  bool isTauIDAvailable(const std::string& name) const;
349  const std::vector<IdPair>& tauIDs() const { return tauIDs_; }
352  void setTauIDs(const std::vector<IdPair>& ids) { tauIDs_ = ids; }
353 
355  friend std::ostream& reco::operator<<(std::ostream& out, const Tau& obj);
356 
359  const std::vector<std::string> availableJECSets() const;
360  // returns the available JEC Levels for a given jecSet
361  const std::vector<std::string> availableJECLevels(const int& set = 0) const;
362  // returns the available JEC Levels for a given jecSet
363  const std::vector<std::string> availableJECLevels(const std::string& set) const {
364  return availableJECLevels(jecSet(set));
365  };
368  bool jecSetsAvailable() const { return !jec_.empty(); }
371  bool jecSetAvailable(const std::string& set) const { return (jecSet(set) >= 0); };
374  bool jecSetAvailable(const unsigned int& set) const { return (set < jec_.size()); };
377  return currentJECSet_ < jec_.size() ? jec_.at(currentJECSet_).jecSet() : std::string("ERROR");
378  }
381  return currentJECSet_ < jec_.size() ? jec_.at(currentJECSet_).jecLevel(currentJECLevel_) : std::string("ERROR");
382  }
385  float jecFactor(const std::string& level, const std::string& set = "") const;
388  float jecFactor(const unsigned int& level, const unsigned int& set = 0) const;
391  Tau correctedTauJet(const std::string& level, const std::string& set = "") const;
394  Tau correctedTauJet(const unsigned int& level, const unsigned int& set = 0) const;
397  const LorentzVector& correctedP4(const std::string& level, const std::string& set = "") const {
398  return correctedTauJet(level, set).p4();
399  }
402  const LorentzVector& correctedP4(const unsigned int& level, const unsigned int& set = 0) const {
403  return correctedTauJet(level, set).p4();
404  }
405 
406  friend class PATTauSlimmer;
407 
408  protected:
411  int jecSet(const std::string& label) const;
413  void currentJECSet(const unsigned int& set) { currentJECSet_ = set; };
415  void currentJECLevel(const unsigned int& level) { currentJECLevel_ = level; };
417  void addJECFactors(const TauJetCorrFactors& jec) { jec_.push_back(jec); };
419  void initializeJEC(unsigned int level, const unsigned int set = 0);
420 
421  private:
423  void initFromBaseTau(const reco::BaseTau& aTau);
424  // ---- for content embedding ----
426  std::vector<reco::Track> isolationTracks_;
429  std::vector<reco::Track> leadTrack_;
431  std::vector<reco::Track> signalTracks_;
433  // specific for PFTau
434  std::vector<reco::PFCandidate> leadPFCand_;
436  std::vector<reco::PFCandidate> leadPFChargedHadrCand_;
438  std::vector<reco::PFCandidate> leadPFNeutralCand_;
440 
441  std::vector<reco::PFCandidate> signalPFCands_;
444  std::vector<reco::PFCandidate> signalPFChargedHadrCands_;
447  std::vector<reco::PFCandidate> signalPFNeutralHadrCands_;
450  std::vector<reco::PFCandidate> signalPFGammaCands_;
453  std::vector<reco::PFCandidate> isolationPFCands_;
456  std::vector<reco::PFCandidate> isolationPFChargedHadrCands_;
459  std::vector<reco::PFCandidate> isolationPFNeutralHadrCands_;
462  std::vector<reco::PFCandidate> isolationPFGammaCands_;
465 
466  // ---- matched GenJet holder ----
467  std::vector<reco::GenJet> genJet_;
468 
469  // ---- tau ID's holder ----
470  std::vector<IdPair> tauIDs_;
471 
472  // ---- PFTau specific variables ----
474  std::vector<pat::tau::TauPFSpecific> pfSpecific_;
475 
476  // ---- energy scale correction factors ----
477  // energy scale correction factors; the string carries a potential label if
478  // more then one set of correction factors is embedded. The label corresponds
479  // to the label of the jetCorrFactors module that has been embedded.
480  std::vector<pat::TauJetCorrFactors> jec_;
481  // currently applied set of jet energy correction factors (i.e. the index in
482  // jetEnergyCorrections_)
483  unsigned int currentJECSet_;
484  // currently applied jet energy correction level
485  unsigned int currentJECLevel_;
486 
487  // ---- references to packed pf candidates -----
491 
495 
496  // -- essential info to keep
497 
498  std::vector<pat::tau::TauPFEssential> pfEssential_;
499  };
500 } // namespace pat
501 
502 #endif
bool ExistIsolationCands() const
bool embeddedLeadPFNeutralCand_
Definition: Tau.h:439
float etaAtEcalEntrance() const
return etaAtEcalEntrance
Definition: Tau.h:317
float etaetaMoment() const
reco::CandidatePtr sourceCandidatePtr(size_type i) const override
get the source candidate pointer with index i
edm::AtomicPtrCache< reco::TrackRefVector > signalTracksTransientRefVector_
Definition: Tau.h:432
void currentJECLevel(const unsigned int &level)
update the current JEC level; used by correctedJet
Definition: Tau.h:415
reco::CandidatePtrVector isolationGammaCandPtrs_
Definition: Tau.h:494
edm::RefProd< TauCollection > TauRefProd
Definition: Tau.h:38
float hcalMaxOverPLead() const
Definition: Tau.h:196
const std::vector< std::string > availableJECLevels(const int &set=0) const
float ip3d_error() const
Definition: Tau.h:296
bool electronPreIDDecision() const
Definition: Tau.h:214
void embedIsolationPFCands()
method to store the isolation candidates internally
const std::vector< reco::PFCandidatePtr > & signalPFNeutrHadrCands() const
const reco::TrackRef & electronPreIDTrack() const
Definition: Tau.h:208
size_t size_type
Definition: Candidate.h:29
bool embeddedSignalPFChargedHadrCands_
Definition: Tau.h:445
float jecFactor(const std::string &level, const std::string &set="") const
std::vector< reco::PFCandidate > leadPFNeutralCand_
Definition: Tau.h:438
void embedIsolationPFGammaCands()
method to store the isolation gamma candidates internally
reco::TrackRef electronPreIDTrack_
Definition: TauPFSpecific.h:55
std::string currentJECLevel() const
return the name of the current step of jet energy corrections
Definition: Tau.h:380
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > isolationPFChargedHadrCandsTransientPtrs_
Definition: Tau.h:458
reco::PFRecoTauChargedHadronRef leadTauChargedHadronCandidate() const
std::vector< reco::PFCandidate > signalPFNeutralHadrCands_
Definition: Tau.h:447
const reco::JetBaseRef & pfJetRef() const
Definition: Tau.h:127
bool muonDecision() const
Definition: Tau.h:223
std::vector< reco::PFCandidate > signalPFCands_
Definition: Tau.h:441
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > signalPFNeutralHadrCandsTransientPtrs_
Definition: Tau.h:449
bool embeddedIsolationPFChargedHadrCands_
Definition: Tau.h:457
bool embeddedIsolationPFCands_
Definition: Tau.h:454
float isolationPFChargedHadrCandsPtSum() const
Definition: Tau.h:181
const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception &#39;not PFTau&#39;
reco::CandidatePtrVector signalGammaCands() const
Slimmer of PAT Taus.
reco::CandidatePtrVector isolationNeutrHadrCands() const
const pat::tau::TauPFEssential::Point & primaryVertexPos() const
Definition: Tau.h:286
Tau * clone() const override
required reimplementation of the Candidate&#39;s clone method
Definition: Tau.h:74
float ecalEnergy() const
Definition: Tau.h:302
void embedLeadTrack()
method to store the leading track internally
void embedSignalPFChargedHadrCands()
method to store the signal charged hadrons candidates internally
std::vector< reco::PFCandidate > isolationPFGammaCands_
Definition: Tau.h:462
std::vector< reco::PFCandidate > isolationPFNeutralHadrCands_
Definition: Tau.h:459
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > isolationPFGammaCandsTransientPtrs_
Definition: Tau.h:464
float segComp() const
Definition: Tau.h:220
std::vector< Tau > TauCollection
Definition: Tau.h:35
std::vector< reco::GenJet > genJet_
Definition: Tau.h:467
void setDecayMode(int)
set decay mode
edm::Ref< TauCollection > TauRef
Definition: Tau.h:37
void setTauIDs(const std::vector< IdPair > &ids)
Definition: Tau.h:352
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > signalPFCandsTransientPtrs_
Definition: Tau.h:443
bool embeddedIsolationPFNeutralHadrCands_
Definition: Tau.h:460
int jecSet(const std::string &label) const
float leadPFChargedHadrCandsignedSipt_
Definition: TauPFSpecific.h:30
bool embeddedLeadTrack_
Definition: Tau.h:428
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > signalPFGammaCandsTransientPtrs_
Definition: Tau.h:452
edm::RefVector< TauCollection > TauRefVector
Definition: Tau.h:39
const std::vector< reco::PFCandidatePtr > & isolationPFGammaCands() const
std::pair< std::string, float > IdPair
Definition: Tau.h:60
std::vector< reco::PFCandidate > leadPFCand_
Definition: Tau.h:434
float ptLeadChargedCand() const
return pt from LeadChargedCand
Definition: Tau.h:321
const LorentzVector & p4() const final
four-momentum Lorentz vector
const pat::tau::TauPFEssential & pfEssential() const
bool embeddedSignalPFGammaCands_
Definition: Tau.h:451
float phiAtEcalEntrance() const
return phiAtEcalEntrance
Definition: Tau.h:315
const pat::tau::TauPFEssential::CovMatrix & secondaryVertexCov() const
Definition: Tau.h:294
const reco::GenJet * genJet() const
return matched GenJet, built from the visible particles of a generated tau
bool ExistSignalCands() const
float etaphiMoment() const
std::vector< reco::CandidatePtr > signalLostTracks() const
float etaAtEcalEntranceLeadChargedCand() const
return etaAtEcalEntrance from LeadChargedCand
Definition: Tau.h:319
const std::vector< reco::PFCandidatePtr > & signalPFChargedHadrCands() const
Definition: HeavyIon.h:7
const std::vector< IdPair > & tauIDs() const
Definition: Tau.h:349
const pat::tau::TauPFEssential::Point & dxy_PCA() const
Definition: Tau.h:281
Tau correctedTauJet(const std::string &level, const std::string &set="") const
float hcalTotOverPLead() const
Definition: Tau.h:193
unsigned int currentJECLevel_
Definition: Tau.h:485
bool isTauIDAvailable(const std::string &name) const
Returns true if a specific ID is available in this pat::Tau.
edm::AtomicPtrCache< reco::TrackRefVector > isolationTracksTransientRefVector_
Definition: Tau.h:427
char const * label
void setIsolationGammaCands(const reco::CandidatePtrVector &ptrs)
Definition: Tau.h:269
void embedSignalPFCands()
method to store the signal candidates internally
void initFromBaseTau(const reco::BaseTau &aTau)
helper to avoid code duplication in constructors
const reco::CandidatePtr leadNeutralCand() const
return the PFCandidate if available (reference or embedded), or the PackedPFCandidate on miniAOD ...
void currentJECSet(const unsigned int &set)
update the current JEC set; used by correctedJet
Definition: Tau.h:413
reco::CandidatePtrVector isolationChargedHadrCandPtrs_
Definition: Tau.h:492
bool jecSetAvailable(const std::string &set) const
Definition: Tau.h:371
std::ostream & operator<<(std::ostream &, BeamSpot beam)
Definition: BeamSpot.cc:66
std::vector< reco::Track > signalTracks_
Definition: Tau.h:431
std::vector< IdPair > tauIDs_
Definition: Tau.h:470
float hcalEnergy() const
return sum of hcal energies from signal candidates
Definition: Tau.h:304
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > signalPFChargedHadrCandsTransientPtrs_
Definition: Tau.h:446
float ecalStripSumEOverPLead() const
Definition: Tau.h:202
reco::CandidatePtrVector isolationGammaCands() const
float isolationPFGammaCandsEtSum() const
Definition: Tau.h:184
bool embeddedIsolationPFGammaCands_
Definition: Tau.h:463
math::XYZVectorF Vector
const std::vector< std::string > availableJECSets() const
std::vector< reco::PFCandidate > signalPFChargedHadrCands_
Definition: Tau.h:444
const reco::PFCandidatePtr leadPFNeutralCand() const
Tau()
default constructor
const std::vector< reco::PFRecoTauChargedHadron > & isolationTauChargedHadronCandidates() const
const LorentzVector & correctedP4(const std::string &level, const std::string &set="") const
Definition: Tau.h:397
void setIsolationNeutralHadrCands(const reco::CandidatePtrVector &ptrs)
Definition: Tau.h:268
float dxy_Sig() const
const reco::TrackRefVector & isolationTracks() const override
override the reco::BaseTau::isolationTracks method, to access the internal storage of the isolation t...
void setIsolationChargedHadrCands(const reco::CandidatePtrVector &ptrs)
Definition: Tau.h:267
reco::CandidatePtrVector isolationNeutralHadrCandPtrs_
Definition: Tau.h:493
Jets made from MC generator particles.
Definition: GenJet.h:23
bool embeddedSignalTracks_
Definition: Tau.h:430
void setSignalChargedHadrCands(const reco::CandidatePtrVector &ptrs)
setters for the PtrVectors (for miniAOD)
Definition: Tau.h:264
const std::vector< reco::RecoTauPiZero > & isolationPiZeroCandidates() const
bool embeddedLeadPFCand_
Definition: Tau.h:435
const reco::CandidatePtr leadCand() const
return the PFCandidate if available (reference or embedded), or the PackedPFCandidate on miniAOD ...
reco::JetBaseRef pfJetRef_
Definition: TauPFSpecific.h:28
bool jecSetsAvailable() const
Definition: Tau.h:368
const reco::CandidatePtr leadChargedHadrCand() const
float emFraction() const
Definition: Tau.h:190
float ip3d() const
Definition: Tau.h:295
std::vector< pat::tau::TauPFEssential > pfEssential_
Definition: Tau.h:498
void embedIsolationPFNeutralHadrCands()
method to store the isolation neutral hadrons candidates internally
void embedLeadPFChargedHadrCand()
method to store the leading charged hadron candidate internally
~Tau() override
destructor
Analysis-level tau class.
Definition: Tau.h:53
bool embeddedLeadPFChargedHadrCand_
Definition: Tau.h:437
reco::CandidatePtrVector signalNeutrHadrCands() const
void embedIsolationPFChargedHadrCands()
method to store the isolation charged hadrons candidates internally
float ip3d_Sig() const
bool embeddedSignalPFNeutralHadrCands_
Definition: Tau.h:448
std::vector< reco::PFCandidate > isolationPFCands_
Definition: Tau.h:453
std::vector< reco::Track > isolationTracks_
Definition: Tau.h:426
float dxy() const
Definition: Tau.h:282
void setGenJet(const reco::GenJetRef &ref)
set the matched GenJet
float leadingTrackNormChi2() const
return normalized chi2 of leading track
Definition: Tau.h:306
Definition: Tau.py:1
float isolationPFChargedHadrCandsPtSum_
Definition: TauPFSpecific.h:45
void embedLeadPFNeutralCand()
method to store the leading neutral candidate internally
void setSignalGammaCands(const reco::CandidatePtrVector &ptrs)
Definition: Tau.h:266
const std::vector< reco::PFCandidatePtr > & isolationPFNeutrHadrCands() const
reco::CandidatePtrVector signalGammaCandPtrs_
Definition: Tau.h:490
reco::CandidatePtrVector signalCands() const
float maximumHCALPFClusterEt() const
Definition: Tau.h:187
std::vector< pat::TauJetCorrFactors > jec_
Definition: Tau.h:480
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > isolationPFNeutralHadrCandsTransientPtrs_
Definition: Tau.h:461
std::vector< reco::PFCandidate > signalPFGammaCands_
Definition: Tau.h:450
const pat::tau::TauPFEssential::Vector & flightLength() const
Definition: Tau.h:289
std::vector< reco::Track > leadTrack_
Definition: Tau.h:429
float dxy_error() const
Definition: Tau.h:283
std::vector< reco::PFCandidate > isolationPFChargedHadrCands_
Definition: Tau.h:456
const pat::tau::TauPFEssential::Point & secondaryVertexPos() const
Definition: Tau.h:293
std::string currentJECSet() const
returns the label of the current set of jet energy corrections
Definition: Tau.h:376
reco::CandidatePtrVector isolationCands() const
const LorentzVector & correctedP4(const unsigned int &level, const unsigned int &set=0) const
Definition: Tau.h:402
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
float leadPFChargedHadrCandsignedSipt() const
Definition: Tau.h:136
const reco::PFCandidatePtr leadPFCand() const
size_t numberOfSourceCandidatePtrs() const override
float ecalEnergyLeadChargedHadrCand() const
Definition: Tau.h:311
bool jecSetAvailable(const unsigned int &set) const
Definition: Tau.h:374
void initializeJEC(unsigned int level, const unsigned int set=0)
initialize the jet to a given JEC level during creation starting from Uncorrected ...
int decayMode() const
reconstructed tau decay mode (specific to PFTau)
Definition: Tau.h:333
const reco::VertexRef & secondaryVertex() const
Definition: Tau.h:292
void embedSignalPFNeutralHadrCands()
method to store the signal neutral hadrons candidates internally
reco::Candidate::LorentzVector p4Jet() const
reco::CandidatePtrVector signalNeutralHadrCandPtrs_
Definition: Tau.h:489
float flightLengthSig() const
Definition: Tau.h:290
void addJECFactors(const TauJetCorrFactors &jec)
add more sets of energy correction factors
Definition: Tau.h:417
fixed size matrix
bool embeddedSignalPFCands_
Definition: Tau.h:442
const reco::TrackRefVector & signalTracks() const override
override the reco::BaseTau::signalTracks method, to access the internal storage of the signal tracks ...
float hcal3x3OverPLead() const
Definition: Tau.h:199
const std::vector< reco::PFCandidatePtr > & signalPFGammaCands() const
float electronPreIDOutput() const
Definition: Tau.h:211
float tauID(const std::string &name) const
float emFraction_MVA() const
return emFraction_MVA
Definition: Tau.h:323
reco::CandidatePtrVector isolationChargedHadrCands() const
reco::CandidatePtrVector signalChargedHadrCands() const
void embedSignalTracks()
method to store the signal tracks internally
pat::tau::TauPFEssential::CovMatrix flightLengthCov() const
bool embeddedIsolationTracks_
Definition: Tau.h:425
float hcalEnergyLeadChargedHadrCand() const
return hcal energy from LeadChargedHadrCand
Definition: Tau.h:313
Definition: Lepton.py:1
void embedSignalPFGammaCands()
method to store the signal gamma candidates internally
const std::vector< std::string > availableJECLevels(const std::string &set) const
Definition: Tau.h:363
const std::vector< reco::RecoTauPiZero > & signalPiZeroCandidates() const
const std::vector< reco::PFCandidatePtr > & isolationPFChargedHadrCands() const
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > isolationPFCandsTransientPtrs_
Definition: Tau.h:455
reco::TrackRef leadTrack() const override
override the reco::BaseTau::leadTrack method, to access the internal storage of the leading track ...
std::vector< reco::PFCandidate > leadPFChargedHadrCand_
Definition: Tau.h:436
bool hasSecondaryVertex() const
Definition: Tau.h:288
const std::vector< reco::PFCandidatePtr > & isolationPFCands() const
const std::vector< reco::PFCandidatePtr > & signalPFCands() const
const reco::VertexRef & primaryVertex() const
Definition: Tau.h:285
float bremsRecoveryEOverPLead() const
Definition: Tau.h:205
float tauID(const char *name) const
Definition: Tau.h:344
const pat::tau::TauPFEssential::CovMatrix & primaryVertexCov() const
Definition: Tau.h:287
void embedIsolationTracks()
method to store the isolation tracks internally
bool isPFTau() const
Returns true if this pat::Tau was made from a reco::PFTau.
Definition: Tau.h:121
std::vector< pat::tau::TauPFSpecific > pfSpecific_
holder for PFTau info, or empty vector if CaloTau
Definition: Tau.h:474
void setSignalLostTracks(const std::vector< reco::CandidatePtr > &ptrs)
const reco::PFCandidatePtr leadPFChargedHadrCand() const
float caloComp() const
Definition: Tau.h:217
const std::vector< reco::PFRecoTauChargedHadron > & signalTauChargedHadronCandidates() const
reco::CandidatePtrVector signalChargedHadrCandPtrs_
Definition: Tau.h:488
unsigned int currentJECSet_
Definition: Tau.h:483
void setSignalNeutralHadrCands(const reco::CandidatePtrVector &ptrs)
Definition: Tau.h:265
Produces pat::Tau&#39;s.
void embedLeadPFCand()
math::ErrorF< 3 >::type CovMatrix
float phiphiMoment() const