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_; }
130  reco::PFRecoTauChargedHadronRef leadTauChargedHadronCandidate() const;
133  const reco::PFCandidatePtr leadPFChargedHadrCand() const;
139  const reco::PFCandidatePtr leadPFNeutralCand() const;
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;
184  float isolationPFGammaCandsEtSum() const { return pfSpecific().isolationPFGammaCandsEtSum_; }
187  float maximumHCALPFClusterEt() const { return pfSpecific().maximumHCALPFClusterEt_; }
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_; }
202  float ecalStripSumEOverPLead() const { return pfSpecific().ecalStripSumEOverPLead_; }
205  float bremsRecoveryEOverPLead() const { return pfSpecific().bremsRecoveryEOverPLead_; }
208  const reco::TrackRef& electronPreIDTrack() const { return pfSpecific().electronPreIDTrack_; }
211  float electronPreIDOutput() const { return pfSpecific().electronPreIDOutput_; }
214  bool electronPreIDDecision() const { return pfSpecific().electronPreIDDecision_; }
217  float caloComp() const { return pfSpecific().caloComp_; }
220  float segComp() const { return pfSpecific().segComp_; }
223  bool muonDecision() const { return pfSpecific().muonDecision_; }
224 
227  const reco::CandidatePtr leadChargedHadrCand() const;
229  const reco::CandidatePtr leadNeutralCand() const;
231  const reco::CandidatePtr leadCand() const;
234  bool ExistSignalCands() const;
235  bool ExistIsolationCands() const;
236  reco::CandidatePtrVector signalCands() const;
239  reco::CandidatePtrVector signalChargedHadrCands() const;
242  reco::CandidatePtrVector signalNeutrHadrCands() const;
245  reco::CandidatePtrVector signalGammaCands() const;
248  reco::CandidatePtrVector isolationCands() const;
251  reco::CandidatePtrVector isolationChargedHadrCands() const;
254  reco::CandidatePtrVector isolationNeutrHadrCands() const;
257  reco::CandidatePtrVector isolationGammaCands() const;
258 
260  void setSignalChargedHadrCands(const reco::CandidatePtrVector& ptrs) { signalChargedHadrCandPtrs_ = ptrs; }
261  void setSignalNeutralHadrCands(const reco::CandidatePtrVector& ptrs) { signalNeutralHadrCandPtrs_ = ptrs; }
262  void setSignalGammaCands(const reco::CandidatePtrVector& ptrs) { signalGammaCandPtrs_ = ptrs; }
263  void setIsolationChargedHadrCands(const reco::CandidatePtrVector& ptrs) { isolationChargedHadrCandPtrs_ = ptrs; }
264  void setIsolationNeutralHadrCands(const reco::CandidatePtrVector& ptrs) { isolationNeutralHadrCandPtrs_ = ptrs; }
265  void setIsolationGammaCands(const reco::CandidatePtrVector& ptrs) { isolationGammaCandPtrs_ = ptrs; }
266 
269  size_t numberOfSourceCandidatePtrs() const override;
271  reco::CandidatePtr sourceCandidatePtr(size_type i) const override;
272 
276  const pat::tau::TauPFEssential::Point& dxy_PCA() const { return pfEssential().dxy_PCA_; }
277  float dxy() const { return pfEssential().dxy_; }
278  float dxy_error() const { return pfEssential().dxy_error_; }
279  float dxy_Sig() const;
280  const reco::VertexRef& primaryVertex() const { return pfEssential().pv_; }
281  const pat::tau::TauPFEssential::Point& primaryVertexPos() const { return pfEssential().pvPos_; }
282  const pat::tau::TauPFEssential::CovMatrix& primaryVertexCov() const { return pfEssential().pvCov_; }
283  bool hasSecondaryVertex() const { return pfEssential().hasSV_; }
284  const pat::tau::TauPFEssential::Vector& flightLength() const { return pfEssential().flightLength_; }
285  float flightLengthSig() const { return pfEssential().flightLengthSig_; }
286  pat::tau::TauPFEssential::CovMatrix flightLengthCov() const;
287  const reco::VertexRef& secondaryVertex() const { return pfEssential().sv_; }
288  const pat::tau::TauPFEssential::Point& secondaryVertexPos() const { return pfEssential().svPos_; }
289  const pat::tau::TauPFEssential::CovMatrix& secondaryVertexCov() const { return pfEssential().svCov_; }
290  float ip3d() const { return pfEssential().ip3d_; }
291  float ip3d_error() const { return pfEssential().ip3d_error_; }
292  float ip3d_Sig() const;
293 
297  float ecalEnergy() const { return pfEssential().ecalEnergy_; }
299  float hcalEnergy() const { return pfEssential().hcalEnergy_; }
301  float leadingTrackNormChi2() const { return pfEssential().leadingTrackNormChi2_; }
302 
306  float ecalEnergyLeadChargedHadrCand() const { return pfEssential().ecalEnergyLeadChargedHadrCand_; }
308  float hcalEnergyLeadChargedHadrCand() const { return pfEssential().hcalEnergyLeadChargedHadrCand_; }
310  float phiAtEcalEntrance() const { return pfEssential().phiAtEcalEntrance_; }
312  float etaAtEcalEntrance() const { return pfEssential().etaAtEcalEntrance_; }
316  float ptLeadChargedCand() const { return pfEssential().ptLeadChargedCand_; }
318  float emFraction_MVA() const { return pfEssential().emFraction_; }
319 
322  reco::Candidate::LorentzVector p4Jet() const;
323  float etaetaMoment() const;
324  float phiphiMoment() const;
325  float etaphiMoment() const;
326 
328  int decayMode() const { return pfEssential().decayMode_; }
330  void setDecayMode(int);
331 
332  // ---- methods for tau ID ----
338  float tauID(const std::string& name) const;
339  float tauID(const char* name) const { return tauID(std::string(name)); }
341  bool isTauIDAvailable(const std::string& name) const;
344  const std::vector<IdPair>& tauIDs() const { return tauIDs_; }
347  void setTauIDs(const std::vector<IdPair>& ids) { tauIDs_ = ids; }
348 
350  friend std::ostream& reco::operator<<(std::ostream& out, const Tau& obj);
351 
354  const std::vector<std::string> availableJECSets() const;
355  // returns the available JEC Levels for a given jecSet
356  const std::vector<std::string> availableJECLevels(const int& set = 0) const;
357  // returns the available JEC Levels for a given jecSet
358  const std::vector<std::string> availableJECLevels(const std::string& set) const {
359  return availableJECLevels(jecSet(set));
360  };
363  bool jecSetsAvailable() const { return !jec_.empty(); }
366  bool jecSetAvailable(const std::string& set) const { return (jecSet(set) >= 0); };
369  bool jecSetAvailable(const unsigned int& set) const { return (set < jec_.size()); };
372  return currentJECSet_ < jec_.size() ? jec_.at(currentJECSet_).jecSet() : std::string("ERROR");
373  }
376  return currentJECSet_ < jec_.size() ? jec_.at(currentJECSet_).jecLevel(currentJECLevel_) : std::string("ERROR");
377  }
380  float jecFactor(const std::string& level, const std::string& set = "") const;
383  float jecFactor(const unsigned int& level, const unsigned int& set = 0) const;
386  Tau correctedTauJet(const std::string& level, const std::string& set = "") const;
389  Tau correctedTauJet(const unsigned int& level, const unsigned int& set = 0) const;
392  const LorentzVector& correctedP4(const std::string& level, const std::string& set = "") const {
393  return correctedTauJet(level, set).p4();
394  }
397  const LorentzVector& correctedP4(const unsigned int& level, const unsigned int& set = 0) const {
398  return correctedTauJet(level, set).p4();
399  }
400 
401  friend class PATTauSlimmer;
402 
403  protected:
406  int jecSet(const std::string& label) const;
408  void currentJECSet(const unsigned int& set) { currentJECSet_ = set; };
410  void currentJECLevel(const unsigned int& level) { currentJECLevel_ = level; };
412  void addJECFactors(const TauJetCorrFactors& jec) { jec_.push_back(jec); };
414  void initializeJEC(unsigned int level, const unsigned int set = 0);
415 
416  private:
418  void initFromBaseTau(const reco::BaseTau& aTau);
419  // ---- for content embedding ----
421  std::vector<reco::Track> isolationTracks_;
424  std::vector<reco::Track> leadTrack_;
426  std::vector<reco::Track> signalTracks_;
428  // specific for PFTau
429  std::vector<reco::PFCandidate> leadPFCand_;
431  std::vector<reco::PFCandidate> leadPFChargedHadrCand_;
433  std::vector<reco::PFCandidate> leadPFNeutralCand_;
435 
436  std::vector<reco::PFCandidate> signalPFCands_;
439  std::vector<reco::PFCandidate> signalPFChargedHadrCands_;
442  std::vector<reco::PFCandidate> signalPFNeutralHadrCands_;
445  std::vector<reco::PFCandidate> signalPFGammaCands_;
448  std::vector<reco::PFCandidate> isolationPFCands_;
451  std::vector<reco::PFCandidate> isolationPFChargedHadrCands_;
454  std::vector<reco::PFCandidate> isolationPFNeutralHadrCands_;
457  std::vector<reco::PFCandidate> isolationPFGammaCands_;
460 
461  // ---- matched GenJet holder ----
462  std::vector<reco::GenJet> genJet_;
463 
464  // ---- tau ID's holder ----
465  std::vector<IdPair> tauIDs_;
466 
467  // ---- PFTau specific variables ----
469  std::vector<pat::tau::TauPFSpecific> pfSpecific_;
470 
471  // ---- energy scale correction factors ----
472  // energy scale correction factors; the string carries a potential label if
473  // more then one set of correction factors is embedded. The label corresponds
474  // to the label of the jetCorrFactors module that has been embedded.
475  std::vector<pat::TauJetCorrFactors> jec_;
476  // currently applied set of jet energy correction factors (i.e. the index in
477  // jetEnergyCorrections_)
478  unsigned int currentJECSet_;
479  // currently applied jet energy correction level
480  unsigned int currentJECLevel_;
481 
482  // ---- references to packed pf candidates -----
486 
490 
491  // -- essential info to keep
492 
493  std::vector<pat::tau::TauPFEssential> pfEssential_;
494  };
495 } // namespace pat
496 
497 #endif
bool embeddedLeadPFNeutralCand_
Definition: Tau.h:434
const reco::JetBaseRef & pfJetRef() const
Definition: Tau.h:127
const std::vector< IdPair > & tauIDs() const
Definition: Tau.h:344
const LorentzVector & correctedP4(const std::string &level, const std::string &set="") const
Definition: Tau.h:392
edm::AtomicPtrCache< reco::TrackRefVector > signalTracksTransientRefVector_
Definition: Tau.h:427
embedIsolationPFNeutralHadrCands
embed in AOD externally stored isolation PFChargedHadronCandidates
float hcalTotOverPLead() const
Definition: Tau.h:193
void currentJECLevel(const unsigned int &level)
update the current JEC level; used by correctedJet
Definition: Tau.h:410
const LorentzVector & correctedP4(const unsigned int &level, const unsigned int &set=0) const
Definition: Tau.h:397
reco::CandidatePtrVector isolationGammaCandPtrs_
Definition: Tau.h:489
edm::RefProd< TauCollection > TauRefProd
Definition: Tau.h:38
embedIsolationPFChargedHadrCands
embed in AOD externally stored isolation PFCandidates
float caloComp() const
Definition: Tau.h:217
size_t size_type
Definition: Candidate.h:30
bool embeddedSignalPFChargedHadrCands_
Definition: Tau.h:440
std::vector< reco::PFCandidate > leadPFNeutralCand_
Definition: Tau.h:433
float hcalEnergyLeadChargedHadrCand() const
return hcal energy from LeadChargedHadrCand
Definition: Tau.h:308
reco::TrackRef electronPreIDTrack_
Definition: TauPFSpecific.h:55
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > isolationPFChargedHadrCandsTransientPtrs_
Definition: Tau.h:453
float dxy() const
Definition: Tau.h:277
std::vector< reco::PFCandidate > signalPFNeutralHadrCands_
Definition: Tau.h:442
std::vector< reco::PFCandidate > signalPFCands_
Definition: Tau.h:436
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > signalPFNeutralHadrCandsTransientPtrs_
Definition: Tau.h:444
bool embeddedIsolationPFChargedHadrCands_
Definition: Tau.h:452
bool jecSetAvailable(const std::string &set) const
Definition: Tau.h:366
bool embeddedIsolationPFCands_
Definition: Tau.h:449
float hcal3x3OverPLead() const
Definition: Tau.h:199
bool jecSetAvailable(const unsigned int &set) const
Definition: Tau.h:369
Slimmer of PAT Taus.
embedSignalPFGammaCands
embed in AOD externally stored signal PFNeutralHadronCandidates
const pat::tau::TauPFEssential::Point & secondaryVertexPos() const
Definition: Tau.h:288
std::vector< reco::PFCandidate > isolationPFGammaCands_
Definition: Tau.h:457
embedSignalPFCands
embed in AOD externally stored leading PFNeutral Candidate
std::vector< reco::PFCandidate > isolationPFNeutralHadrCands_
Definition: Tau.h:454
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > isolationPFGammaCandsTransientPtrs_
Definition: Tau.h:459
std::vector< Tau > TauCollection
Definition: Tau.h:35
std::vector< reco::GenJet > genJet_
Definition: Tau.h:462
const reco::TrackRef & electronPreIDTrack() const
Definition: Tau.h:208
edm::Ref< TauCollection > TauRef
Definition: Tau.h:37
const std::vector< std::string > availableJECLevels(const std::string &set) const
Definition: Tau.h:358
void setTauIDs(const std::vector< IdPair > &ids)
Definition: Tau.h:347
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > signalPFCandsTransientPtrs_
Definition: Tau.h:438
bool embeddedIsolationPFNeutralHadrCands_
Definition: Tau.h:455
float leadPFChargedHadrCandsignedSipt_
Definition: TauPFSpecific.h:30
bool embeddedLeadTrack_
Definition: Tau.h:423
float isolationPFGammaCandsEtSum() const
Definition: Tau.h:184
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > signalPFGammaCandsTransientPtrs_
Definition: Tau.h:447
float hcalEnergy() const
return sum of hcal energies from signal candidates
Definition: Tau.h:299
edm::RefVector< TauCollection > TauRefVector
Definition: Tau.h:39
float maximumHCALPFClusterEt() const
Definition: Tau.h:187
float ecalEnergy() const
Definition: Tau.h:297
std::pair< std::string, float > IdPair
Definition: Tau.h:60
std::vector< reco::PFCandidate > leadPFCand_
Definition: Tau.h:429
const pat::tau::TauPFEssential::CovMatrix & primaryVertexCov() const
Definition: Tau.h:282
InputIterator leadCand(InputIterator begin, InputIterator end)
embedSignalPFNeutralHadrCands
embed in AOD externally stored signal PFChargedHadronCandidates
bool embeddedSignalPFGammaCands_
Definition: Tau.h:446
Definition: HeavyIon.h:7
unsigned int currentJECLevel_
Definition: Tau.h:480
float ip3d_error() const
Definition: Tau.h:291
static const int tauID
Definition: TopGenEvent.h:20
edm::AtomicPtrCache< reco::TrackRefVector > isolationTracksTransientRefVector_
Definition: Tau.h:422
char const * label
float hcalMaxOverPLead() const
Definition: Tau.h:196
embedSignalTracks
embed in AOD externally stored leading track
void setIsolationGammaCands(const reco::CandidatePtrVector &ptrs)
Definition: Tau.h:265
void currentJECSet(const unsigned int &set)
update the current JEC set; used by correctedJet
Definition: Tau.h:408
float isolationPFChargedHadrCandsPtSum() const
Definition: Tau.h:181
reco::CandidatePtrVector isolationChargedHadrCandPtrs_
Definition: Tau.h:487
std::ostream & operator<<(std::ostream &, BeamSpot beam)
Definition: BeamSpot.cc:66
std::vector< reco::Track > signalTracks_
Definition: Tau.h:426
embedIsolationPFGammaCands
embed in AOD externally stored isolation PFNeutralHadronCandidates
std::vector< IdPair > tauIDs_
Definition: Tau.h:465
embedIsolationTracks
embed in AOD externally stored signal tracks
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > signalPFChargedHadrCandsTransientPtrs_
Definition: Tau.h:441
bool embeddedIsolationPFGammaCands_
Definition: Tau.h:458
math::XYZVectorF Vector
const reco::VertexRef & primaryVertex() const
Definition: Tau.h:280
std::vector< reco::PFCandidate > signalPFChargedHadrCands_
Definition: Tau.h:439
float ip3d() const
Definition: Tau.h:290
void setIsolationNeutralHadrCands(const reco::CandidatePtrVector &ptrs)
Definition: Tau.h:264
const pat::tau::TauPFEssential::Vector & flightLength() const
Definition: Tau.h:284
void setIsolationChargedHadrCands(const reco::CandidatePtrVector &ptrs)
Definition: Tau.h:263
std::ostream & operator<<(std::ostream &out, const strbitset::index_type &r)
Definition: strbitset.cc:25
float ecalEnergyLeadChargedHadrCand() const
Definition: Tau.h:306
reco::CandidatePtrVector isolationNeutralHadrCandPtrs_
Definition: Tau.h:488
Jets made from MC generator particles.
Definition: GenJet.h:23
bool embeddedSignalTracks_
Definition: Tau.h:425
const reco::VertexRef & secondaryVertex() const
Definition: Tau.h:287
void setSignalChargedHadrCands(const reco::CandidatePtrVector &ptrs)
setters for the PtrVectors (for miniAOD)
Definition: Tau.h:260
const LorentzVector & p4() const final
four-momentum Lorentz vector
embedLeadPFNeutralCand
embed in AOD externally stored leading PFChargedHadron candidate
bool embeddedLeadPFCand_
Definition: Tau.h:430
bool hasSecondaryVertex() const
Definition: Tau.h:283
reco::JetBaseRef pfJetRef_
Definition: TauPFSpecific.h:28
float phiAtEcalEntrance() const
return phiAtEcalEntrance
Definition: Tau.h:310
std::vector< pat::tau::TauPFEssential > pfEssential_
Definition: Tau.h:493
std::string currentJECLevel() const
return the name of the current step of jet energy corrections
Definition: Tau.h:375
Analysis-level tau class.
Definition: Tau.h:53
const pat::tau::TauPFEssential::CovMatrix & secondaryVertexCov() const
Definition: Tau.h:289
bool embeddedLeadPFChargedHadrCand_
Definition: Tau.h:432
bool embeddedSignalPFNeutralHadrCands_
Definition: Tau.h:443
std::vector< reco::PFCandidate > isolationPFCands_
Definition: Tau.h:448
std::vector< reco::Track > isolationTracks_
Definition: Tau.h:421
float ptLeadChargedCand() const
return pt from LeadChargedCand
Definition: Tau.h:316
Definition: Tau.py:1
embedSignalPFChargedHadrCands
embed in AOD externally stored signal PFCandidates
float isolationPFChargedHadrCandsPtSum_
Definition: TauPFSpecific.h:45
const pat::tau::TauPFEssential::Point & dxy_PCA() const
Definition: Tau.h:276
float emFraction() const
Definition: Tau.h:190
void setSignalGammaCands(const reco::CandidatePtrVector &ptrs)
Definition: Tau.h:262
float ecalStripSumEOverPLead() const
Definition: Tau.h:202
reco::CandidatePtrVector signalGammaCandPtrs_
Definition: Tau.h:485
int decayMode() const
reconstructed tau decay mode (specific to PFTau)
Definition: Tau.h:328
Tau * clone() const override
required reimplementation of the Candidate&#39;s clone method
Definition: Tau.h:74
float bremsRecoveryEOverPLead() const
Definition: Tau.h:205
std::vector< pat::TauJetCorrFactors > jec_
Definition: Tau.h:475
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > isolationPFNeutralHadrCandsTransientPtrs_
Definition: Tau.h:456
std::vector< reco::PFCandidate > signalPFGammaCands_
Definition: Tau.h:445
float leadPFChargedHadrCandsignedSipt() const
Definition: Tau.h:136
std::vector< reco::Track > leadTrack_
Definition: Tau.h:424
std::vector< reco::PFCandidate > isolationPFChargedHadrCands_
Definition: Tau.h:451
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:37
bool jecSetsAvailable() const
Definition: Tau.h:363
float emFraction_MVA() const
return emFraction_MVA
Definition: Tau.h:318
reco::CandidatePtrVector signalNeutralHadrCandPtrs_
Definition: Tau.h:484
float flightLengthSig() const
Definition: Tau.h:285
void addJECFactors(const TauJetCorrFactors &jec)
add more sets of energy correction factors
Definition: Tau.h:412
fixed size matrix
bool embeddedSignalPFCands_
Definition: Tau.h:437
float tauID(const char *name) const
Definition: Tau.h:339
float leadingTrackNormChi2() const
return normalized chi2 of leading track
Definition: Tau.h:301
float segComp() const
Definition: Tau.h:220
embedIsolationPFCands
embed in AOD externally stored signal PFGammaCandidates
bool isPFTau() const
Returns true if this pat::Tau was made from a reco::PFTau.
Definition: Tau.h:121
bool embeddedIsolationTracks_
Definition: Tau.h:420
Definition: Lepton.py:1
embedLeadPFCand
embed in AOD externally stored isolation tracks embedding objects (for PFTaus only) ...
embedLeadPFChargedHadrCand
embed in AOD externally stored leading PFCandidate
float etaAtEcalEntrance() const
return etaAtEcalEntrance
Definition: Tau.h:312
float etaAtEcalEntranceLeadChargedCand() const
return etaAtEcalEntrance from LeadChargedCand
Definition: Tau.h:314
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > isolationPFCandsTransientPtrs_
Definition: Tau.h:450
std::vector< reco::PFCandidate > leadPFChargedHadrCand_
Definition: Tau.h:431
std::string currentJECSet() const
returns the label of the current set of jet energy corrections
Definition: Tau.h:371
std::vector< pat::tau::TauPFSpecific > pfSpecific_
holder for PFTau info, or empty vector if CaloTau
Definition: Tau.h:469
float electronPreIDOutput() const
Definition: Tau.h:211
reco::CandidatePtrVector signalChargedHadrCandPtrs_
Definition: Tau.h:483
unsigned int currentJECSet_
Definition: Tau.h:478
bool electronPreIDDecision() const
Definition: Tau.h:214
void setSignalNeutralHadrCands(const reco::CandidatePtrVector &ptrs)
Definition: Tau.h:261
bool muonDecision() const
Definition: Tau.h:223
Produces pat::Tau&#39;s.
const pat::tau::TauPFEssential::Point & primaryVertexPos() const
Definition: Tau.h:281
float dxy_error() const
Definition: Tau.h:278
math::ErrorF< 3 >::type CovMatrix