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 
8 #include <set>
9 #include <string>
10 #include <vector>
11 #include <TH1.h>
12 
14 public:
17 
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 {
30  double xsection;
31  };
32 
35  double scale;
36  };
37 
38  void normalizeToIntegral(const std::string& startDir, const std::string& histName, const std::string& normHistName);
39  void normalizeToLumi(const std::string& startDir,
40  const std::string& histName,
42  double xsection);
43  void scaleByFactor(const std::string& startDir, const std::string& histName, double factor);
44 
45 private:
46  unsigned int verbose_;
47 
48  DQMStore* theDQM;
49  std::vector<std::string> subDirs_;
51 
52  std::vector<DQMGenericClient::NormOption> normOptions_;
53  std::vector<LumiOption> lumiOptions_;
54  std::vector<ScaleFactorOption> scaleOptions_;
55 };
56 
57 #endif
dqm::legacy::DQMStore DQMStore
std::vector< ScaleFactorOption > scaleOptions_
dqm::legacy::MonitorElement MonitorElement
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:45