CMS 3D CMS Logo

DQMRivetClient.h
Go to the documentation of this file.
1 #ifndef GeneratorInterface_RivetInterface_DQMRivetClient_H
2 #define GeneratorInterface_RivetInterface_DQMRivetClient_H
3 
7 #include <set>
8 #include <string>
9 #include <vector>
10 #include <TH1.h>
11 
12 class DQMStore;
13 class MonitorElement;
14 
16 {
17  public:
19  ~DQMRivetClient() override {};
20 
21  void analyze(const edm::Event& event, const edm::EventSetup& eventSetup) override {};
22 
23  void endJob() override;
24 
26  void endRun(const edm::Run& r, const edm::EventSetup& c) override;
27 
28  struct LumiOption
29  {
31  double xsection;
32  };
33 
35  {
37  double scale;
38  };
39 
40  void normalizeToIntegral(const std::string& startDir, const std::string& histName, const std::string& normHistName);
41  void normalizeToLumi(const std::string& startDir, const std::string& histName, const std::string& normHistName, double xsection);
42  void scaleByFactor(const std::string& startDir, const std::string& histName, double factor);
43 
44  private:
45  unsigned int verbose_;
46 
48  std::vector<std::string> subDirs_;
50 
51  std::vector<DQMGenericClient::NormOption> normOptions_;
52  std::vector<LumiOption> lumiOptions_;
53  std::vector<ScaleFactorOption> scaleOptions_;
54 
55 
56 };
57 
58 #endif
std::vector< ScaleFactorOption > scaleOptions_
void analyze(const edm::Event &event, const edm::EventSetup &eventSetup) override
DQMRivetClient(const edm::ParameterSet &pset)
~DQMRivetClient() override
void scaleByFactor(const std::string &startDir, const std::string &histName, double factor)
std::vector< DQMGenericClient::NormOption > normOptions_
std::string outputFileName_
void normalizeToIntegral(const std::string &startDir, const std::string &histName, const std::string &normHistName)
std::vector< LumiOption > lumiOptions_
unsigned int verbose_
DQMStore * theDQM
void endJob() override
std::vector< std::string > subDirs_
void endRun(const edm::Run &r, const edm::EventSetup &c) override
EndRun.
void normalizeToLumi(const std::string &startDir, const std::string &histName, const std::string &normHistName, double xsection)
Definition: event.py:1
Definition: Run.h:44