CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 ;
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_; }
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;
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_; }
253  float caloComp() const { return pfSpecific().caloComp_; }
256  float segComp() const { return pfSpecific().segComp_; }
259  bool muonDecision() const { return pfSpecific().muonDecision_; }
260 
265  const reco::CandidatePtr leadNeutralCand() const;
267  const reco::CandidatePtr leadCand() const;
270  bool ExistSignalCands() const;
271  bool ExistIsolationCands() const;
294 
302 
305  size_t numberOfSourceCandidatePtrs() const ;
308 
309 
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_; }
320  bool hasSecondaryVertex() const { return pfEssential().hasSV_; }
322  float flightLengthSig() const { return pfEssential().flightLengthSig_; }
324  const reco::VertexRef& secondaryVertex() const { return pfEssential().sv_; }
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_; }
339 
355  float emFraction_MVA() const { return pfEssential().emFraction_; }
356 
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
int i
Definition: DBlmapReader.cc:9
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
const std::vector< reco::PFCandidatePtr > & isolationPFCands() const
const std::vector< std::string > availableJECSets() const
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
const pat::tau::TauCaloSpecific & caloSpecific() const
return CaloTau info or throw exception &#39;not CaloTau&#39;
reco::CandidatePtrVector isolationGammaCandPtrs_
Definition: Tau.h:529
reco::CaloTauTagInfoRef CaloTauTagInfoRef_
edm::RefProd< TauCollection > TauRefProd
Definition: Tau.h:39
pat::tau::TauPFEssential::CovMatrix flightLengthCov() const
const reco::CandidatePtr leadCand() const
return the PFCandidate if available (reference or embedded), or the PackedPFCandidate on miniAOD ...
const reco::TrackRefVector & isolationTracks() const
override the reco::BaseTau::isolationTracks method, to access the internal storage of the isolation t...
reco::CandidatePtrVector isolationChargedHadrCands() const
void embedIsolationPFCands()
method to store the isolation candidates internally
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
void embedIsolationPFGammaCands()
method to store the isolation gamma candidates internally
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
size_t numberOfSourceCandidatePtrs() const
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
const std::vector< reco::PFCandidatePtr > & isolationPFChargedHadrCands() const
float hcal3x3OverPLead() const
Definition: Tau.h:235
bool jecSetAvailable(const unsigned int &set) const
Definition: Tau.h:404
Slimmer of PAT Taus.
const pat::tau::TauPFEssential & pfEssential() const
const reco::PFCandidatePtr leadPFChargedHadrCand() const
reco::CaloTauTagInfoRef caloTauTagInfoRef() const
Definition: Tau.h:129
void embedLeadTrack()
method to store the leading track internally
const pat::tau::TauPFEssential::Point & secondaryVertexPos() const
Definition: Tau.h:325
void embedSignalPFChargedHadrCands()
method to store the signal charged hadrons candidates internally
std::vector< reco::PFCandidate > isolationPFGammaCands_
Definition: Tau.h:493
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
const reco::CandidatePtr leadNeutralCand() const
return the PFCandidate if available (reference or embedded), or the PackedPFCandidate on miniAOD ...
const std::vector< reco::PFRecoTauChargedHadron > & signalTauChargedHadronCandidates() const
std::vector< reco::GenJet > genJet_
Definition: Tau.h:498
void setDecayMode(int)
set decay mode
reco::CandidatePtr sourceCandidatePtr(size_type i) const
get the source candidate pointer with index i
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
float ip3d_Sig() const
void setTauIDs(const std::vector< IdPair > &ids)
Definition: Tau.h:384
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > signalPFCandsTransientPtrs_
Definition: Tau.h:474
float tauID(const std::string &name) const
bool embeddedIsolationPFNeutralHadrCands_
Definition: Tau.h:491
reco::CandidatePtrVector signalCands() const
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
int jecSet(const std::string &label) const
float phiphiMoment() const
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
reco::CandidatePtrVector signalGammaCands() const
const pat::tau::TauPFEssential::CovMatrix & primaryVertexCov() const
Definition: Tau.h:319
const std::vector< reco::PFRecoTauChargedHadron > & isolationTauChargedHadronCandidates() const
bool embeddedSignalPFGammaCands_
Definition: Tau.h:482
reco::CandidatePtrVector isolationNeutrHadrCands() const
float maximumHCALhitEt() const
Definition: Tau.h:153
unsigned int currentJECLevel_
Definition: Tau.h:520
float ip3d_error() const
Definition: Tau.h:328
edm::AtomicPtrCache< reco::TrackRefVector > isolationTracksTransientRefVector_
Definition: Tau.h:458
const std::vector< reco::PFCandidatePtr > & signalPFCands() const
reco::PFRecoTauChargedHadronRef leadTauChargedHadronCandidate() const
float hcalMaxOverPLead() const
Definition: Tau.h:232
void setIsolationGammaCands(const reco::CandidatePtrVector &ptrs)
Definition: Tau.h:301
void embedSignalPFCands()
method to store the signal candidates internally
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
std::vector< IdPair > tauIDs_
Definition: Tau.h:501
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
float etaetaMoment() const
std::vector< reco::PFCandidate > signalPFChargedHadrCands_
Definition: Tau.h:475
float ip3d() const
Definition: Tau.h:327
Tau()
default constructor
void setIsolationNeutralHadrCands(const reco::CandidatePtrVector &ptrs)
Definition: Tau.h:300
const pat::tau::TauPFEssential::Vector & flightLength() const
Definition: Tau.h:321
Analysis-level lepton class.
Definition: Lepton.h:30
void setIsolationChargedHadrCands(const reco::CandidatePtrVector &ptrs)
Definition: Tau.h:299
float ecalEnergyLeadChargedHadrCand() const
Definition: Tau.h:343
float isolationECALhitsEtSum() const
Definition: Tau.h:150
Tau correctedTauJet(const std::string &level, const std::string &set="") const
float jecFactor(const std::string &level, const std::string &set="") const
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
bool embeddedLeadPFCand_
Definition: Tau.h:466
bool hasSecondaryVertex() const
Definition: Tau.h:320
reco::CandidatePtrVector signalNeutrHadrCands() const
float phiAtEcalEntrance() const
return phiAtEcalEntrance
Definition: Tau.h:347
const reco::CandidatePtr leadChargedHadrCand() const
std::vector< pat::tau::TauPFEssential > pfEssential_
Definition: Tau.h:533
void embedIsolationPFNeutralHadrCands()
method to store the isolation neutral hadrons candidates internally
const std::vector< reco::RecoTauPiZero > & signalPiZeroCandidates() const
void embedLeadPFChargedHadrCand()
method to store the leading charged hadron candidate internally
std::string currentJECLevel() const
return the name of the current step of jet energy corrections
Definition: Tau.h:410
const reco::PFCandidatePtr leadPFCand() const
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
void embedIsolationPFChargedHadrCands()
method to store the isolation charged hadrons candidates internally
bool embeddedSignalPFNeutralHadrCands_
Definition: Tau.h:479
std::vector< reco::PFCandidate > isolationPFCands_
Definition: Tau.h:484
std::vector< reco::Track > isolationTracks_
Definition: Tau.h:457
void setGenJet(const reco::GenJetRef &ref)
set the matched GenJet
float ptLeadChargedCand() const
return pt from LeadChargedCand
Definition: Tau.h:353
bool isTauIDAvailable(const std::string &name) const
Returns true if a specific ID is available in this pat::Tau.
const std::vector< reco::PFCandidatePtr > & signalPFChargedHadrCands() const
float isolationPFChargedHadrCandsPtSum_
Definition: TauPFSpecific.h:44
void embedLeadPFNeutralCand()
method to store the leading neutral candidate internally
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
const std::vector< reco::PFCandidatePtr > & signalPFNeutrHadrCands() const
float leadTrackHCAL3x3hitsEtSum() const
Definition: Tau.h:135
const std::vector< reco::PFCandidatePtr > & isolationPFGammaCands() const
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
float etaphiMoment() const
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
void initializeJEC(unsigned int level, const unsigned int set=0)
initialize the jet to a given JEC level during creation starting from Uncorrected ...
const pat::tau::TauPFSpecific & pfSpecific() const
return PFTau info or throw exception &#39;not PFTau&#39;
void embedSignalPFNeutralHadrCands()
method to store the signal neutral hadrons candidates internally
reco::CandidatePtrVector signalNeutralHadrCandPtrs_
Definition: Tau.h:524
const reco::GenJet * genJet() const
return matched GenJet, built from the visible particles of a generated tau
float flightLengthSig() const
Definition: Tau.h:322
void addJECFactors(const TauJetCorrFactors &jec)
add more sets of energy correction factors
Definition: Tau.h:449
bool embeddedSignalPFCands_
Definition: Tau.h:473
float dxy_Sig() const
float tauID(const char *name) const
Definition: Tau.h:376
float leadingTrackNormChi2() const
return normalized chi2 of leading track
Definition: Tau.h:338
const reco::TrackRefVector & signalTracks() const
override the reco::BaseTau::signalTracks method, to access the internal storage of the signal tracks ...
reco::TrackRef leadTrack() const
override the reco::BaseTau::leadTrack method, to access the internal storage of the leading track ...
float segComp() const
Definition: Tau.h:256
void embedSignalTracks()
method to store the signal tracks internally
reco::CandidatePtrVector isolationGammaCands() const
bool isPFTau() const
Returns true if this pat::Tau was made from a reco::PFTau.
Definition: Tau.h:157
const std::vector< std::string > availableJECLevels(const int &set=0) const
bool embeddedIsolationTracks_
Definition: Tau.h:456
float leadTracksignedSipt() const
Definition: Tau.h:132
reco::CandidatePtrVector signalChargedHadrCands() const
tuple level
Definition: testEve_cfg.py:34
void embedSignalPFGammaCands()
method to store the signal gamma candidates internally
const std::vector< reco::RecoTauPiZero > & isolationPiZeroCandidates() const
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
bool ExistIsolationCands() const
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
bool ExistSignalCands() const
const std::vector< reco::PFCandidatePtr > & signalPFGammaCands() const
reco::CandidatePtrVector isolationCands() const
void embedIsolationTracks()
method to store the isolation tracks internally
virtual ~Tau()
destructor
virtual const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:99
reco::Candidate::LorentzVector p4Jet() const
std::vector< pat::tau::TauPFSpecific > pfSpecific_
holder for PFTau info, or empty vector if CaloTau
Definition: Tau.h:505
const std::vector< reco::PFCandidatePtr > & isolationPFNeutrHadrCands() const
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
void embedLeadPFCand()
float dxy_error() const
Definition: Tau.h:315
math::ErrorF< 3 >::type CovMatrix
const reco::PFCandidatePtr leadPFNeutralCand() const