CP3-llbb Framework
WeightedBinnedValues.h
1 #pragma once
2 
3 #include <cp3_llbb/Framework/interface/BinnedValues.h>
4 
5 #include <FWCore/ParameterSet/interface/ParameterSet.h>
6 
7 #include <memory>
8 #include <random>
9 #include <vector>
10 
12  public:
13  WeightedBinnedValues(const std::vector<edm::ParameterSet>& parts);
20  virtual std::vector<float> get(const Parameters&) const override;
21 
22  private:
23  mutable std::mt19937 random_generator;
24  std::unique_ptr<std::discrete_distribution<int>> probability_distribution;
25  std::vector<BinnedValues> efficiencies;
26 };
Definition: BinnedValues.h:88
Definition: BinnedValues.h:67
Definition: WeightedBinnedValues.h:11
virtual std::vector< float > get(const Parameters &) const override
Definition: WeightedBinnedValues.cc:21