CMS 3D CMS Logo

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 namespace muonisolation {
17  public:
19 
21  virtual ~ConeSizeFunction() = default;
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 
29  ~IsolatorByDepositCount() override = default;
30 
32  Result result(const DepositContainer& deposits, const edm::Event* = nullptr) const override;
33 
34  void setConeSize(float conesize) {
35  theConeSize = conesize;
36  theConeSizeFunction = nullptr;
37  }
38 
39  void setConeSize(ConeSizeFunction* conesize) { theConeSizeFunction = conesize; }
40 
42  virtual float coneSize(float eta, float pT) const {
44  }
45 
46  ResultType resultType() const override { return ISOL_INT_TYPE; }
47 
48  private:
50  float theConeSize;
51  std::vector<double> theDepThresholds;
52  };
53 } // namespace muonisolation
54 
55 #endif
muonisolation::IsolatorByDepositCount::IsolatorByDepositCount
IsolatorByDepositCount(float conesize, const std::vector< double > &thresh)
construct with non-default thresholds per deposit
Definition: IsolatorByDepositCount.cc:7
DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
muonisolation::IsolatorByDepositCount::ConeSizeFunction
Definition: IsolatorByDepositCount.h:20
muonisolation::IsolatorByDepositCount::theConeSizeFunction
const ConeSizeFunction * theConeSizeFunction
Definition: IsolatorByDepositCount.h:49
muonisolation::MuIsoBaseIsolator::Result
Definition: MuIsoBaseIsolator.h:27
muonisolation::IsolatorByDepositCount::coneSize
virtual float coneSize(float eta, float pT) const
Get the cone size.
Definition: IsolatorByDepositCount.h:42
muonisolation::MuIsoBaseIsolator::ISOL_INT_TYPE
Definition: MuIsoBaseIsolator.h:25
PVValHelper::eta
Definition: PVValidationHelpers.h:69
PVValHelper::pT
Definition: PVValidationHelpers.h:70
muonisolation::MuIsoBaseIsolator
Definition: MuIsoBaseIsolator.h:12
muonisolation::IsolatorByDepositCount::ConeSizeFunction::~ConeSizeFunction
virtual ~ConeSizeFunction()=default
muonisolation::IsolatorByDepositCount::resultType
ResultType resultType() const override
Definition: IsolatorByDepositCount.h:46
muonisolation::IsolatorByDepositCount::theConeSize
float theConeSize
Definition: IsolatorByDepositCount.h:50
muonisolation::MuIsoBaseIsolator::ResultType
ResultType
Definition: MuIsoBaseIsolator.h:25
muonisolation::IsolatorByDepositCount::setConeSize
void setConeSize(ConeSizeFunction *conesize)
Definition: IsolatorByDepositCount.h:39
muonisolation::IsolatorByDepositCount
Definition: IsolatorByDepositCount.h:16
muonisolation::IsolatorByDepositCount::~IsolatorByDepositCount
~IsolatorByDepositCount() override=default
muonisolation
Definition: CandViewExtractor.h:16
GOODCOLL_filter_cfg.thresh
thresh
Definition: GOODCOLL_filter_cfg.py:74
muonisolation::IsolatorByDepositCount::DepositContainer
MuIsoBaseIsolator::DepositContainer DepositContainer
Definition: IsolatorByDepositCount.h:18
muonisolation::IsolatorByDepositCount::ConeSizeFunction::coneSize
virtual float coneSize(float eta, float pt) const =0
muonisolation::IsolatorByDepositCount::theDepThresholds
std::vector< double > theDepThresholds
Definition: IsolatorByDepositCount.h:51
muonisolation::MuIsoBaseIsolator::DepositContainer
std::vector< DepositAndVetos > DepositContainer
Definition: MuIsoBaseIsolator.h:23
muonisolation::IsolatorByDepositCount::setConeSize
void setConeSize(float conesize)
Definition: IsolatorByDepositCount.h:34
edm::Event
Definition: Event.h:73
CandIsolatorFromDeposits_cfi.deposits
deposits
Definition: CandIsolatorFromDeposits_cfi.py:4
muonisolation::IsolatorByDepositCount::result
Result result(const DepositContainer &deposits, const edm::Event *=nullptr) const override
Compute the deposit within the cone and return the isolation result.
Definition: IsolatorByDepositCount.cc:13
MuIsoBaseIsolator.h