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 
31 
33 
34 // Define typedefs for convenience
35 namespace pat {
36  class Tau;
37  typedef std::vector<Tau> TauCollection;
41 }
42 
43 namespace reco {
45  std::ostream& operator<<(std::ostream& out, const pat::Tau& obj);
46  // bool sortByPt(const CandidatePtrVector::const_iterator &lhs, const CandidatePtrVector::const_iterator &rhs) { return (*lhs)->pt() < (*rhs)->pt(); }
47 }
48 
49 // Class definition
50 namespace pat {
51 
52 
53  class PATTauSlimmer;
54 
55  class Tau : public Lepton<reco::BaseTau> {
59  friend class PATTauProducer;
60 
61  public:
62 
63  typedef std::pair<std::string, float> IdPair;
64 
66  Tau();
68  Tau(const reco::BaseTau & aTau);
70  Tau(const edm::RefToBase<reco::BaseTau> & aTauRef);
72  Tau(const edm::Ptr<reco::BaseTau> & aTauRef);
74  virtual ~Tau();
75 
77  virtual Tau * clone() const { return new Tau(*this); }
78 
79  // ---- methods for content embedding ----
81  const reco::TrackRefVector & isolationTracks() const;
83  reco::TrackRef leadTrack() const;
85  const reco::TrackRefVector & signalTracks() const;
87  void embedIsolationTracks();
89  void embedLeadTrack();
91  void embedSignalTracks();
94  void embedLeadPFCand();
100  void embedSignalPFCands();
108  void embedIsolationPFCands();
115 
116  // ---- matched GenJet methods ----
118  const reco::GenJet * genJet() const;
120  void setGenJet(const reco::GenJetRef & ref);
121 
122  // ---- CaloTau accessors (getters only) ----
124  bool isCaloTau() const { return !caloSpecific_.empty(); }
126  const pat::tau::TauCaloSpecific & caloSpecific() const ;
132  float leadTracksignedSipt() const { return caloSpecific().leadTracksignedSipt_; }
135  float leadTrackHCAL3x3hitsEtSum() const { return caloSpecific().leadTrackHCAL3x3hitsEtSum_; }
138  float leadTrackHCAL3x3hottesthitDEta() const { return caloSpecific().leadTrackHCAL3x3hottesthitDEta_; }
141  float signalTracksInvariantMass() const { return caloSpecific().signalTracksInvariantMass_; }
144  float TracksInvariantMass() const { return caloSpecific().TracksInvariantMass_; }
147  float isolationTracksPtSum() const { return caloSpecific().isolationTracksPtSum_; }
150  float isolationECALhitsEtSum() const { return caloSpecific().isolationECALhitsEtSum_; }
153  float maximumHCALhitEt() const { return caloSpecific().maximumHCALhitEt_; }
154 
155  // ---- PFTau accessors (getters only) ----
157  bool isPFTau() const { return !pfSpecific_.empty(); }
159  const pat::tau::TauPFSpecific & pfSpecific() const ;
160  const pat::tau::TauPFEssential & pfEssential() const;
163  const reco::PFJetRef & pfJetRef() const { return pfSpecific().pfJetRef_; }
166  reco::PFRecoTauChargedHadronRef leadTauChargedHadronCandidate() const;
169  const reco::PFCandidatePtr leadPFChargedHadrCand() const;
175  const reco::PFCandidatePtr leadPFNeutralCand() const;
178  const reco::PFCandidatePtr leadPFCand() const;
181  const std::vector<reco::PFCandidatePtr>& signalPFCands() const;
184  const std::vector<reco::PFCandidatePtr>& signalPFChargedHadrCands() const;
187  const std::vector<reco::PFCandidatePtr>& signalPFNeutrHadrCands() const;
190  const std::vector<reco::PFCandidatePtr>& signalPFGammaCands() const;
193  const std::vector<reco::PFRecoTauChargedHadron> & signalTauChargedHadronCandidates() const;
196  const std::vector<reco::RecoTauPiZero> & signalPiZeroCandidates() const;
199  const std::vector<reco::PFCandidatePtr>& isolationPFCands() const;
202  const std::vector<reco::PFCandidatePtr>& isolationPFChargedHadrCands() const;
205  const std::vector<reco::PFCandidatePtr>& isolationPFNeutrHadrCands() const;
208  const std::vector<reco::PFCandidatePtr>& isolationPFGammaCands() const;
211  const std::vector<reco::PFRecoTauChargedHadron> & isolationTauChargedHadronCandidates() const;
214  const std::vector<reco::RecoTauPiZero> & isolationPiZeroCandidates() const;
220  float isolationPFGammaCandsEtSum() const { return pfSpecific().isolationPFGammaCandsEtSum_; }
223  float maximumHCALPFClusterEt() const { return pfSpecific().maximumHCALPFClusterEt_; }
226  float emFraction() const { return pfSpecific().emFraction_; }
229  float hcalTotOverPLead() const { return pfSpecific().hcalTotOverPLead_; }
232  float hcalMaxOverPLead() const { return pfSpecific().hcalMaxOverPLead_; }
235  float hcal3x3OverPLead() const { return pfSpecific().hcal3x3OverPLead_; }
238  float ecalStripSumEOverPLead() const { return pfSpecific().ecalStripSumEOverPLead_; }
241  float bremsRecoveryEOverPLead() const { return pfSpecific().bremsRecoveryEOverPLead_; }
244  const reco::TrackRef & electronPreIDTrack() const { return pfSpecific().electronPreIDTrack_; }
247  float electronPreIDOutput() const { return pfSpecific().electronPreIDOutput_; }
250  bool electronPreIDDecision() const { return pfSpecific().electronPreIDDecision_; }
253  float caloComp() const { return pfSpecific().caloComp_; }
256  float segComp() const { return pfSpecific().segComp_; }
259  bool muonDecision() const { return pfSpecific().muonDecision_; }
260 
263  const reco::CandidatePtr leadChargedHadrCand() const;
265  const reco::CandidatePtr leadNeutralCand() const;
267  const reco::CandidatePtr leadCand() const;
270  bool ExistSignalCands() const;
271  bool ExistIsolationCands() const;
272  reco::CandidatePtrVector signalCands() const;
275  reco::CandidatePtrVector signalChargedHadrCands() const;
278  reco::CandidatePtrVector signalNeutrHadrCands() const;
281  reco::CandidatePtrVector signalGammaCands() const;
284  reco::CandidatePtrVector isolationCands() const;
287  reco::CandidatePtrVector isolationChargedHadrCands() const;
290  reco::CandidatePtrVector isolationNeutrHadrCands() const;
293  reco::CandidatePtrVector isolationGammaCands() const;
294 
296  void setSignalChargedHadrCands(const reco::CandidatePtrVector &ptrs) { signalChargedHadrCandPtrs_ = ptrs;}
297  void setSignalNeutralHadrCands(const reco::CandidatePtrVector &ptrs) { signalNeutralHadrCandPtrs_ = ptrs;}
298  void setSignalGammaCands(const reco::CandidatePtrVector &ptrs) { signalGammaCandPtrs_ = ptrs;}
299  void setIsolationChargedHadrCands(const reco::CandidatePtrVector &ptrs) { isolationChargedHadrCandPtrs_ = ptrs;}
300  void setIsolationNeutralHadrCands(const reco::CandidatePtrVector &ptrs) { isolationNeutralHadrCandPtrs_ = ptrs;}
301  void setIsolationGammaCands(const reco::CandidatePtrVector &ptrs) { isolationGammaCandPtrs_ = ptrs;}
302 
305  size_t numberOfSourceCandidatePtrs() const ;
307  reco::CandidatePtr sourceCandidatePtr( size_type i ) const;
308 
309 
313  const pat::tau::TauPFEssential::Point& dxy_PCA() const { return pfEssential().dxy_PCA_; }
314  float dxy() const { return pfEssential().dxy_; }
315  float dxy_error() const { return pfEssential().dxy_error_; }
316  float dxy_Sig() const;
317  const reco::VertexRef& primaryVertex() const { return pfEssential().pv_; }
318  const pat::tau::TauPFEssential::Point& primaryVertexPos() const { return pfEssential().pvPos_; }
319  const pat::tau::TauPFEssential::CovMatrix& primaryVertexCov() const { return pfEssential().pvCov_; }
320  bool hasSecondaryVertex() const { return pfEssential().hasSV_; }
321  const pat::tau::TauPFEssential::Vector& flightLength() const { return pfEssential().flightLength_; }
322  float flightLengthSig() const { return pfEssential().flightLengthSig_; }
323  pat::tau::TauPFEssential::CovMatrix flightLengthCov() const;
324  const reco::VertexRef& secondaryVertex() const { return pfEssential().sv_; }
325  const pat::tau::TauPFEssential::Point& secondaryVertexPos() const { return pfEssential().svPos_; }
326  const pat::tau::TauPFEssential::CovMatrix& secondaryVertexCov() const { return pfEssential().svCov_; }
327  float ip3d() const { return pfEssential().ip3d_; }
328  float ip3d_error() const { return pfEssential().ip3d_error_; }
329  float ip3d_Sig() const;
330 
334  float ecalEnergy() const { return pfEssential().ecalEnergy_; }
336  float hcalEnergy() const { return pfEssential().hcalEnergy_; }
338  float leadingTrackNormChi2() const { return pfEssential().leadingTrackNormChi2_; }
339 
343  float ecalEnergyLeadChargedHadrCand() const { return pfEssential().ecalEnergyLeadChargedHadrCand_; }
345  float hcalEnergyLeadChargedHadrCand() const { return pfEssential().hcalEnergyLeadChargedHadrCand_; }
347  float phiAtEcalEntrance() const { return pfEssential().phiAtEcalEntrance_; }
349  float etaAtEcalEntrance() const { return pfEssential().etaAtEcalEntrance_; }
353  float ptLeadChargedCand() const { return pfEssential().ptLeadChargedCand_; }
355  float emFraction_MVA() const { return pfEssential().emFraction_; }
356 
359  reco::Candidate::LorentzVector p4Jet() const;
360  float etaetaMoment() const;
361  float phiphiMoment() const;
362  float etaphiMoment() const;
363 
365  int decayMode() const { return pfEssential().decayMode_; }
367  void setDecayMode(int);
368 
369  // ---- methods for tau ID ----
375  float tauID(const std::string & name) const;
376  float tauID(const char* name ) const {return tauID( std::string(name) );}
378  bool isTauIDAvailable(const std::string & name) const;
381  const std::vector<IdPair> & tauIDs() const { return tauIDs_; }
384  void setTauIDs(const std::vector<IdPair> & ids) { tauIDs_ = ids; }
385 
387  friend std::ostream& reco::operator<<(std::ostream& out, const Tau& obj);
388 
391  const std::vector<std::string> availableJECSets() const;
392  // returns the available JEC Levels for a given jecSet
393  const std::vector<std::string> availableJECLevels(const int& set = 0) const;
394  // returns the available JEC Levels for a given jecSet
395  const std::vector<std::string> availableJECLevels(const std::string& set) const { return availableJECLevels(jecSet(set)); };
398  bool jecSetsAvailable() const { return !jec_.empty(); }
401  bool jecSetAvailable(const std::string& set) const {return (jecSet(set) >= 0); };
404  bool jecSetAvailable(const unsigned int& set) const {return (set < jec_.size()); };
407  return currentJECSet_<jec_.size() ? jec_.at(currentJECSet_).jecSet() : std::string("ERROR");
408  }
411  return currentJECSet_<jec_.size() ? jec_.at(currentJECSet_).jecLevel(currentJECLevel_) : std::string("ERROR");
412  }
415  float jecFactor(const std::string& level, const std::string& set = "") const;
418  float jecFactor(const unsigned int& level, const unsigned int& set = 0) const;
421  Tau correctedTauJet(const std::string& level, const std::string& set = "") const;
424  Tau correctedTauJet(const unsigned int& level, const unsigned int& set = 0) const;
427  const LorentzVector& correctedP4(const std::string& level, const std::string& set = "") const {
428  return correctedTauJet(level, set).p4();
429  }
432  const LorentzVector& correctedP4(const unsigned int& level, const unsigned int& set = 0) const {
433  return correctedTauJet(level, set).p4();
434  }
435 
436 
437  friend class PATTauSlimmer;
438 
439  protected:
440 
443  int jecSet(const std::string& label) const;
445  void currentJECSet(const unsigned int& set) { currentJECSet_=set; };
447  void currentJECLevel(const unsigned int& level) { currentJECLevel_=level; };
449  void addJECFactors(const TauJetCorrFactors& jec) {jec_.push_back(jec); };
451  void initializeJEC(unsigned int level, const unsigned int set = 0);
452 
453 
454  private:
455  // ---- for content embedding ----
457  std::vector<reco::Track> isolationTracks_;
460  std::vector<reco::Track> leadTrack_;
462  std::vector<reco::Track> signalTracks_;
464  // specific for PFTau
465  std::vector<reco::PFCandidate> leadPFCand_;
467  std::vector<reco::PFCandidate> leadPFChargedHadrCand_;
469  std::vector<reco::PFCandidate> leadPFNeutralCand_;
471 
472  std::vector<reco::PFCandidate> signalPFCands_;
475  std::vector<reco::PFCandidate> signalPFChargedHadrCands_;
478  std::vector<reco::PFCandidate> signalPFNeutralHadrCands_;
481  std::vector<reco::PFCandidate> signalPFGammaCands_;
484  std::vector<reco::PFCandidate> isolationPFCands_;
487  std::vector<reco::PFCandidate> isolationPFChargedHadrCands_;
490  std::vector<reco::PFCandidate> isolationPFNeutralHadrCands_;
493  std::vector<reco::PFCandidate> isolationPFGammaCands_;
496 
497  // ---- matched GenJet holder ----
498  std::vector<reco::GenJet> genJet_;
499 
500  // ---- tau ID's holder ----
501  std::vector<IdPair> tauIDs_;
502 
503  // ---- PFTau specific variables ----
505  std::vector<pat::tau::TauPFSpecific> pfSpecific_;
506 
507  // ---- CaloTau specific variables ----
509  std::vector<pat::tau::TauCaloSpecific> caloSpecific_;
510 
511  // ---- energy scale correction factors ----
512  // energy scale correction factors; the string carries a potential label if
513  // more then one set of correction factors is embedded. The label corresponds
514  // to the label of the jetCorrFactors module that has been embedded.
515  std::vector<pat::TauJetCorrFactors> jec_;
516  // currently applied set of jet energy correction factors (i.e. the index in
517  // jetEnergyCorrections_)
518  unsigned int currentJECSet_;
519  // currently applied jet energy correction level
520  unsigned int currentJECLevel_;
521 
522  // ---- references to packed pf candidates -----
526 
530 
531  // -- essential info to keep
532 
533  std::vector<pat::tau::TauPFEssential> pfEssential_;
534 
535 
536  };
537 }
538 
539 #endif
bool embeddedLeadPFNeutralCand_
Definition: Tau.h:470
virtual Tau * clone() const
required reimplementation of the Candidate&#39;s clone method
Definition: Tau.h:77
const std::vector< IdPair > & tauIDs() const
Definition: Tau.h:381
const LorentzVector & correctedP4(const std::string &level, const std::string &set="") const
Definition: Tau.h:427
edm::AtomicPtrCache< reco::TrackRefVector > signalTracksTransientRefVector_
Definition: Tau.h:463
embedIsolationPFNeutralHadrCands
embed in AOD externally stored isolation PFChargedHadronCandidates
float hcalTotOverPLead() const
Definition: Tau.h:229
void currentJECLevel(const unsigned int &level)
update the current JEC level; used by correctedJet
Definition: Tau.h:447
const LorentzVector & correctedP4(const unsigned int &level, const unsigned int &set=0) const
Definition: Tau.h:432
reco::CandidatePtrVector isolationGammaCandPtrs_
Definition: Tau.h:529
reco::CaloTauTagInfoRef CaloTauTagInfoRef_
edm::RefProd< TauCollection > TauRefProd
Definition: Tau.h:39
embedIsolationPFChargedHadrCands
embed in AOD externally stored isolation PFCandidates
float caloComp() const
Definition: Tau.h:253
size_t size_type
Definition: Candidate.h:30
bool embeddedSignalPFChargedHadrCands_
Definition: Tau.h:476
float isolationTracksPtSum() const
Definition: Tau.h:147
std::vector< reco::PFCandidate > leadPFNeutralCand_
Definition: Tau.h:469
float hcalEnergyLeadChargedHadrCand() const
return hcal energy from LeadChargedHadrCand
Definition: Tau.h:345
reco::TrackRef electronPreIDTrack_
Definition: TauPFSpecific.h:54
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > isolationPFChargedHadrCandsTransientPtrs_
Definition: Tau.h:489
float dxy() const
Definition: Tau.h:314
std::vector< reco::PFCandidate > signalPFNeutralHadrCands_
Definition: Tau.h:478
std::vector< reco::PFCandidate > signalPFCands_
Definition: Tau.h:472
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > signalPFNeutralHadrCandsTransientPtrs_
Definition: Tau.h:480
bool embeddedIsolationPFChargedHadrCands_
Definition: Tau.h:488
bool jecSetAvailable(const std::string &set) const
Definition: Tau.h:401
bool embeddedIsolationPFCands_
Definition: Tau.h:485
float hcal3x3OverPLead() const
Definition: Tau.h:235
bool jecSetAvailable(const unsigned int &set) const
Definition: Tau.h:404
Slimmer of PAT Taus.
reco::CaloTauTagInfoRef caloTauTagInfoRef() const
Definition: Tau.h:129
embedSignalPFGammaCands
embed in AOD externally stored signal PFNeutralHadronCandidates
const pat::tau::TauPFEssential::Point & secondaryVertexPos() const
Definition: Tau.h:325
std::vector< reco::PFCandidate > isolationPFGammaCands_
Definition: Tau.h:493
embedSignalPFCands
embed in AOD externally stored leading PFNeutral Candidate
std::vector< reco::PFCandidate > isolationPFNeutralHadrCands_
Definition: Tau.h:490
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > isolationPFGammaCandsTransientPtrs_
Definition: Tau.h:495
float TracksInvariantMass() const
Definition: Tau.h:144
std::vector< Tau > TauCollection
Definition: Tau.h:36
std::vector< reco::GenJet > genJet_
Definition: Tau.h:498
const reco::TrackRef & electronPreIDTrack() const
Definition: Tau.h:244
float leadTrackHCAL3x3hottesthitDEta() const
Definition: Tau.h:138
edm::Ref< TauCollection > TauRef
Definition: Tau.h:38
const std::vector< std::string > availableJECLevels(const std::string &set) const
Definition: Tau.h:395
void setTauIDs(const std::vector< IdPair > &ids)
Definition: Tau.h:384
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > signalPFCandsTransientPtrs_
Definition: Tau.h:474
bool embeddedIsolationPFNeutralHadrCands_
Definition: Tau.h:491
float leadPFChargedHadrCandsignedSipt_
Definition: TauPFSpecific.h:29
bool embeddedLeadTrack_
Definition: Tau.h:459
float isolationPFGammaCandsEtSum() const
Definition: Tau.h:220
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > signalPFGammaCandsTransientPtrs_
Definition: Tau.h:483
float hcalEnergy() const
return sum of hcal energies from signal candidates
Definition: Tau.h:336
edm::RefVector< TauCollection > TauRefVector
Definition: Tau.h:40
float maximumHCALPFClusterEt() const
Definition: Tau.h:223
float ecalEnergy() const
Definition: Tau.h:334
std::pair< std::string, float > IdPair
Definition: Tau.h:63
std::vector< reco::PFCandidate > leadPFCand_
Definition: Tau.h:465
const pat::tau::TauPFEssential::CovMatrix & primaryVertexCov() const
Definition: Tau.h:319
embedSignalPFNeutralHadrCands
embed in AOD externally stored signal PFChargedHadronCandidates
bool embeddedSignalPFGammaCands_
Definition: Tau.h:482
Definition: HeavyIon.h:7
float maximumHCALhitEt() const
Definition: Tau.h:153
unsigned int currentJECLevel_
Definition: Tau.h:520
float ip3d_error() const
Definition: Tau.h:328
static const int tauID
Definition: TopGenEvent.h:21
edm::AtomicPtrCache< reco::TrackRefVector > isolationTracksTransientRefVector_
Definition: Tau.h:458
float hcalMaxOverPLead() const
Definition: Tau.h:232
embedSignalTracks
embed in AOD externally stored leading track
void setIsolationGammaCands(const reco::CandidatePtrVector &ptrs)
Definition: Tau.h:301
void currentJECSet(const unsigned int &set)
update the current JEC set; used by correctedJet
Definition: Tau.h:445
float isolationPFChargedHadrCandsPtSum() const
Definition: Tau.h:217
reco::CandidatePtrVector isolationChargedHadrCandPtrs_
Definition: Tau.h:527
std::ostream & operator<<(std::ostream &, BeamSpot beam)
Definition: BeamSpot.cc:71
std::vector< reco::Track > signalTracks_
Definition: Tau.h:462
embedIsolationPFGammaCands
embed in AOD externally stored isolation PFNeutralHadronCandidates
std::vector< IdPair > tauIDs_
Definition: Tau.h:501
embedIsolationTracks
embed in AOD externally stored signal tracks
float signalTracksInvariantMass() const
Definition: Tau.h:141
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > signalPFChargedHadrCandsTransientPtrs_
Definition: Tau.h:477
bool embeddedIsolationPFGammaCands_
Definition: Tau.h:494
math::XYZVectorF Vector
const reco::VertexRef & primaryVertex() const
Definition: Tau.h:317
std::vector< reco::PFCandidate > signalPFChargedHadrCands_
Definition: Tau.h:475
float ip3d() const
Definition: Tau.h:327
void setIsolationNeutralHadrCands(const reco::CandidatePtrVector &ptrs)
Definition: Tau.h:300
const pat::tau::TauPFEssential::Vector & flightLength() const
Definition: Tau.h:321
void setIsolationChargedHadrCands(const reco::CandidatePtrVector &ptrs)
Definition: Tau.h:299
std::ostream & operator<<(std::ostream &out, const strbitset::index_type &r)
Definition: strbitset.cc:27
float ecalEnergyLeadChargedHadrCand() const
Definition: Tau.h:343
float isolationECALhitsEtSum() const
Definition: Tau.h:150
reco::CandidatePtrVector isolationNeutralHadrCandPtrs_
Definition: Tau.h:528
Jets made from MC generator particles.
Definition: GenJet.h:24
bool embeddedSignalTracks_
Definition: Tau.h:461
const reco::VertexRef & secondaryVertex() const
Definition: Tau.h:324
void setSignalChargedHadrCands(const reco::CandidatePtrVector &ptrs)
setters for the PtrVectors (for miniAOD)
Definition: Tau.h:296
embedLeadPFNeutralCand
embed in AOD externally stored leading PFChargedHadron candidate
bool embeddedLeadPFCand_
Definition: Tau.h:466
bool hasSecondaryVertex() const
Definition: Tau.h:320
float phiAtEcalEntrance() const
return phiAtEcalEntrance
Definition: Tau.h:347
std::vector< pat::tau::TauPFEssential > pfEssential_
Definition: Tau.h:533
std::string currentJECLevel() const
return the name of the current step of jet energy corrections
Definition: Tau.h:410
Analysis-level tau class.
Definition: Tau.h:55
const pat::tau::TauPFEssential::CovMatrix & secondaryVertexCov() const
Definition: Tau.h:326
bool embeddedLeadPFChargedHadrCand_
Definition: Tau.h:468
InputIterator leadPFCand(InputIterator begin, InputIterator end)
bool embeddedSignalPFNeutralHadrCands_
Definition: Tau.h:479
std::vector< reco::PFCandidate > isolationPFCands_
Definition: Tau.h:484
std::vector< reco::Track > isolationTracks_
Definition: Tau.h:457
float ptLeadChargedCand() const
return pt from LeadChargedCand
Definition: Tau.h:353
Definition: Tau.py:1
embedSignalPFChargedHadrCands
embed in AOD externally stored signal PFCandidates
float isolationPFChargedHadrCandsPtSum_
Definition: TauPFSpecific.h:44
const pat::tau::TauPFEssential::Point & dxy_PCA() const
Definition: Tau.h:313
float emFraction() const
Definition: Tau.h:226
std::vector< pat::tau::TauCaloSpecific > caloSpecific_
holder for CaloTau info, or empty vector if PFTau
Definition: Tau.h:509
void setSignalGammaCands(const reco::CandidatePtrVector &ptrs)
Definition: Tau.h:298
float ecalStripSumEOverPLead() const
Definition: Tau.h:238
bool isCaloTau() const
Returns true if this pat::Tau was made from a reco::CaloTau.
Definition: Tau.h:124
float leadTrackHCAL3x3hitsEtSum() const
Definition: Tau.h:135
reco::CandidatePtrVector signalGammaCandPtrs_
Definition: Tau.h:525
int decayMode() const
reconstructed tau decay mode (specific to PFTau)
Definition: Tau.h:365
const reco::PFJetRef & pfJetRef() const
Definition: Tau.h:163
float bremsRecoveryEOverPLead() const
Definition: Tau.h:241
std::vector< pat::TauJetCorrFactors > jec_
Definition: Tau.h:515
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > isolationPFNeutralHadrCandsTransientPtrs_
Definition: Tau.h:492
reco::PFJetRef pfJetRef_
Definition: TauPFSpecific.h:27
std::vector< reco::PFCandidate > signalPFGammaCands_
Definition: Tau.h:481
float leadPFChargedHadrCandsignedSipt() const
Definition: Tau.h:172
std::vector< reco::Track > leadTrack_
Definition: Tau.h:460
std::vector< reco::PFCandidate > isolationPFChargedHadrCands_
Definition: Tau.h:487
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:37
bool jecSetsAvailable() const
Definition: Tau.h:398
float emFraction_MVA() const
return emFraction_MVA
Definition: Tau.h:355
reco::CandidatePtrVector signalNeutralHadrCandPtrs_
Definition: Tau.h:524
float flightLengthSig() const
Definition: Tau.h:322
void addJECFactors(const TauJetCorrFactors &jec)
add more sets of energy correction factors
Definition: Tau.h:449
fixed size matrix
bool embeddedSignalPFCands_
Definition: Tau.h:473
float tauID(const char *name) const
Definition: Tau.h:376
float leadingTrackNormChi2() const
return normalized chi2 of leading track
Definition: Tau.h:338
float segComp() const
Definition: Tau.h:256
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:157
bool embeddedIsolationTracks_
Definition: Tau.h:456
float leadTracksignedSipt() const
Definition: Tau.h:132
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:349
float etaAtEcalEntranceLeadChargedCand() const
return etaAtEcalEntrance from LeadChargedCand
Definition: Tau.h:351
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > isolationPFCandsTransientPtrs_
Definition: Tau.h:486
virtual const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:99
std::vector< reco::PFCandidate > leadPFChargedHadrCand_
Definition: Tau.h:467
std::string currentJECSet() const
returns the label of the current set of jet energy corrections
Definition: Tau.h:406
std::vector< pat::tau::TauPFSpecific > pfSpecific_
holder for PFTau info, or empty vector if CaloTau
Definition: Tau.h:505
float electronPreIDOutput() const
Definition: Tau.h:247
reco::CandidatePtrVector signalChargedHadrCandPtrs_
Definition: Tau.h:523
unsigned int currentJECSet_
Definition: Tau.h:518
bool electronPreIDDecision() const
Definition: Tau.h:250
void setSignalNeutralHadrCands(const reco::CandidatePtrVector &ptrs)
Definition: Tau.h:297
bool muonDecision() const
Definition: Tau.h:259
Produces pat::Tau&#39;s.
const pat::tau::TauPFEssential::Point & primaryVertexPos() const
Definition: Tau.h:318
float dxy_error() const
Definition: Tau.h:315
math::ErrorF< 3 >::type CovMatrix