CMS 3D CMS Logo

RivetHarvesting.h
Go to the documentation of this file.
1 #ifndef GeneratorInterface_RivetInterface_RivetHarvesting
2 #define GeneratorInterface_RivetInterface_RivetHarvesting
3 
6 
7 #include "Rivet/AnalysisHandler.hh"
8 #include "Rivet/Tools/RivetYODA.hh"
9 
10 #include <map>
11 
12 namespace edm{
13  class ParameterSet;
14  class Event;
15  class EventSetup;
16  class InputTag;
17 }
18 
20 {
21  public:
23 
24  ~RivetHarvesting() override;
25 
26  void beginJob() override;
27 
28  void endJob() override;
29 
30  void analyze(const edm::Event&, const edm::EventSetup&) override;
31 
32  void beginRun(const edm::Run&, const edm::EventSetup&) override;
33 
34  void endRun(const edm::Run&, const edm::EventSetup&) override;
35 
36  private:
37 
38  //std::vector<Rivet::DPSXYPoint> getDPSXYValsErrs(std::string filename, std::string path, std::string name);
39  std::vector<YODA::Point2D> getPoint2DValsErrs(std::string filename, std::string path, std::string name);
40 
41  Rivet::AnalysisHandler _analysisHandler;
42  std::vector<std::string> _fileNames;
43  std::vector<double> _sumOfWeights;
44  std::vector<double> _crossSections;
45  std::vector<double> _lumis;
49  std::vector<std::string> _analysisNames;
50 };
51 
52 #endif
std::vector< double > _lumis
virtual example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
void beginJob()
Definition: Breakpoints.cc:15
edm::InputTag _hepmcCollection
std::vector< double > _crossSections
std::vector< std::string > _fileNames
std::vector< double > _sumOfWeights
Rivet::AnalysisHandler _analysisHandler
std::string _outFileName
HLT enums.
std::vector< std::string > _analysisNames
Definition: Run.h:43