CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GenWeightValidation.h
Go to the documentation of this file.
1 #ifndef GENWEIGHTVALIDATION_H
2 #define GENWEIGHTVALIDATION_H
3 
4 // framework & common header files
8 
12 
13 //DQM services
17 
22 
25 
27 public:
28  explicit GenWeightValidation(const edm::ParameterSet &);
29  ~GenWeightValidation() override = default;
30  void analyze(const edm::Event &, const edm::EventSetup &) override;
31  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
32  void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override;
33 
34 private:
35  void bookTemplates(DQMHelper &aDqmHelper,
36  std::vector<MonitorElement *> &tmps,
37  const std::string &name,
38  const std::string &title,
39  int nbin,
40  float low,
41  float high,
42  const std::string &xtitle,
43  const std::string &ytitle);
44  void fillTemplates(std::vector<MonitorElement *> &tmps, float obs);
46 
47  double weight_;
48  std::vector<std::vector<double>> weights_;
49 
53  std::vector<MonitorElement *> leadLepPtTemp_;
54  std::vector<MonitorElement *> leadLepEtaTemp_;
55  std::vector<MonitorElement *> jetMultTemp_;
56  std::vector<MonitorElement *> leadJetPtTemp_;
57  std::vector<MonitorElement *> leadJetEtaTemp_;
58 
61 
64  const int nJetsNbin_, jetPtNbin_;
66  int idxMax_;
67 };
68 
69 #endif
const double leadLepPtRange_
std::vector< MonitorElement * > leadLepEtaTemp_
const edm::EDGetTokenT< reco::GenParticleCollection > genParticleToken_
MonitorElement * nEvt_
void analyze(const edm::Event &, const edm::EventSetup &) override
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
std::vector< MonitorElement * > jetMultTemp_
GenWeightValidation(const edm::ParameterSet &)
void fillTemplates(std::vector< MonitorElement * > &tmps, float obs)
MonitorElement * nlogWgt_
std::vector< MonitorElement * > leadJetEtaTemp_
std::vector< MonitorElement * > leadJetPtTemp_
std::vector< MonitorElement * > leadLepPtTemp_
MonitorElement * wgtVal_
void bookTemplates(DQMHelper &aDqmHelper, std::vector< MonitorElement * > &tmps, const std::string &name, const std::string &title, int nbin, float low, float high, const std::string &xtitle, const std::string &ytitle)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
const edm::EDGetTokenT< reco::GenJetCollection > genJetToken_
~GenWeightValidation() override=default
std::vector< std::vector< double > > weights_
Definition: Run.h:45