CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
l1t::PFCandidate::ParticleType pfCandType_
~L1HPSPFTauQualityCut()=default
destructor
tuple cfg
Definition: looper.py:296
bool operator()(const l1t::PFCandidate &pfCand, float_t primaryVertexZ) const
returns true (false) if PFCandidate passes (fails) quality cuts
l1t::PFCandidate::ParticleType pfCandType() const
accessor functions
std::vector< L1HPSPFTauQualityCut > readL1PFTauQualityCuts(const edm::ParameterSet &cfg, const std::string &dzCut, bool debug=false)
#define debug
Definition: HDRShower.cc:19
bool isSelected(const std::vector< L1HPSPFTauQualityCut > &qualityCuts, const l1t::PFCandidate &pfCand, float_t primaryVertexZ)
L1HPSPFTauQualityCut(const edm::ParameterSet &cfg)
constructor