CMS 3D CMS Logo

CutsConeSizeFunction.h
Go to the documentation of this file.
1 #ifndef MuonIsolation_CutsConeSizeFunction_H
2 #define MuonIsolation_CutsConeSizeFunction_H
3 
6 
7 namespace muonisolation {
9 public:
10  CutsConeSizeFunction(const Cuts & cuts) : theLastCut(0), theCuts(cuts) {}
11  virtual ~CutsConeSizeFunction() = default;
12  float threshold() const { return theLastCut->threshold; }
13  float coneSize( float eta, float pt) const {
14  theLastCut = & theCuts(eta);
15  return theLastCut->conesize;
16  }
17 private:
18  mutable const Cuts::CutSpec * theLastCut;
19  const Cuts & theCuts;
20 };
21 }
22 #endif
float coneSize(float eta, float pt) const
virtual ~CutsConeSizeFunction()=default