CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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);
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 void beginRun(const edm::Run &, const edm::EventSetup &)
virtual void endRun(const edm::Run &, const edm::EventSetup &)
std::vector< YODA::Point2D > getPoint2DValsErrs(std::string filename, std::string path, std::string name)
virtual ~RivetHarvesting()
edm::InputTag _hepmcCollection
std::vector< double > _crossSections
RivetHarvesting(const edm::ParameterSet &)
std::vector< std::string > _fileNames
virtual void beginJob()
std::vector< double > _sumOfWeights
Rivet::AnalysisHandler _analysisHandler
std::string _outFileName
virtual void analyze(const edm::Event &, const edm::EventSetup &)
tuple filename
Definition: lut2db_cfg.py:20
std::vector< std::string > _analysisNames
Definition: Run.h:43
virtual void endJob()