CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LHESource.h
Go to the documentation of this file.
1 #ifndef GeneratorInterface_LHEInterface_LHESource_h
2 #define GeneratorInterface_LHEInterface_LHESource_h
3 
4 #include <memory>
5 
6 #include <boost/shared_ptr.hpp>
7 #include <boost/ptr_container/ptr_deque.hpp>
8 
13 
15 
16 namespace lhef {
17  class LHERunInfo;
18  class LHEEvent;
19  class LHEReader;
20 }
21 
22 class LHERunInfoProduct;
23 
25  public:
26  explicit LHESource(const edm::ParameterSet &params,
27  const edm::InputSourceDescription &desc);
28  virtual ~LHESource();
29 
30  protected:
31  virtual void endJob();
32  virtual void beginRun(edm::Run &run);
33  virtual void endRun(edm::Run &run);
34  virtual bool produce(edm::Event &event);
35 
36  virtual void nextEvent();
37 
38  std::auto_ptr<lhef::LHEReader> reader;
39 
40  boost::shared_ptr<lhef::LHERunInfo> runInfoLast;
41  boost::shared_ptr<lhef::LHERunInfo> runInfo;
42  boost::shared_ptr<lhef::LHEEvent> partonLevel;
43 
44  boost::ptr_deque<LHERunInfoProduct> runInfoProducts;
45  bool wasMerged;
46 };
47 
48 #endif // GeneratorInterface_LHEInterface_LHESource_h
boost::shared_ptr< lhef::LHERunInfo > runInfo
Definition: LHESource.h:41
virtual ~LHESource()
Definition: LHESource.cc:42
virtual void endRun(edm::Run &run)
Definition: LHESource.cc:98
boost::shared_ptr< lhef::LHEEvent > partonLevel
Definition: LHESource.h:42
boost::shared_ptr< lhef::LHERunInfo > runInfoLast
Definition: LHESource.h:40
virtual void nextEvent()
Definition: LHESource.cc:51
virtual void endJob()
Definition: LHESource.cc:46
LHESource(const edm::ParameterSet &params, const edm::InputSourceDescription &desc)
Definition: LHESource.cc:32
virtual bool produce(edm::Event &event)
Definition: LHESource.cc:107
bool wasMerged
Definition: LHESource.h:45
std::auto_ptr< lhef::LHEReader > reader
Definition: LHESource.h:38
virtual void beginRun(edm::Run &run)
Definition: LHESource.cc:70
boost::ptr_deque< LHERunInfoProduct > runInfoProducts
Definition: LHESource.h:44
Definition: Run.h:33