CMS 3D CMS Logo

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 
55  const l1t::VertexWordRef& primaryVertex() const { return primaryVertex_; }
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  float z() const { return z_; }
71 
72  bool passTightIso() const { return passTightIso_; }
73  bool passMediumIso() const { return passMediumIso_; }
74  bool passLooseIso() const { return passLooseIso_; }
75  bool passVLooseIso() const { return passVLooseIso_; }
76 
77  bool passTightRelIso() const { return passTightRelIso_; }
78  bool passMediumRelIso() const { return passMediumRelIso_; }
79  bool passLooseRelIso() const { return passLooseRelIso_; }
80  bool passVLooseRelIso() const { return passVLooseRelIso_; }
81 
85 
88  }
91  }
95  }
98 
101  }
104 
107  }
113 
116  }
122 
124 
126 
128 
132 
137  void setZ(float Z) { z_ = Z; }
138 
143 
148 
149  private:
153 
160 
164 
171 
178 
181 
183 
187 
191  float sumChargedIsoPileup_; // charged PFCands failing dz cut (maybe useful to correct neutral isolation for pile-up contributions by applying delta-beta corrections)
192 
197 
202 
203  float z_;
204  };
205 
206 } // namespace l1t
207 
209 std::ostream& operator<<(std::ostream& os, const l1t::HPSPFTau& l1PFTau);
210 
211 void printPFCand(ostream& os, const l1t::PFCandidate& l1PFCand, const l1t::VertexWordRef& primaryVertex);
212 void printPFCand(ostream& os, const l1t::PFCandidate& l1PFCand, float primaryVertexZ);
213 
214 #endif
std::ostream & operator<<(std::ostream &os, const l1t::HPSPFTau &l1PFTau)
print to stream
const l1t::PFCandidateRefVector & isoAllL1PFCandidates() const
Definition: HPSPFTau.h:41
const reco::CaloJetRef & seedJet() const
Definition: HPSPFTau.h:27
float sumAllL1PFCandidatesPt() const
Definition: HPSPFTau.h:62
void setPassMediumRelIso(bool passMediumRelIso)
Definition: HPSPFTau.h:145
l1t::PFCandidateRef seedChargedPFCand_
Definition: HPSPFTau.h:150
float isolationConeSize_
Definition: HPSPFTau.h:186
float sumCombinedIso_
Definition: HPSPFTau.h:190
float sumChargedIsoPileup_
Definition: HPSPFTau.h:191
void setSumChargedHadrons(l1t::PFCandidateRefVector sumChargedHadrons)
Definition: HPSPFTau.h:117
void setIsoElectrons(l1t::PFCandidateRefVector isoElectrons)
Definition: HPSPFTau.h:109
const l1t::PFCandidateRefVector & signalAllL1PFCandidates() const
Definition: HPSPFTau.h:30
bool passVLooseIso() const
Definition: HPSPFTau.h:75
l1t::PFCandidateRefVector sumChargedHadrons_
Definition: HPSPFTau.h:173
void setLeadChargedPFCand(l1t::PFCandidateRef leadChargedPFCand)
Definition: HPSPFTau.h:84
bool passLooseRelIso_
Definition: HPSPFTau.h:200
void setPassVLooseRelIso(bool passVLooseRelIso)
Definition: HPSPFTau.h:147
float sumChargedIsoPileup() const
Definition: HPSPFTau.h:69
l1t::PFCandidateRefVector signalMuons_
Definition: HPSPFTau.h:159
bool passLooseRelIso() const
Definition: HPSPFTau.h:79
bool passVLooseIso_
Definition: HPSPFTau.h:196
const l1t::PFCandidateRefVector & isoMuons() const
Definition: HPSPFTau.h:46
l1t::PFCandidateRefVector signalAllL1PFCandidates_
Definition: HPSPFTau.h:154
void setSignalNeutralHadrons(l1t::PFCandidateRefVector signalNeutralHadrons)
Definition: HPSPFTau.h:93
float sumChargedIso_
Definition: HPSPFTau.h:188
l1t::PFCandidateRefVector signalNeutralHadrons_
Definition: HPSPFTau.h:157
void setPrimaryVertex(l1t::VertexWordRef primaryVertex)
Definition: HPSPFTau.h:123
const l1t::PFCandidateRefVector & isoPhotons() const
Definition: HPSPFTau.h:45
bool passMediumRelIso_
Definition: HPSPFTau.h:199
void setZ(float Z)
Definition: HPSPFTau.h:137
void setIsoPhotons(l1t::PFCandidateRefVector isoPhotons)
Definition: HPSPFTau.h:111
const l1t::PFCandidateRefVector & signalPhotons() const
Definition: HPSPFTau.h:34
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:238
l1t::PFCandidateRefVector signalPhotons_
Definition: HPSPFTau.h:158
const l1t::PFCandidateRefVector & sumElectrons() const
Definition: HPSPFTau.h:50
l1t::PFCandidateRefVector signalChargedHadrons_
Definition: HPSPFTau.h:155
delete x;
Definition: CaloConfig.h:22
void setIsoNeutralHadrons(l1t::PFCandidateRefVector isoNeutralHadrons)
Definition: HPSPFTau.h:110
void setStripAllL1PFCandidates(l1t::PFCandidateRefVector stripAllL1PFCandidates)
Definition: HPSPFTau.h:99
bool passTightIso() const
Definition: HPSPFTau.h:72
bool passMediumIso() const
Definition: HPSPFTau.h:73
l1t::PFCandidateRefVector isoAllL1PFCandidates_
Definition: HPSPFTau.h:165
const l1t::PFCandidateRefVector & sumAllL1PFCandidates() const
Definition: HPSPFTau.h:48
void setSignalElectrons(l1t::PFCandidateRefVector signalElectrons)
Definition: HPSPFTau.h:92
l1t::PFCandidateRefVector signalElectrons_
Definition: HPSPFTau.h:156
l1t::PFCandidateRefVector sumElectrons_
Definition: HPSPFTau.h:174
Kind tauType_
Definition: HPSPFTau.h:180
float signalConeSize_
Definition: HPSPFTau.h:185
const l1t::PFCandidateRefVector & signalElectrons() const
Definition: HPSPFTau.h:32
float sumChargedIso() const
Definition: HPSPFTau.h:66
l1t::PFCandidateRefVector sumAllL1PFCandidates_
Definition: HPSPFTau.h:172
float sumAllL1PFCandidatesPt_
Definition: HPSPFTau.h:184
float z() const
Definition: HPSPFTau.h:70
float signalConeSize() const
Definition: HPSPFTau.h:63
~HPSPFTau() override
destructor
Definition: HPSPFTau.cc:21
void setSumChargedIso(float sumChargedIso)
Definition: HPSPFTau.h:133
void setStripElectrons(l1t::PFCandidateRefVector stripElectrons)
Definition: HPSPFTau.h:102
void setSumElectrons(l1t::PFCandidateRefVector sumElectrons)
Definition: HPSPFTau.h:118
l1t::PFCandidateRefVector sumPhotons_
Definition: HPSPFTau.h:176
void setSumNeutralHadrons(l1t::PFCandidateRefVector sumNeutralHadrons)
Definition: HPSPFTau.h:119
const l1t::PFCandidateRefVector & sumChargedHadrons() const
Definition: HPSPFTau.h:49
void setIsoMuons(l1t::PFCandidateRefVector isoMuons)
Definition: HPSPFTau.h:112
l1t::PFCandidateRefVector stripPhotons_
Definition: HPSPFTau.h:163
void setIsoChargedHadrons(l1t::PFCandidateRefVector isoChargedHadrons)
Definition: HPSPFTau.h:108
reco::Particle::LorentzVector stripP4_
Definition: HPSPFTau.h:182
l1t::PFCandidateRefVector isoChargedHadrons_
Definition: HPSPFTau.h:166
l1t::PFCandidateRefVector isoElectrons_
Definition: HPSPFTau.h:167
const l1t::PFCandidateRefVector & isoNeutralHadrons() const
Definition: HPSPFTau.h:44
bool passVLooseRelIso() const
Definition: HPSPFTau.h:80
const l1t::PFCandidateRefVector & stripPhotons() const
Definition: HPSPFTau.h:39
reco::CaloJetRef seedJet_
Definition: HPSPFTau.h:151
const l1t::PFCandidateRefVector & stripElectrons() const
Definition: HPSPFTau.h:38
void setTauType(Kind tauType)
Definition: HPSPFTau.h:125
void setPassTightIso(bool passTightIso)
Definition: HPSPFTau.h:139
l1t::PFCandidateRef leadChargedPFCand_
Definition: HPSPFTau.h:152
l1t::PFCandidateRefVector isoNeutralHadrons_
Definition: HPSPFTau.h:168
const l1t::PFCandidateRefVector & signalMuons() const
Definition: HPSPFTau.h:35
bool passLooseIso() const
Definition: HPSPFTau.h:74
void setSumChargedIsoPileup(float sumChargedIsoPileup)
Definition: HPSPFTau.h:136
void setSumCombinedIso(float sumCombinedIso)
Definition: HPSPFTau.h:135
bool passMediumRelIso() const
Definition: HPSPFTau.h:78
l1t::PFCandidateRefVector stripElectrons_
Definition: HPSPFTau.h:162
void setSumMuons(l1t::PFCandidateRefVector sumMuons)
Definition: HPSPFTau.h:121
void setIsoAllL1PFCandidates(l1t::PFCandidateRefVector isoAllL1PFCandidates)
Definition: HPSPFTau.h:105
void setPassVLooseIso(bool passVLooseIso)
Definition: HPSPFTau.h:142
const l1t::PFCandidateRefVector & signalNeutralHadrons() const
Definition: HPSPFTau.h:33
bool passTightRelIso_
Definition: HPSPFTau.h:198
void setSignalChargedHadrons(l1t::PFCandidateRefVector signalChargedHadrons)
Definition: HPSPFTau.h:89
void setStripP4(reco::Particle::LorentzVector &stripP4)
Definition: HPSPFTau.h:127
float sumCombinedIso() const
Definition: HPSPFTau.h:68
void setSumPhotons(l1t::PFCandidateRefVector sumPhotons)
Definition: HPSPFTau.h:120
l1t::PFCandidateRefVector sumNeutralHadrons_
Definition: HPSPFTau.h:175
void setPassTightRelIso(bool passTightRelIso)
Definition: HPSPFTau.h:144
l1t::PFCandidateRefVector isoPhotons_
Definition: HPSPFTau.h:169
void setSeedChargedPFCand(l1t::PFCandidateRef seedChargedPFCand)
Definition: HPSPFTau.h:82
void printPFCand(ostream &os, const l1t::PFCandidate &l1PFCand, const l1t::VertexWordRef &primaryVertex)
Definition: HPSPFTau.cc:63
void setPassMediumIso(bool passMediumIso)
Definition: HPSPFTau.h:140
bool passTightIso_
Definition: HPSPFTau.h:193
HPSPFTau()
default constructor
Definition: HPSPFTau.cc:5
const l1t::PFCandidateRefVector & sumPhotons() const
Definition: HPSPFTau.h:52
void setSignalPhotons(l1t::PFCandidateRefVector signalPhotons)
Definition: HPSPFTau.h:96
void setSignalAllL1PFCandidates(l1t::PFCandidateRefVector signalAllL1PFCandidates)
Definition: HPSPFTau.h:86
void setSumAllL1PFCandidatesPt(float sumAllL1PFCandidatesPt)
Definition: HPSPFTau.h:129
const l1t::PFCandidateRefVector & signalChargedHadrons() const
Definition: HPSPFTau.h:31
void setPassLooseIso(bool passLooseIso)
Definition: HPSPFTau.h:141
void setStripPhotons(l1t::PFCandidateRefVector stripPhotons)
Definition: HPSPFTau.h:103
float sumNeutralIso() const
Definition: HPSPFTau.h:67
bool isJetSeeded() const
Definition: HPSPFTau.h:24
void setSeedJet(reco::CaloJetRef seedJet)
Definition: HPSPFTau.h:83
bool passMediumIso_
Definition: HPSPFTau.h:194
l1t::PFCandidateRefVector isoMuons_
Definition: HPSPFTau.h:170
const l1t::PFCandidateRefVector & stripAllL1PFCandidates() const
Definition: HPSPFTau.h:37
const reco::Particle::LorentzVector & stripP4() const
Definition: HPSPFTau.h:60
float isolationConeSize() const
Definition: HPSPFTau.h:64
const l1t::PFCandidateRefVector & isoChargedHadrons() const
Definition: HPSPFTau.h:42
l1t::VertexWordRef primaryVertex_
Definition: HPSPFTau.h:179
bool passVLooseRelIso_
Definition: HPSPFTau.h:201
void setSignalMuons(l1t::PFCandidateRefVector signalMuons)
Definition: HPSPFTau.h:97
bool isChargedPFCandSeeded() const
accessor functions for reco level quantities
Definition: HPSPFTau.h:23
float sumNeutralIso_
Definition: HPSPFTau.h:189
l1t::PFCandidateRefVector sumMuons_
Definition: HPSPFTau.h:177
bool passLooseIso_
Definition: HPSPFTau.h:195
bool passTightRelIso() const
Definition: HPSPFTau.h:77
const l1t::PFCandidateRef & leadChargedPFCand() const
Definition: HPSPFTau.h:28
Kind tauType() const
Definition: HPSPFTau.h:58
const l1t::PFCandidateRefVector & isoElectrons() const
Definition: HPSPFTau.h:43
const l1t::PFCandidateRefVector & sumMuons() const
Definition: HPSPFTau.h:53
void setSignalConeSize(float signalConeSize)
Definition: HPSPFTau.h:130
primaryVertex
hltOfflineBeamSpot for HLTMON
l1t::PFCandidateRefVector stripAllL1PFCandidates_
Definition: HPSPFTau.h:161
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Particle.h:21
const l1t::VertexWordRef & primaryVertex() const
Definition: HPSPFTau.h:55
void setSumNeutralIso(float sumNeutralIso)
Definition: HPSPFTau.h:134
const l1t::PFCandidateRefVector & sumNeutralHadrons() const
Definition: HPSPFTau.h:51
void setPassLooseRelIso(bool passLooseRelIso)
Definition: HPSPFTau.h:146
void setSumAllL1PFCandidates(l1t::PFCandidateRefVector sumAllL1PFCandidates)
Definition: HPSPFTau.h:114
void setisolationConeSize(float isolationConeSize)
Definition: HPSPFTau.h:131
const l1t::PFCandidateRef & seedChargedPFCand() const
Definition: HPSPFTau.h:26