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 
12 
14 
15 #include <memory>
16 
17 class OscarProducer : public edm::one::EDProducer<edm::one::SharedResources, edm::one::WatchRuns>
18 {
19 public:
20  typedef std::vector<boost::shared_ptr<SimProducer> > Producers;
21 
22  explicit OscarProducer(edm::ParameterSet const & p);
23  virtual ~OscarProducer();
24  virtual void beginRun(const edm::Run & r,const edm::EventSetup& c) override;
25  virtual void endRun(const edm::Run & r,const edm::EventSetup& c) override { }
26  virtual void produce(edm::Event & e, const edm::EventSetup& c) override;
27 private:
28  std::unique_ptr<RunManager> m_runManager;
30  std::unique_ptr<CustomUIsession> m_UIsession;
31 };
32 
33 #endif
Producers m_producers
Definition: OscarProducer.h:29
std::unique_ptr< RunManager > m_runManager
Definition: OscarProducer.h:28
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::vector< boost::shared_ptr< SimProducer > > Producers
Definition: OscarProducer.h:20
virtual void endRun(const edm::Run &r, const edm::EventSetup &c) override
Definition: OscarProducer.h:25
std::unique_ptr< CustomUIsession > m_UIsession
Definition: OscarProducer.h:30
Definition: Run.h:41