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 
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
l1t::HPSPFTau::passMediumIso
bool passMediumIso() const
Definition: HPSPFTau.h:72
PFCandidate.h
l1t::HPSPFTau::sumNeutralIso
float sumNeutralIso() const
Definition: HPSPFTau.h:67
CaloJet.h
l1t::HPSPFTau::passLooseIso
bool passLooseIso() const
Definition: HPSPFTau.h:73
l1t::HPSPFTau::stripAllL1PFCandidates_
l1t::PFCandidateRefVector stripAllL1PFCandidates_
Definition: HPSPFTau.h:159
l1t::HPSPFTau::isoMuons_
l1t::PFCandidateRefVector isoMuons_
Definition: HPSPFTau.h:168
TkPrimaryVertex.h
l1t::HPSPFTau::setSumAllL1PFCandidatesPt
void setSumAllL1PFCandidatesPt(float sumAllL1PFCandidatesPt)
Definition: HPSPFTau.h:128
l1t::HPSPFTau::passLooseRelIso_
bool passLooseRelIso_
Definition: HPSPFTau.h:198
l1t::HPSPFTau::passLooseRelIso
bool passLooseRelIso() const
Definition: HPSPFTau.h:78
l1t::HPSPFTau::setLeadChargedPFCand
void setLeadChargedPFCand(l1t::PFCandidateRef leadChargedPFCand)
Definition: HPSPFTau.h:83
l1t::HPSPFTau::isoMuons
const l1t::PFCandidateRefVector & isoMuons() const
Definition: HPSPFTau.h:46
l1t::HPSPFTau::isoElectrons_
l1t::PFCandidateRefVector isoElectrons_
Definition: HPSPFTau.h:165
l1t::HPSPFTau::signalNeutralHadrons_
l1t::PFCandidateRefVector signalNeutralHadrons_
Definition: HPSPFTau.h:155
l1t::HPSPFTau::sumChargedHadrons
const l1t::PFCandidateRefVector & sumChargedHadrons() const
Definition: HPSPFTau.h:49
l1t::HPSPFTau::signalMuons_
l1t::PFCandidateRefVector signalMuons_
Definition: HPSPFTau.h:157
l1t::HPSPFTau::primaryVertex_
l1t::TkPrimaryVertexRef primaryVertex_
Definition: HPSPFTau.h:177
l1t::HPSPFTau::setSumChargedIsoPileup
void setSumChargedIsoPileup(float sumChargedIsoPileup)
Definition: HPSPFTau.h:135
l1t::HPSPFTau::sumAllL1PFCandidatesPt_
float sumAllL1PFCandidatesPt_
Definition: HPSPFTau.h:182
l1t::HPSPFTau::setPassMediumRelIso
void setPassMediumRelIso(bool passMediumRelIso)
Definition: HPSPFTau.h:143
l1t::HPSPFTau::isolationConeSize_
float isolationConeSize_
Definition: HPSPFTau.h:184
l1t::HPSPFTau::sumChargedIso_
float sumChargedIso_
Definition: HPSPFTau.h:186
l1t::HPSPFTau::stripP4_
reco::Particle::LorentzVector stripP4_
Definition: HPSPFTau.h:180
l1t::HPSPFTau::signalChargedHadrons_
l1t::PFCandidateRefVector signalChargedHadrons_
Definition: HPSPFTau.h:153
l1t::HPSPFTau::setIsoAllL1PFCandidates
void setIsoAllL1PFCandidates(l1t::PFCandidateRefVector isoAllL1PFCandidates)
Definition: HPSPFTau.h:104
l1t::HPSPFTau::kThreeProng1Pi0
Definition: HPSPFTau.h:57
l1t::HPSPFTau::Kind
Kind
Definition: HPSPFTau.h:57
l1t::HPSPFTau::stripAllL1PFCandidates
const l1t::PFCandidateRefVector & stripAllL1PFCandidates() const
Definition: HPSPFTau.h:37
l1t::HPSPFTau::setIsoElectrons
void setIsoElectrons(l1t::PFCandidateRefVector isoElectrons)
Definition: HPSPFTau.h:108
l1t::HPSPFTau::stripElectrons_
l1t::PFCandidateRefVector stripElectrons_
Definition: HPSPFTau.h:160
l1t::HPSPFTau::setIsoPhotons
void setIsoPhotons(l1t::PFCandidateRefVector isoPhotons)
Definition: HPSPFTau.h:110
l1t::HPSPFTau::setSignalChargedHadrons
void setSignalChargedHadrons(l1t::PFCandidateRefVector signalChargedHadrons)
Definition: HPSPFTau.h:88
l1t::HPSPFTau::setSumPhotons
void setSumPhotons(l1t::PFCandidateRefVector sumPhotons)
Definition: HPSPFTau.h:119
l1t::HPSPFTau::isoNeutralHadrons
const l1t::PFCandidateRefVector & isoNeutralHadrons() const
Definition: HPSPFTau.h:44
l1t::HPSPFTau::passVLooseIso
bool passVLooseIso() const
Definition: HPSPFTau.h:74
operator<<
std::ostream & operator<<(std::ostream &os, const l1t::HPSPFTau &l1PFTau)
print to stream
l1t::HPSPFTau::sumElectrons
const l1t::PFCandidateRefVector & sumElectrons() const
Definition: HPSPFTau.h:50
l1t::HPSPFTau::sumElectrons_
l1t::PFCandidateRefVector sumElectrons_
Definition: HPSPFTau.h:172
l1t::HPSPFTau::setPrimaryVertex
void setPrimaryVertex(l1t::TkPrimaryVertexRef primaryVertex)
Definition: HPSPFTau.h:122
l1t::HPSPFTau::setPassVLooseRelIso
void setPassVLooseRelIso(bool passVLooseRelIso)
Definition: HPSPFTau.h:145
l1t::HPSPFTau::setSumNeutralIso
void setSumNeutralIso(float sumNeutralIso)
Definition: HPSPFTau.h:133
l1t::HPSPFTau::setIsoChargedHadrons
void setIsoChargedHadrons(l1t::PFCandidateRefVector isoChargedHadrons)
Definition: HPSPFTau.h:107
l1t::HPSPFTau::kOneProng1Pi0
Definition: HPSPFTau.h:57
edm::RefVector< l1t::PFCandidateCollection >
l1t::HPSPFTau::passVLooseIso_
bool passVLooseIso_
Definition: HPSPFTau.h:194
l1t::HPSPFTau::kThreeProng0Pi0
Definition: HPSPFTau.h:57
l1t::HPSPFTau::signalAllL1PFCandidates_
l1t::PFCandidateRefVector signalAllL1PFCandidates_
Definition: HPSPFTau.h:152
l1t::HPSPFTau::stripPhotons
const l1t::PFCandidateRefVector & stripPhotons() const
Definition: HPSPFTau.h:39
l1t::HPSPFTau::setSumAllL1PFCandidates
void setSumAllL1PFCandidates(l1t::PFCandidateRefVector sumAllL1PFCandidates)
Definition: HPSPFTau.h:113
reco::Particle::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Particle.h:21
l1t::HPSPFTau::signalElectrons
const l1t::PFCandidateRefVector & signalElectrons() const
Definition: HPSPFTau.h:32
l1t::HPSPFTau::passLooseIso_
bool passLooseIso_
Definition: HPSPFTau.h:193
edm::Ref< l1t::PFCandidateCollection >
l1t::HPSPFTau::leadChargedPFCand_
l1t::PFCandidateRef leadChargedPFCand_
Definition: HPSPFTau.h:150
l1t::HPSPFTau::setSumChargedIso
void setSumChargedIso(float sumChargedIso)
Definition: HPSPFTau.h:132
BeamMonitor_cff.primaryVertex
primaryVertex
hltOfflineBeamSpot for HLTMON
Definition: BeamMonitor_cff.py:7
l1t::HPSPFTau::signalPhotons
const l1t::PFCandidateRefVector & signalPhotons() const
Definition: HPSPFTau.h:34
l1t::HPSPFTau::setPassMediumIso
void setPassMediumIso(bool passMediumIso)
Definition: HPSPFTau.h:138
l1t::HPSPFTau::sumChargedHadrons_
l1t::PFCandidateRefVector sumChargedHadrons_
Definition: HPSPFTau.h:171
l1t::HPSPFTau::setSignalConeSize
void setSignalConeSize(float signalConeSize)
Definition: HPSPFTau.h:129
l1t::HPSPFTau::isoPhotons_
l1t::PFCandidateRefVector isoPhotons_
Definition: HPSPFTau.h:167
l1t::HPSPFTau::setSumNeutralHadrons
void setSumNeutralHadrons(l1t::PFCandidateRefVector sumNeutralHadrons)
Definition: HPSPFTau.h:118
l1t::HPSPFTau::sumPhotons
const l1t::PFCandidateRefVector & sumPhotons() const
Definition: HPSPFTau.h:52
l1t::HPSPFTau::seedJet
const reco::CaloJetRef & seedJet() const
Definition: HPSPFTau.h:27
l1t::HPSPFTau::setPassVLooseIso
void setPassVLooseIso(bool passVLooseIso)
Definition: HPSPFTau.h:140
l1t::HPSPFTau::kUndefined
Definition: HPSPFTau.h:57
l1t::HPSPFTau::sumChargedIso
float sumChargedIso() const
Definition: HPSPFTau.h:66
l1t::HPSPFTau::setSignalAllL1PFCandidates
void setSignalAllL1PFCandidates(l1t::PFCandidateRefVector signalAllL1PFCandidates)
Definition: HPSPFTau.h:85
LeafCandidate.h
Particle.h
l1t::HPSPFTau::stripP4
const reco::Particle::LorentzVector & stripP4() const
Definition: HPSPFTau.h:60
l1t::HPSPFTau::setStripPhotons
void setStripPhotons(l1t::PFCandidateRefVector stripPhotons)
Definition: HPSPFTau.h:102
l1t::HPSPFTau::passVLooseRelIso
bool passVLooseRelIso() const
Definition: HPSPFTau.h:79
l1t::HPSPFTau::sumNeutralHadrons
const l1t::PFCandidateRefVector & sumNeutralHadrons() const
Definition: HPSPFTau.h:51
l1t::HPSPFTau::setTauType
void setTauType(Kind tauType)
Definition: HPSPFTau.h:124
l1t::HPSPFTau::setSumCombinedIso
void setSumCombinedIso(float sumCombinedIso)
Definition: HPSPFTau.h:134
l1t::HPSPFTau::sumAllL1PFCandidatesPt
float sumAllL1PFCandidatesPt() const
Definition: HPSPFTau.h:62
l1t::HPSPFTau::setSignalNeutralHadrons
void setSignalNeutralHadrons(l1t::PFCandidateRefVector signalNeutralHadrons)
Definition: HPSPFTau.h:92
l1t::HPSPFTau::setStripAllL1PFCandidates
void setStripAllL1PFCandidates(l1t::PFCandidateRefVector stripAllL1PFCandidates)
Definition: HPSPFTau.h:98
l1t::HPSPFTau::signalMuons
const l1t::PFCandidateRefVector & signalMuons() const
Definition: HPSPFTau.h:35
l1t::HPSPFTau::setPassLooseRelIso
void setPassLooseRelIso(bool passLooseRelIso)
Definition: HPSPFTau.h:144
l1t::HPSPFTau::isoAllL1PFCandidates
const l1t::PFCandidateRefVector & isoAllL1PFCandidates() const
Definition: HPSPFTau.h:41
l1t::HPSPFTau::tauType
Kind tauType() const
Definition: HPSPFTau.h:58
l1t::HPSPFTau::passMediumIso_
bool passMediumIso_
Definition: HPSPFTau.h:192
l1t::HPSPFTau::isoElectrons
const l1t::PFCandidateRefVector & isoElectrons() const
Definition: HPSPFTau.h:43
l1t::HPSPFTau::signalNeutralHadrons
const l1t::PFCandidateRefVector & signalNeutralHadrons() const
Definition: HPSPFTau.h:33
l1t::HPSPFTau::signalConeSize
float signalConeSize() const
Definition: HPSPFTau.h:63
l1t::HPSPFTau::sumCombinedIso
float sumCombinedIso() const
Definition: HPSPFTau.h:68
l1t::HPSPFTau::kOneProng0Pi0
Definition: HPSPFTau.h:57
l1t
delete x;
Definition: CaloConfig.h:22
l1t::HPSPFTau::sumChargedIsoPileup_
float sumChargedIsoPileup_
Definition: HPSPFTau.h:189
l1t::HPSPFTau::isoChargedHadrons_
l1t::PFCandidateRefVector isoChargedHadrons_
Definition: HPSPFTau.h:164
l1t::HPSPFTau::setSumChargedHadrons
void setSumChargedHadrons(l1t::PFCandidateRefVector sumChargedHadrons)
Definition: HPSPFTau.h:116
edm::Ref::isNonnull
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:238
l1t::HPSPFTau::sumMuons
const l1t::PFCandidateRefVector & sumMuons() const
Definition: HPSPFTau.h:53
l1t::HPSPFTau::signalAllL1PFCandidates
const l1t::PFCandidateRefVector & signalAllL1PFCandidates() const
Definition: HPSPFTau.h:30
l1t::HPSPFTau::sumMuons_
l1t::PFCandidateRefVector sumMuons_
Definition: HPSPFTau.h:175
l1t::HPSPFTau::passTightRelIso_
bool passTightRelIso_
Definition: HPSPFTau.h:196
l1t::HPSPFTau::signalConeSize_
float signalConeSize_
Definition: HPSPFTau.h:183
l1t::HPSPFTau::setPassTightRelIso
void setPassTightRelIso(bool passTightRelIso)
Definition: HPSPFTau.h:142
l1t::HPSPFTau
Definition: HPSPFTau.h:14
l1t::HPSPFTau::sumCombinedIso_
float sumCombinedIso_
Definition: HPSPFTau.h:188
l1t::HPSPFTau::signalElectrons_
l1t::PFCandidateRefVector signalElectrons_
Definition: HPSPFTau.h:154
l1t::HPSPFTau::setPassTightIso
void setPassTightIso(bool passTightIso)
Definition: HPSPFTau.h:137
l1t::HPSPFTau::isoNeutralHadrons_
l1t::PFCandidateRefVector isoNeutralHadrons_
Definition: HPSPFTau.h:166
l1t::HPSPFTau::sumChargedIsoPileup
float sumChargedIsoPileup() const
Definition: HPSPFTau.h:69
l1t::HPSPFTau::setSeedJet
void setSeedJet(reco::CaloJetRef seedJet)
Definition: HPSPFTau.h:82
l1t::HPSPFTau::setisolationConeSize
void setisolationConeSize(float isolationConeSize)
Definition: HPSPFTau.h:130
l1t::HPSPFTau::setSignalPhotons
void setSignalPhotons(l1t::PFCandidateRefVector signalPhotons)
Definition: HPSPFTau.h:95
l1t::HPSPFTau::primaryVertex
const l1t::TkPrimaryVertexRef & primaryVertex() const
Definition: HPSPFTau.h:55
l1t::HPSPFTau::seedChargedPFCand_
l1t::PFCandidateRef seedChargedPFCand_
Definition: HPSPFTau.h:148
l1t::HPSPFTau::isoChargedHadrons
const l1t::PFCandidateRefVector & isoChargedHadrons() const
Definition: HPSPFTau.h:42
l1t::HPSPFTau::isJetSeeded
bool isJetSeeded() const
Definition: HPSPFTau.h:24
l1t::HPSPFTau::isoPhotons
const l1t::PFCandidateRefVector & isoPhotons() const
Definition: HPSPFTau.h:45
l1t::HPSPFTau::setIsoMuons
void setIsoMuons(l1t::PFCandidateRefVector isoMuons)
Definition: HPSPFTau.h:111
l1t::HPSPFTau::isChargedPFCandSeeded
bool isChargedPFCandSeeded() const
accessor functions for reco level quantities
Definition: HPSPFTau.h:23
l1t::HPSPFTau::passMediumRelIso_
bool passMediumRelIso_
Definition: HPSPFTau.h:197
l1t::HPSPFTau::setStripElectrons
void setStripElectrons(l1t::PFCandidateRefVector stripElectrons)
Definition: HPSPFTau.h:101
l1t::HPSPFTau::sumAllL1PFCandidates
const l1t::PFCandidateRefVector & sumAllL1PFCandidates() const
Definition: HPSPFTau.h:48
l1t::HPSPFTau::setSignalElectrons
void setSignalElectrons(l1t::PFCandidateRefVector signalElectrons)
Definition: HPSPFTau.h:91
l1t::HPSPFTau::setIsoNeutralHadrons
void setIsoNeutralHadrons(l1t::PFCandidateRefVector isoNeutralHadrons)
Definition: HPSPFTau.h:109
l1t::HPSPFTau::passTightIso
bool passTightIso() const
Definition: HPSPFTau.h:71
l1t::HPSPFTau::sumNeutralIso_
float sumNeutralIso_
Definition: HPSPFTau.h:187
printPFCand
void printPFCand(ostream &os, const l1t::PFCandidate &l1PFCand, const l1t::TkPrimaryVertexRef &primaryVertex)
Definition: HPSPFTau.cc:63
l1t::HPSPFTau::stripPhotons_
l1t::PFCandidateRefVector stripPhotons_
Definition: HPSPFTau.h:161
l1t::HPSPFTau::HPSPFTau
HPSPFTau()
default constructor
Definition: HPSPFTau.cc:5
l1t::HPSPFTau::sumNeutralHadrons_
l1t::PFCandidateRefVector sumNeutralHadrons_
Definition: HPSPFTau.h:173
l1t::HPSPFTau::leadChargedPFCand
const l1t::PFCandidateRef & leadChargedPFCand() const
Definition: HPSPFTau.h:28
l1t::HPSPFTau::tauType_
Kind tauType_
Definition: HPSPFTau.h:178
l1t::HPSPFTau::setPassLooseIso
void setPassLooseIso(bool passLooseIso)
Definition: HPSPFTau.h:139
l1t::HPSPFTau::passMediumRelIso
bool passMediumRelIso() const
Definition: HPSPFTau.h:77
l1t::HPSPFTau::signalChargedHadrons
const l1t::PFCandidateRefVector & signalChargedHadrons() const
Definition: HPSPFTau.h:31
reco::LeafCandidate
Definition: LeafCandidate.h:16
l1t::HPSPFTau::seedChargedPFCand
const l1t::PFCandidateRef & seedChargedPFCand() const
Definition: HPSPFTau.h:26
l1t::HPSPFTau::isolationConeSize
float isolationConeSize() const
Definition: HPSPFTau.h:64
l1t::PFCandidate
Definition: PFCandidate.h:12
l1t::HPSPFTau::setSumMuons
void setSumMuons(l1t::PFCandidateRefVector sumMuons)
Definition: HPSPFTau.h:120
l1t::HPSPFTau::stripElectrons
const l1t::PFCandidateRefVector & stripElectrons() const
Definition: HPSPFTau.h:38
l1t::HPSPFTau::setSignalMuons
void setSignalMuons(l1t::PFCandidateRefVector signalMuons)
Definition: HPSPFTau.h:96
l1t::HPSPFTau::~HPSPFTau
~HPSPFTau() override
destructor
Definition: HPSPFTau.cc:21
l1t::HPSPFTau::sumAllL1PFCandidates_
l1t::PFCandidateRefVector sumAllL1PFCandidates_
Definition: HPSPFTau.h:170
l1t::HPSPFTau::isoAllL1PFCandidates_
l1t::PFCandidateRefVector isoAllL1PFCandidates_
Definition: HPSPFTau.h:163
l1t::HPSPFTau::passTightRelIso
bool passTightRelIso() const
Definition: HPSPFTau.h:76
l1t::HPSPFTau::setSumElectrons
void setSumElectrons(l1t::PFCandidateRefVector sumElectrons)
Definition: HPSPFTau.h:117
l1t::HPSPFTau::sumPhotons_
l1t::PFCandidateRefVector sumPhotons_
Definition: HPSPFTau.h:174
l1t::HPSPFTau::setSeedChargedPFCand
void setSeedChargedPFCand(l1t::PFCandidateRef seedChargedPFCand)
Definition: HPSPFTau.h:81
l1t::HPSPFTau::passVLooseRelIso_
bool passVLooseRelIso_
Definition: HPSPFTau.h:199
l1t::HPSPFTau::passTightIso_
bool passTightIso_
Definition: HPSPFTau.h:191
l1t::HPSPFTau::setStripP4
void setStripP4(reco::Particle::LorentzVector &stripP4)
Definition: HPSPFTau.h:126
l1t::HPSPFTau::seedJet_
reco::CaloJetRef seedJet_
Definition: HPSPFTau.h:149
l1t::HPSPFTau::signalPhotons_
l1t::PFCandidateRefVector signalPhotons_
Definition: HPSPFTau.h:156