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 
15 #include <vector>
16 
17 
18 namespace muonisolation {
20 public:
22 
24  virtual float coneSize( float eta, float pt) const = 0;
25  };
26 
28  IsolatorByDeposit(float conesize, const std::vector<double> & weights);
29  IsolatorByDeposit(const ConeSizeFunction * conesize, const std::vector<double> & weights);
30 
32  IsolatorByDeposit(float conesize,
33  const std::vector<double> & weights, const std::vector<double>& thresh);
34  IsolatorByDeposit(const ConeSizeFunction * conesize,
35  const std::vector<double> & weights, const std::vector<double>& thresh);
36 
37  virtual ~IsolatorByDeposit() {}
38 
40  virtual void setWeights(const std::vector<double>& weights) {theWeights=weights;}
41 
43  virtual Result result(const DepositContainer& deposits, const edm::Event* = 0) const;
44 
46 /* virtual int resultInt(DepositContainer deposits) const; */
47 
48 
49 
50  void setConeSize(float conesize) { theConeSize = conesize; theConeSizeFunction = 0;}
51 
52  void setConeSize(ConeSizeFunction * conesize) { theConeSizeFunction = conesize; }
53 
54 
56  virtual float coneSize(float eta, float pT) const {
58  }
59 
60  virtual ResultType resultType() const { return ISOL_FLOAT_TYPE;}
61 
62 
63 private:
64  // Compute the weighted sum of deposits of different type within dRcone
65  double weightedSum(const DepositContainer& deposits, float dRcone) const;
66 
67 private:
69  float theConeSize;
70  std::vector<double> theWeights;
71  std::vector<double> theDepThresholds;
72 };
73 }
74 
75 #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.
T eta() const
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)