test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
IsolatorByDepositCount.h
Go to the documentation of this file.
1 #ifndef MuonIsolation_IsolatorByDepositCount_H
2 #define MuonIsolation_IsolatorByDepositCount_H
3 
13 #include <vector>
14 
15 
16 namespace muonisolation {
18 public:
20 
22  virtual float coneSize( float eta, float pt) const = 0;
23  };
24 
26  IsolatorByDepositCount(float conesize, const std::vector<double>& thresh);
27  IsolatorByDepositCount(const ConeSizeFunction * conesize, const std::vector<double>& thresh);
28 
30 
32  virtual Result result(const DepositContainer& deposits, const edm::Event* = 0) const;
33 
34 
35  void setConeSize(float conesize) { theConeSize = conesize; theConeSizeFunction = 0;}
36 
37  void setConeSize(ConeSizeFunction * conesize) { theConeSizeFunction = conesize; }
38 
39 
41  virtual float coneSize(float eta, float pT) const {
43  }
44 
45  virtual ResultType resultType() const { return ISOL_INT_TYPE;}
46 
47 
48 private:
50  float theConeSize;
51  std::vector<double> theDepThresholds;
52 };
53 }
54 
55 #endif
virtual Result result(const DepositContainer &deposits, const edm::Event *=0) const
Compute the deposit within the cone and return the isolation result.
virtual float coneSize(float eta, float pt) const =0
IsolatorByDepositCount(float conesize, const std::vector< double > &thresh)
construct with non-default thresholds per deposit
MuIsoBaseIsolator::DepositContainer DepositContainer
virtual float coneSize(float eta, float pT) const
Get the cone size.
void setConeSize(ConeSizeFunction *conesize)
std::vector< DepositAndVetos > DepositContainer