CMS 3D CMS Logo

Cuts.h
Go to the documentation of this file.
1 #ifndef MuonIsolation_Cuts_H
2 #define MuonIsolation_Cuts_H
3 
5 #include <vector>
6 #include <string>
7 
8 namespace edm {
9  class ParameterSet;
10 }
11 
12 namespace muonisolation {
13 
14  class Cuts {
15  public:
16  struct CutSpec {
18  double conesize;
19  double threshold;
20  };
21 
23  Cuts() {}
24 
26  Cuts(const edm::ParameterSet& pset);
27 
29  Cuts(const std::vector<double>& etaBounds,
30  const std::vector<double>& coneSizes,
31  const std::vector<double>& thresholds);
32 
33  const CutSpec& operator()(double eta) const;
34 
35  const CutSpec& operator[](unsigned int i) const { return theCuts[i]; };
36 
37  unsigned int size() { return theCuts.size(); };
38 
39  std::string print() const;
40 
41  private:
42  void init(const std::vector<double>& etaBounds,
43  const std::vector<double>& coneSizes,
44  const std::vector<double>& thresholds);
45 
46  std::vector<CutSpec> theCuts;
47  };
48 
49 } // namespace muonisolation
50 #endif
Range.h
muonisolation::Cuts::print
std::string print() const
Definition: Cuts.cc:54
mps_fire.i
i
Definition: mps_fire.py:428
particleFlowZeroSuppressionECAL_cff.thresholds
thresholds
Definition: particleFlowZeroSuppressionECAL_cff.py:31
edm
HLT enums.
Definition: AlignableModifier.h:19
PVValHelper::eta
Definition: PVValidationHelpers.h:69
muonisolation::Cuts::CutSpec::etaRange
muonisolation::Range< double > etaRange
Definition: Cuts.h:17
muonisolation::Cuts::operator[]
const CutSpec & operator[](unsigned int i) const
Definition: Cuts.h:35
muonisolation::Cuts
Definition: Cuts.h:14
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:47
ParameterSet
Definition: Functions.h:16
muonisolation::Cuts::Cuts
Cuts()
dummy constructor
Definition: Cuts.h:23
muonisolation
Definition: CandViewExtractor.h:16
muonisolation::Cuts::theCuts
std::vector< CutSpec > theCuts
Definition: Cuts.h:46
muonisolation::Cuts::operator()
const CutSpec & operator()(double eta) const
Definition: Cuts.cc:41
muonisolation::Cuts::CutSpec::conesize
double conesize
Definition: Cuts.h:18
muonisolation::Cuts::CutSpec::threshold
double threshold
Definition: Cuts.h:19
muonisolation::Cuts::init
void init(const std::vector< double > &etaBounds, const std::vector< double > &coneSizes, const std::vector< double > &thresholds)
Definition: Cuts.cc:21
muonisolation::Range< double >
muonisolation::Cuts::CutSpec
Definition: Cuts.h:16
muonisolation::Cuts::size
unsigned int size()
Definition: Cuts.h:37
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27