CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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:
18  DQMRivetClient(const edm::ParameterSet& pset);
20 
21  void analyze(const edm::Event& event, const edm::EventSetup& eventSetup) {};
22 
23  void endJob();
24 
26  void endRun(const edm::Run& r, const edm::EventSetup& c);
27 
28  struct LumiOption
29  {
30  std::string name, normHistName;
31  double xsection;
32  };
33 
35  {
36  std::string name;
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_;
49  std::string outputFileName_;
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)
DQMRivetClient(const edm::ParameterSet &pset)
void scaleByFactor(const std::string &startDir, const std::string &histName, double factor)
std::vector< DQMGenericClient::NormOption > normOptions_
void endRun(const edm::Run &r, const edm::EventSetup &c)
EndRun.
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
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
std::vector< std::string > subDirs_
void normalizeToLumi(const std::string &startDir, const std::string &histName, const std::string &normHistName, double xsection)
Definition: Run.h:33