CMS 3D CMS Logo

L1HPSPFTauQualityCut.h
Go to the documentation of this file.
1 #ifndef L1Trigger_Phase2L1Taus_L1HPSPFTauQualityCut_h
2 #define L1Trigger_Phase2L1Taus_L1HPSPFTauQualityCut_h
3 
4 #include "FWCore/ParameterSet/interface/ParameterSet.h" // edm::ParameterSet
5 #include "DataFormats/L1TParticleFlow/interface/PFCandidate.h" // l1t::PFCandidate
6 #include <string> // std::string
7 #include <vector> // std::vector
8 
10 public:
13 
15  ~L1HPSPFTauQualityCut() = default;
16 
18  bool operator()(const l1t::PFCandidate& pfCand, float_t primaryVertexZ) const;
19 
23  int dzCut() const;
24  float_t minPt() const;
25  float_t maxDz() const;
26 
27 private:
29 
30  int dzCut_; // flag to invert dz cut in order to compute charged isolation from pileup for delta-beta corrections
31 
32  float_t minPt_;
33  float_t maxDz_;
34 
35  bool debug_;
36 };
37 
38 std::vector<L1HPSPFTauQualityCut> readL1PFTauQualityCuts(const edm::ParameterSet& cfg,
39  const std::string& dzCut,
40  bool debug = false);
41 
42 bool isSelected(const std::vector<L1HPSPFTauQualityCut>& qualityCuts,
43  const l1t::PFCandidate& pfCand,
44  float_t primaryVertexZ);
45 
46 #endif
PFCandidate.h
L1HPSPFTauQualityCut::operator()
bool operator()(const l1t::PFCandidate &pfCand, float_t primaryVertexZ) const
returns true (false) if PFCandidate passes (fails) quality cuts
Definition: L1HPSPFTauQualityCut.cc:36
L1HPSPFTauQualityCut
Definition: L1HPSPFTauQualityCut.h:9
L1HPSPFTauQualityCut::dzCut
int dzCut() const
Definition: L1HPSPFTauQualityCut.cc:60
isSelected
bool isSelected(const std::vector< L1HPSPFTauQualityCut > &qualityCuts, const l1t::PFCandidate &pfCand, float_t primaryVertexZ)
Definition: L1HPSPFTauQualityCut.cc:90
L1HPSPFTauQualityCut::pfCandType
l1t::PFCandidate::ParticleType pfCandType() const
accessor functions
Definition: L1HPSPFTauQualityCut.cc:58
L1HPSPFTauQualityCut::L1HPSPFTauQualityCut
L1HPSPFTauQualityCut(const edm::ParameterSet &cfg)
constructor
Definition: L1HPSPFTauQualityCut.cc:4
debug
#define debug
Definition: HDRShower.cc:19
L1HPSPFTauQualityCut::maxDz_
float_t maxDz_
Definition: L1HPSPFTauQualityCut.h:33
TrackSplittingMonitor_cfi.dzCut
dzCut
Definition: TrackSplittingMonitor_cfi.py:20
L1HPSPFTauQualityCut::maxDz
float_t maxDz() const
Definition: L1HPSPFTauQualityCut.cc:64
L1HPSPFTauQualityCut::kEnabledPileup
Definition: L1HPSPFTauQualityCut.h:22
L1HPSPFTauQualityCut::~L1HPSPFTauQualityCut
~L1HPSPFTauQualityCut()=default
destructor
edm::ParameterSet
Definition: ParameterSet.h:47
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
readL1PFTauQualityCuts
std::vector< L1HPSPFTauQualityCut > readL1PFTauQualityCuts(const edm::ParameterSet &cfg, const std::string &dzCut, bool debug=false)
Definition: L1HPSPFTauQualityCut.cc:78
looper.cfg
cfg
Definition: looper.py:296
l1t::PFCandidate::ParticleType
ParticleType
Definition: PFCandidate.h:15
L1HPSPFTauQualityCut::minPt
float_t minPt() const
Definition: L1HPSPFTauQualityCut.cc:62
L1HPSPFTauQualityCut::debug_
bool debug_
Definition: L1HPSPFTauQualityCut.h:35
L1HPSPFTauQualityCut::pfCandType_
l1t::PFCandidate::ParticleType pfCandType_
Definition: L1HPSPFTauQualityCut.h:28
L1HPSPFTauQualityCut::kEnabledPrimary
Definition: L1HPSPFTauQualityCut.h:22
L1HPSPFTauQualityCut::minPt_
float_t minPt_
Definition: L1HPSPFTauQualityCut.h:32
l1t::PFCandidate
Definition: PFCandidate.h:12
ParameterSet.h
L1HPSPFTauQualityCut::dzCut_
int dzCut_
Definition: L1HPSPFTauQualityCut.h:30
L1HPSPFTauQualityCut::kDisabled
Definition: L1HPSPFTauQualityCut.h:22
beam_dqm_sourceclient-live_cfg.qualityCuts
qualityCuts
Definition: beam_dqm_sourceclient-live_cfg.py:126