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  virtual ~RivetHarvesting();
25 
26  virtual void beginJob();
27 
28  virtual void endJob();
29 
30  virtual void analyze(const edm::Event&, const edm::EventSetup&);
31 
32  virtual void beginRun(const edm::Run&, const edm::EventSetup&);
33 
34  virtual void endRun(const edm::Run&, const edm::EventSetup&);
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
def analyze(function, filename, filter=None)
Definition: Profiling.py:11
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:42