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
5 #include "DataFormats/L1TParticleFlow/interface/PFJet.h" // l1t::PFJet, l1t::PFJetCollection, l1t::PFJetRef
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 isPFJetSeeded() const { return seedPFJet_.isNonnull(); }
25 
27  const l1t::PFJetRef& seedPFJet() const { return seedPFJet_; }
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 
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 rhoCorr() const { return rhoCorr_; }
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 
82  private:
86 
93 
97 
104 
111 
114 
116 
120 
124  float sumChargedIsoPileup_; // charged PFCands failing dz cut (maybe useful to correct neutral isolation for pile-up contributions by applying delta-beta corrections)
125  float rhoCorr_; // rho correction (maybe useful for applying pile-up corrections to neutral isolation)
126 
131 
136  };
137 
138  void printPFCand(ostream& os, const l1t::PFCandidate& l1PFCand, const l1t::TkPrimaryVertexRef& primaryVertex);
139  void printPFCand(ostream& os, const l1t::PFCandidate& l1PFCand, float primaryVertex_z);
140 } // namespace l1t
141 
143 std::ostream& operator<<(std::ostream& os, const l1t::HPSPFTau& l1PFTau);
144 
145 #endif
l1t::HPSPFTau::passMediumIso
bool passMediumIso() const
Definition: HPSPFTau.h:73
PFCandidate.h
l1t::HPSPFTau::strip_p4
const reco::Particle::LorentzVector & strip_p4() const
Definition: HPSPFTau.h:60
l1t::HPSPFTau::sumNeutralIso
float sumNeutralIso() const
Definition: HPSPFTau.h:67
l1t::HPSPFTau::passLooseIso
bool passLooseIso() const
Definition: HPSPFTau.h:74
l1t::HPSPFTau::seedPFJet_
l1t::PFJetRef seedPFJet_
Definition: HPSPFTau.h:84
l1t::HPSPFTau::stripAllL1PFCandidates_
l1t::PFCandidateRefVector stripAllL1PFCandidates_
Definition: HPSPFTau.h:94
l1t::HPSPFTau::isoMuons_
l1t::PFCandidateRefVector isoMuons_
Definition: HPSPFTau.h:103
TkPrimaryVertex.h
l1t::HPSPFTau::passLooseRelIso_
bool passLooseRelIso_
Definition: HPSPFTau.h:134
l1t::HPSPFTau::passLooseRelIso
bool passLooseRelIso() const
Definition: HPSPFTau.h:79
l1t::HPSPFTau::isoMuons
const l1t::PFCandidateRefVector & isoMuons() const
Definition: HPSPFTau.h:46
l1t::HPSPFTau::isoElectrons_
l1t::PFCandidateRefVector isoElectrons_
Definition: HPSPFTau.h:100
l1t::HPSPFTau::signalNeutralHadrons_
l1t::PFCandidateRefVector signalNeutralHadrons_
Definition: HPSPFTau.h:90
l1t::HPSPFTau::sumChargedHadrons
const l1t::PFCandidateRefVector & sumChargedHadrons() const
Definition: HPSPFTau.h:49
l1t::HPSPFTau::signalMuons_
l1t::PFCandidateRefVector signalMuons_
Definition: HPSPFTau.h:92
l1t::HPSPFTau::primaryVertex_
l1t::TkPrimaryVertexRef primaryVertex_
Definition: HPSPFTau.h:112
l1t::HPSPFTau::isolationConeSize_
float isolationConeSize_
Definition: HPSPFTau.h:119
l1t::HPSPFTau::sumChargedIso_
float sumChargedIso_
Definition: HPSPFTau.h:121
l1t::HPSPFTau::signalChargedHadrons_
l1t::PFCandidateRefVector signalChargedHadrons_
Definition: HPSPFTau.h:88
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::stripElectrons_
l1t::PFCandidateRefVector stripElectrons_
Definition: HPSPFTau.h:95
l1t::HPSPFTau::isoNeutralHadrons
const l1t::PFCandidateRefVector & isoNeutralHadrons() const
Definition: HPSPFTau.h:44
l1t::HPSPFTau::passVLooseIso
bool passVLooseIso() const
Definition: HPSPFTau.h:75
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:107
l1t::HPSPFTau::kOneProng1Pi0
Definition: HPSPFTau.h:57
edm::RefVector< l1t::PFCandidateCollection >
l1t::HPSPFTau::passVLooseIso_
bool passVLooseIso_
Definition: HPSPFTau.h:130
l1t::HPSPFTau::kThreeProng0Pi0
Definition: HPSPFTau.h:57
l1t::HPSPFTau::signalAllL1PFCandidates_
l1t::PFCandidateRefVector signalAllL1PFCandidates_
Definition: HPSPFTau.h:87
l1t::HPSPFTau::isPFJetSeeded
bool isPFJetSeeded() const
Definition: HPSPFTau.h:24
l1t::HPSPFTau::stripPhotons
const l1t::PFCandidateRefVector & stripPhotons() const
Definition: HPSPFTau.h:39
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:129
edm::Ref< l1t::PFCandidateCollection >
l1t::HPSPFTau::leadChargedPFCand_
l1t::PFCandidateRef leadChargedPFCand_
Definition: HPSPFTau.h:85
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::sumChargedHadrons_
l1t::PFCandidateRefVector sumChargedHadrons_
Definition: HPSPFTau.h:106
l1t::HPSPFTau::isoPhotons_
l1t::PFCandidateRefVector isoPhotons_
Definition: HPSPFTau.h:102
l1t::HPSPFTau::sumPhotons
const l1t::PFCandidateRefVector & sumPhotons() const
Definition: HPSPFTau.h:52
l1t::printPFCand
void printPFCand(ostream &os, const l1t::PFCandidate &l1PFCand, const l1t::TkPrimaryVertexRef &primaryVertex)
Definition: HPSPFTau.cc:64
l1t::HPSPFTau::kUndefined
Definition: HPSPFTau.h:57
l1t::HPSPFTau::sumChargedIso
float sumChargedIso() const
Definition: HPSPFTau.h:66
LeafCandidate.h
Particle.h
l1t::HPSPFTau::passVLooseRelIso
bool passVLooseRelIso() const
Definition: HPSPFTau.h:80
l1t::HPSPFTau::sumNeutralHadrons
const l1t::PFCandidateRefVector & sumNeutralHadrons() const
Definition: HPSPFTau.h:51
l1t::HPSPFTau::strip_p4_
reco::Particle::LorentzVector strip_p4_
Definition: HPSPFTau.h:115
l1t::HPSPFTau::sumAllL1PFCandidates_pt
float sumAllL1PFCandidates_pt() const
Definition: HPSPFTau.h:62
l1t::HPSPFTau::signalMuons
const l1t::PFCandidateRefVector & signalMuons() const
Definition: HPSPFTau.h:35
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:128
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:124
l1t::HPSPFTau::isoChargedHadrons_
l1t::PFCandidateRefVector isoChargedHadrons_
Definition: HPSPFTau.h:99
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:110
l1t::HPSPFTau::passTightRelIso_
bool passTightRelIso_
Definition: HPSPFTau.h:132
l1t::HPSPFTau::signalConeSize_
float signalConeSize_
Definition: HPSPFTau.h:118
l1t::HPSPFTau
Definition: HPSPFTau.h:14
l1t::HPSPFTau::sumCombinedIso_
float sumCombinedIso_
Definition: HPSPFTau.h:123
l1t::HPSPFTau::signalElectrons_
l1t::PFCandidateRefVector signalElectrons_
Definition: HPSPFTau.h:89
l1t::HPSPFTau::isoNeutralHadrons_
l1t::PFCandidateRefVector isoNeutralHadrons_
Definition: HPSPFTau.h:101
l1t::HPSPFTau::sumChargedIsoPileup
float sumChargedIsoPileup() const
Definition: HPSPFTau.h:69
l1t::HPSPFTau::seedPFJet
const l1t::PFJetRef & seedPFJet() const
Definition: HPSPFTau.h:27
l1t::HPSPFTau::primaryVertex
const l1t::TkPrimaryVertexRef & primaryVertex() const
Definition: HPSPFTau.h:55
l1t::HPSPFTau::seedChargedPFCand_
l1t::PFCandidateRef seedChargedPFCand_
Definition: HPSPFTau.h:83
l1t::HPSPFTau::isoChargedHadrons
const l1t::PFCandidateRefVector & isoChargedHadrons() const
Definition: HPSPFTau.h:42
l1t::HPSPFTau::isoPhotons
const l1t::PFCandidateRefVector & isoPhotons() const
Definition: HPSPFTau.h:45
l1t::HPSPFTau::isChargedPFCandSeeded
bool isChargedPFCandSeeded() const
accessor functions for reco level quantities
Definition: HPSPFTau.h:23
l1t::HPSPFTau::passMediumRelIso_
bool passMediumRelIso_
Definition: HPSPFTau.h:133
l1t::HPSPFTau::sumAllL1PFCandidates
const l1t::PFCandidateRefVector & sumAllL1PFCandidates() const
Definition: HPSPFTau.h:48
l1t::HPSPFTau::passTightIso
bool passTightIso() const
Definition: HPSPFTau.h:72
l1t::HPSPFTau::sumAllL1PFCandidates_pt_
float sumAllL1PFCandidates_pt_
Definition: HPSPFTau.h:117
l1t::HPSPFTau::sumNeutralIso_
float sumNeutralIso_
Definition: HPSPFTau.h:122
l1t::HPSPFTau::stripPhotons_
l1t::PFCandidateRefVector stripPhotons_
Definition: HPSPFTau.h:96
l1t::HPSPFTau::HPSPFTau
HPSPFTau()
default constructor
Definition: HPSPFTau.cc:5
l1t::HPSPFTau::sumNeutralHadrons_
l1t::PFCandidateRefVector sumNeutralHadrons_
Definition: HPSPFTau.h:108
l1t::HPSPFTau::leadChargedPFCand
const l1t::PFCandidateRef & leadChargedPFCand() const
Definition: HPSPFTau.h:28
l1t::HPSPFTau::tauType_
Kind tauType_
Definition: HPSPFTau.h:113
l1t::HPSPFTau::passMediumRelIso
bool passMediumRelIso() const
Definition: HPSPFTau.h:78
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::stripElectrons
const l1t::PFCandidateRefVector & stripElectrons() const
Definition: HPSPFTau.h:38
l1t::HPSPFTau::~HPSPFTau
~HPSPFTau() override
destructor
Definition: HPSPFTau.cc:22
l1t::HPSPFTau::sumAllL1PFCandidates_
l1t::PFCandidateRefVector sumAllL1PFCandidates_
Definition: HPSPFTau.h:105
l1t::HPSPFTau::isoAllL1PFCandidates_
l1t::PFCandidateRefVector isoAllL1PFCandidates_
Definition: HPSPFTau.h:98
l1t::HPSPFTau::passTightRelIso
bool passTightRelIso() const
Definition: HPSPFTau.h:77
l1t::HPSPFTau::sumPhotons_
l1t::PFCandidateRefVector sumPhotons_
Definition: HPSPFTau.h:109
l1t::HPSPFTau::passVLooseRelIso_
bool passVLooseRelIso_
Definition: HPSPFTau.h:135
l1t::HPSPFTau::rhoCorr_
float rhoCorr_
Definition: HPSPFTau.h:125
PFJet.h
l1t::HPSPFTau::rhoCorr
float rhoCorr() const
Definition: HPSPFTau.h:70
l1t::HPSPFTau::passTightIso_
bool passTightIso_
Definition: HPSPFTau.h:127
l1t::HPSPFTau::signalPhotons_
l1t::PFCandidateRefVector signalPhotons_
Definition: HPSPFTau.h:91