CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
IsolatorByDeposit.h
Go to the documentation of this file.
1 #ifndef MuonIsolation_IsolatorByDeposit_H
2 #define MuonIsolation_IsolatorByDeposit_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  IsolatorByDeposit(float conesize, const std::vector<double> & weights);
27  IsolatorByDeposit(const ConeSizeFunction * conesize, const std::vector<double> & weights);
28 
30  IsolatorByDeposit(float conesize,
31  const std::vector<double> & weights, const std::vector<double>& thresh);
32  IsolatorByDeposit(const ConeSizeFunction * conesize,
33  const std::vector<double> & weights, const std::vector<double>& thresh);
34 
35  virtual ~IsolatorByDeposit() {}
36 
38  virtual void setWeights(const std::vector<double>& weights) {theWeights=weights;}
39 
41  virtual Result result(const DepositContainer& deposits, const edm::Event* = 0) const;
42 
44 /* virtual int resultInt(DepositContainer deposits) const; */
45 
46 
47 
48  void setConeSize(float conesize) { theConeSize = conesize; theConeSizeFunction = 0;}
49 
50  void setConeSize(ConeSizeFunction * conesize) { theConeSizeFunction = conesize; }
51 
52 
54  virtual float coneSize(float eta, float pT) const {
56  }
57 
58  virtual ResultType resultType() const { return ISOL_FLOAT_TYPE;}
59 
60 
61 private:
62  // Compute the weighted sum of deposits of different type within dRcone
63  double weightedSum(const DepositContainer& deposits, float dRcone) const;
64 
65 private:
67  float theConeSize;
68  std::vector<double> theWeights;
69  std::vector<double> theDepThresholds;
70 };
71 }
72 
73 #endif
std::vector< double > theDepThresholds
double weightedSum(const DepositContainer &deposits, float dRcone) const
virtual float coneSize(float eta, float pT) const
Get the cone size.
IsolatorByDeposit(float conesize, const std::vector< double > &weights)
construct with no addtnl thresholds on deposits
MuIsoBaseIsolator::DepositContainer DepositContainer
virtual void setWeights(const std::vector< double > &weights)
Set the weights for summing deposits of different types.
virtual Result result(const DepositContainer &deposits, const edm::Event *=0) const
Compute the deposit within the cone and return the isolation result.
virtual ResultType resultType() const
void setConeSize(float conesize)
Compute the count of deposit within the cone and return the isolation result.
virtual float coneSize(float eta, float pt) const =0
std::vector< double > theWeights
const ConeSizeFunction * theConeSizeFunction
std::vector< DepositAndVetos > DepositContainer
void setConeSize(ConeSizeFunction *conesize)