CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HPSPFTau.h
Go to the documentation of this file.
1 #ifndef DataFormats_L1TParticleFlow_HPSPFTau_H
2 #define DataFormats_L1TParticleFlow_HPSPFTau_H
3 
4 #include "DataFormats/L1TParticleFlow/interface/PFCandidate.h" // l1t::PFCandidate, l1t::PFCandidateRef, l1t::PFCandidateRefVector
6 #include "DataFormats/Candidate/interface/LeafCandidate.h" // reco::LeafCandidate
7 #include "DataFormats/Candidate/interface/Particle.h" // reco::Particle::LorentzVector
9 
10 #include <ostream>
11 
12 namespace l1t {
13 
14  class HPSPFTau : public reco::LeafCandidate {
15  public:
17  HPSPFTau();
18 
20  ~HPSPFTau() override;
21 
24  bool isJetSeeded() const { return seedJet_.isNonnull(); }
25 
27  const reco::CaloJetRef& seedJet() const { return seedJet_; }
29 
36 
40 
46  const l1t::PFCandidateRefVector& isoMuons() const { return isoMuons_; }
47 
53  const l1t::PFCandidateRefVector& sumMuons() const { return sumMuons_; }
54 
56 
58  Kind tauType() const { return tauType_; }
59 
60  const reco::Particle::LorentzVector& stripP4() const { return stripP4_; }
61 
63  float signalConeSize() const { return signalConeSize_; }
64  float isolationConeSize() const { return signalConeSize_; }
65 
66  float sumChargedIso() const { return sumChargedIso_; }
67  float sumNeutralIso() const { return sumNeutralIso_; }
68  float sumCombinedIso() const { return sumCombinedIso_; }
69  float sumChargedIsoPileup() const { return sumChargedIsoPileup_; }
70 
71  bool passTightIso() const { return passTightIso_; }
72  bool passMediumIso() const { return passMediumIso_; }
73  bool passLooseIso() const { return passLooseIso_; }
74  bool passVLooseIso() const { return passVLooseIso_; }
75 
76  bool passTightRelIso() const { return passTightRelIso_; }
77  bool passMediumRelIso() const { return passMediumRelIso_; }
78  bool passLooseRelIso() const { return passLooseRelIso_; }
79  bool passVLooseRelIso() const { return passVLooseRelIso_; }
80 
84 
87  }
90  }
94  }
97 
100  }
103 
106  }
112 
115  }
121 
123 
125 
127 
131 
136 
141 
146 
147  private:
151 
158 
162 
169 
176 
179 
181 
185 
189  float sumChargedIsoPileup_; // charged PFCands failing dz cut (maybe useful to correct neutral isolation for pile-up contributions by applying delta-beta corrections)
190 
195 
200  };
201 
202 } // namespace l1t
203 
205 std::ostream& operator<<(std::ostream& os, const l1t::HPSPFTau& l1PFTau);
206 
207 void printPFCand(ostream& os, const l1t::PFCandidate& l1PFCand, const l1t::TkPrimaryVertexRef& primaryVertex);
208 void printPFCand(ostream& os, const l1t::PFCandidate& l1PFCand, float primaryVertexZ);
209 
210 #endif
const l1t::PFCandidateRefVector & sumPhotons() const
Definition: HPSPFTau.h:52
void setPassMediumRelIso(bool passMediumRelIso)
Definition: HPSPFTau.h:143
l1t::PFCandidateRef seedChargedPFCand_
Definition: HPSPFTau.h:148
float isolationConeSize_
Definition: HPSPFTau.h:184
float sumCombinedIso_
Definition: HPSPFTau.h:188
float sumChargedIsoPileup_
Definition: HPSPFTau.h:189
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:238
void setSumChargedHadrons(l1t::PFCandidateRefVector sumChargedHadrons)
Definition: HPSPFTau.h:116
const l1t::PFCandidateRef & leadChargedPFCand() const
Definition: HPSPFTau.h:28
void setIsoElectrons(l1t::PFCandidateRefVector isoElectrons)
Definition: HPSPFTau.h:108
l1t::PFCandidateRefVector sumChargedHadrons_
Definition: HPSPFTau.h:171
const l1t::PFCandidateRefVector & signalNeutralHadrons() const
Definition: HPSPFTau.h:33
const l1t::PFCandidateRefVector & isoNeutralHadrons() const
Definition: HPSPFTau.h:44
void setLeadChargedPFCand(l1t::PFCandidateRef leadChargedPFCand)
Definition: HPSPFTau.h:83
bool passLooseRelIso_
Definition: HPSPFTau.h:198
void setPassVLooseRelIso(bool passVLooseRelIso)
Definition: HPSPFTau.h:145
void setPrimaryVertex(l1t::TkPrimaryVertexRef primaryVertex)
Definition: HPSPFTau.h:122
l1t::PFCandidateRefVector signalMuons_
Definition: HPSPFTau.h:157
l1t::TkPrimaryVertexRef primaryVertex_
Definition: HPSPFTau.h:177
const l1t::PFCandidateRefVector & stripPhotons() const
Definition: HPSPFTau.h:39
bool passVLooseIso_
Definition: HPSPFTau.h:194
l1t::PFCandidateRefVector signalAllL1PFCandidates_
Definition: HPSPFTau.h:152
void setSignalNeutralHadrons(l1t::PFCandidateRefVector signalNeutralHadrons)
Definition: HPSPFTau.h:92
const l1t::PFCandidateRef & seedChargedPFCand() const
Definition: HPSPFTau.h:26
float sumChargedIso_
Definition: HPSPFTau.h:186
l1t::PFCandidateRefVector signalNeutralHadrons_
Definition: HPSPFTau.h:155
bool passMediumRelIso_
Definition: HPSPFTau.h:197
void setIsoPhotons(l1t::PFCandidateRefVector isoPhotons)
Definition: HPSPFTau.h:110
const l1t::PFCandidateRefVector & isoPhotons() const
Definition: HPSPFTau.h:45
l1t::PFCandidateRefVector signalPhotons_
Definition: HPSPFTau.h:156
l1t::PFCandidateRefVector signalChargedHadrons_
Definition: HPSPFTau.h:153
void setIsoNeutralHadrons(l1t::PFCandidateRefVector isoNeutralHadrons)
Definition: HPSPFTau.h:109
void setStripAllL1PFCandidates(l1t::PFCandidateRefVector stripAllL1PFCandidates)
Definition: HPSPFTau.h:98
const l1t::PFCandidateRefVector & signalChargedHadrons() const
Definition: HPSPFTau.h:31
l1t::PFCandidateRefVector isoAllL1PFCandidates_
Definition: HPSPFTau.h:163
bool passLooseIso() const
Definition: HPSPFTau.h:73
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
void setSignalElectrons(l1t::PFCandidateRefVector signalElectrons)
Definition: HPSPFTau.h:91
l1t::PFCandidateRefVector signalElectrons_
Definition: HPSPFTau.h:154
l1t::PFCandidateRefVector sumElectrons_
Definition: HPSPFTau.h:172
bool passVLooseRelIso() const
Definition: HPSPFTau.h:79
const l1t::PFCandidateRefVector & isoElectrons() const
Definition: HPSPFTau.h:43
Kind tauType_
Definition: HPSPFTau.h:178
const l1t::TkPrimaryVertexRef & primaryVertex() const
Definition: HPSPFTau.h:55
const l1t::PFCandidateRefVector & signalElectrons() const
Definition: HPSPFTau.h:32
const l1t::PFCandidateRefVector & sumNeutralHadrons() const
Definition: HPSPFTau.h:51
bool passLooseRelIso() const
Definition: HPSPFTau.h:78
float signalConeSize_
Definition: HPSPFTau.h:183
l1t::PFCandidateRefVector sumAllL1PFCandidates_
Definition: HPSPFTau.h:170
float sumAllL1PFCandidatesPt_
Definition: HPSPFTau.h:182
Kind tauType() const
Definition: HPSPFTau.h:58
~HPSPFTau() override
destructor
Definition: HPSPFTau.cc:21
bool passTightIso() const
Definition: HPSPFTau.h:71
void setSumChargedIso(float sumChargedIso)
Definition: HPSPFTau.h:132
void setStripElectrons(l1t::PFCandidateRefVector stripElectrons)
Definition: HPSPFTau.h:101
void setSumElectrons(l1t::PFCandidateRefVector sumElectrons)
Definition: HPSPFTau.h:117
l1t::PFCandidateRefVector sumPhotons_
Definition: HPSPFTau.h:174
void setSumNeutralHadrons(l1t::PFCandidateRefVector sumNeutralHadrons)
Definition: HPSPFTau.h:118
float sumCombinedIso() const
Definition: HPSPFTau.h:68
void setIsoMuons(l1t::PFCandidateRefVector isoMuons)
Definition: HPSPFTau.h:111
l1t::PFCandidateRefVector stripPhotons_
Definition: HPSPFTau.h:161
void setIsoChargedHadrons(l1t::PFCandidateRefVector isoChargedHadrons)
Definition: HPSPFTau.h:107
reco::Particle::LorentzVector stripP4_
Definition: HPSPFTau.h:180
l1t::PFCandidateRefVector isoChargedHadrons_
Definition: HPSPFTau.h:164
l1t::PFCandidateRefVector isoElectrons_
Definition: HPSPFTau.h:165
reco::CaloJetRef seedJet_
Definition: HPSPFTau.h:149
void setTauType(Kind tauType)
Definition: HPSPFTau.h:124
bool passMediumRelIso() const
Definition: HPSPFTau.h:77
const reco::CaloJetRef & seedJet() const
Definition: HPSPFTau.h:27
void setPassTightIso(bool passTightIso)
Definition: HPSPFTau.h:137
l1t::PFCandidateRef leadChargedPFCand_
Definition: HPSPFTau.h:150
l1t::PFCandidateRefVector isoNeutralHadrons_
Definition: HPSPFTau.h:166
bool passVLooseIso() const
Definition: HPSPFTau.h:74
void setSumChargedIsoPileup(float sumChargedIsoPileup)
Definition: HPSPFTau.h:135
const l1t::PFCandidateRefVector & stripElectrons() const
Definition: HPSPFTau.h:38
void setSumCombinedIso(float sumCombinedIso)
Definition: HPSPFTau.h:134
bool passTightRelIso() const
Definition: HPSPFTau.h:76
l1t::PFCandidateRefVector stripElectrons_
Definition: HPSPFTau.h:160
float signalConeSize() const
Definition: HPSPFTau.h:63
const l1t::PFCandidateRefVector & isoAllL1PFCandidates() const
Definition: HPSPFTau.h:41
const l1t::PFCandidateRefVector & stripAllL1PFCandidates() const
Definition: HPSPFTau.h:37
void setSumMuons(l1t::PFCandidateRefVector sumMuons)
Definition: HPSPFTau.h:120
void setIsoAllL1PFCandidates(l1t::PFCandidateRefVector isoAllL1PFCandidates)
Definition: HPSPFTau.h:104
void setPassVLooseIso(bool passVLooseIso)
Definition: HPSPFTau.h:140
bool passTightRelIso_
Definition: HPSPFTau.h:196
void setSignalChargedHadrons(l1t::PFCandidateRefVector signalChargedHadrons)
Definition: HPSPFTau.h:88
void setStripP4(reco::Particle::LorentzVector &stripP4)
Definition: HPSPFTau.h:126
void setSumPhotons(l1t::PFCandidateRefVector sumPhotons)
Definition: HPSPFTau.h:119
l1t::PFCandidateRefVector sumNeutralHadrons_
Definition: HPSPFTau.h:173
void setPassTightRelIso(bool passTightRelIso)
Definition: HPSPFTau.h:142
l1t::PFCandidateRefVector isoPhotons_
Definition: HPSPFTau.h:167
void setSeedChargedPFCand(l1t::PFCandidateRef seedChargedPFCand)
Definition: HPSPFTau.h:81
void setPassMediumIso(bool passMediumIso)
Definition: HPSPFTau.h:138
bool passTightIso_
Definition: HPSPFTau.h:191
const l1t::PFCandidateRefVector & isoChargedHadrons() const
Definition: HPSPFTau.h:42
HPSPFTau()
default constructor
Definition: HPSPFTau.cc:5
float sumAllL1PFCandidatesPt() const
Definition: HPSPFTau.h:62
const l1t::PFCandidateRefVector & signalMuons() const
Definition: HPSPFTau.h:35
void setSignalPhotons(l1t::PFCandidateRefVector signalPhotons)
Definition: HPSPFTau.h:95
void setSignalAllL1PFCandidates(l1t::PFCandidateRefVector signalAllL1PFCandidates)
Definition: HPSPFTau.h:85
const l1t::PFCandidateRefVector & sumMuons() const
Definition: HPSPFTau.h:53
void setSumAllL1PFCandidatesPt(float sumAllL1PFCandidatesPt)
Definition: HPSPFTau.h:128
void setPassLooseIso(bool passLooseIso)
Definition: HPSPFTau.h:139
const l1t::PFCandidateRefVector & signalAllL1PFCandidates() const
Definition: HPSPFTau.h:30
void setStripPhotons(l1t::PFCandidateRefVector stripPhotons)
Definition: HPSPFTau.h:102
void setSeedJet(reco::CaloJetRef seedJet)
Definition: HPSPFTau.h:82
bool passMediumIso_
Definition: HPSPFTau.h:192
const reco::Particle::LorentzVector & stripP4() const
Definition: HPSPFTau.h:60
l1t::PFCandidateRefVector isoMuons_
Definition: HPSPFTau.h:168
float sumNeutralIso() const
Definition: HPSPFTau.h:67
const l1t::PFCandidateRefVector & isoMuons() const
Definition: HPSPFTau.h:46
float sumChargedIsoPileup() const
Definition: HPSPFTau.h:69
bool passVLooseRelIso_
Definition: HPSPFTau.h:199
void setSignalMuons(l1t::PFCandidateRefVector signalMuons)
Definition: HPSPFTau.h:96
float sumNeutralIso_
Definition: HPSPFTau.h:187
l1t::PFCandidateRefVector sumMuons_
Definition: HPSPFTau.h:175
bool passLooseIso_
Definition: HPSPFTau.h:193
const l1t::PFCandidateRefVector & signalPhotons() const
Definition: HPSPFTau.h:34
const l1t::PFCandidateRefVector & sumChargedHadrons() const
Definition: HPSPFTau.h:49
float sumChargedIso() const
Definition: HPSPFTau.h:66
bool passMediumIso() const
Definition: HPSPFTau.h:72
void setSignalConeSize(float signalConeSize)
Definition: HPSPFTau.h:129
l1t::PFCandidateRefVector stripAllL1PFCandidates_
Definition: HPSPFTau.h:159
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Particle.h:21
void printPFCand(ostream &os, const l1t::PFCandidate &l1PFCand, const l1t::TkPrimaryVertexRef &primaryVertex)
Definition: HPSPFTau.cc:63
const l1t::PFCandidateRefVector & sumAllL1PFCandidates() const
Definition: HPSPFTau.h:48
void setSumNeutralIso(float sumNeutralIso)
Definition: HPSPFTau.h:133
void setPassLooseRelIso(bool passLooseRelIso)
Definition: HPSPFTau.h:144
float isolationConeSize() const
Definition: HPSPFTau.h:64
void setSumAllL1PFCandidates(l1t::PFCandidateRefVector sumAllL1PFCandidates)
Definition: HPSPFTau.h:113
void setisolationConeSize(float isolationConeSize)
Definition: HPSPFTau.h:130
bool isJetSeeded() const
Definition: HPSPFTau.h:24
bool isChargedPFCandSeeded() const
accessor functions for reco level quantities
Definition: HPSPFTau.h:23
const l1t::PFCandidateRefVector & sumElectrons() const
Definition: HPSPFTau.h:50