CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
OscarProducer.h
Go to the documentation of this file.
1 #ifndef SimG4Core_OscarProducer_H
2 #define SimG4Core_OscarProducer_H
3 
10 
13 
15 
16 #include <memory>
17 
18 class OscarProducer : public edm::one::EDProducer<edm::one::SharedResources, edm::one::WatchRuns>
19 {
20 public:
21  typedef std::vector<std::shared_ptr<SimProducer> > Producers;
22 
23  explicit OscarProducer(edm::ParameterSet const & p);
24  virtual ~OscarProducer();
25  virtual void beginRun(const edm::Run & r,const edm::EventSetup& c) override;
26  virtual void endRun(const edm::Run & r,const edm::EventSetup& c) override;
27  virtual void produce(edm::Event & e, const edm::EventSetup& c) override;
28 
29 private:
30  std::unique_ptr<RunManager> m_runManager;
32  std::unique_ptr<CustomUIsession> m_UIsession;
33  //edm::EDGetTokenT<edm::HepMCProduct> m_HepMC;
34 };
35 
36 #endif
Producers m_producers
Definition: OscarProducer.h:31
std::unique_ptr< RunManager > m_runManager
Definition: OscarProducer.h:30
virtual void endRun(const edm::Run &r, const edm::EventSetup &c) override
std::vector< std::shared_ptr< SimProducer > > Producers
Definition: OscarProducer.h:21
OscarProducer(edm::ParameterSet const &p)
virtual ~OscarProducer()
virtual void beginRun(const edm::Run &r, const edm::EventSetup &c) override
virtual void produce(edm::Event &e, const edm::EventSetup &c) override
std::unique_ptr< CustomUIsession > m_UIsession
Definition: OscarProducer.h:32
Definition: Run.h:43