CMS 3D CMS Logo

OscarProducer.h
Go to the documentation of this file.
1 #ifndef SimG4Core_OscarProducer_H
2 #define SimG4Core_OscarProducer_H
3 
10 
13 
14 #include <memory>
15 
16 class OscarProducer : public edm::one::EDProducer<edm::one::SharedResources, edm::one::WatchRuns>
17 {
18 public:
19  typedef std::vector<std::shared_ptr<SimProducer> > Producers;
20 
21  explicit OscarProducer(edm::ParameterSet const & p);
22  ~OscarProducer() override;
23  void beginRun(const edm::Run & r,const edm::EventSetup& c) override;
24  void endRun(const edm::Run & r,const edm::EventSetup& c) override;
25  void produce(edm::Event & e, const edm::EventSetup& c) override;
26 
27 private:
28  std::unique_ptr<RunManager> m_runManager;
29  Producers m_producers;
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
void endRun(const edm::Run &r, const edm::EventSetup &c) override
std::vector< std::shared_ptr< SimProducer > > Producers
Definition: OscarProducer.h:19
OscarProducer(edm::ParameterSet const &p)
void beginRun(const edm::Run &r, const edm::EventSetup &c) override
void produce(edm::Event &e, const edm::EventSetup &c) override
~OscarProducer() override
std::unique_ptr< CustomUIsession > m_UIsession
Definition: OscarProducer.h:30
Definition: Run.h:43