CMS 3D CMS Logo

OscarMTProducer.h
Go to the documentation of this file.
1 #ifndef SimG4Core_OscarMTProducer_H
2 #define SimG4Core_OscarMTProducer_H
3 
10 
12 
13 #include <memory>
14 
15 class SimProducer;
16 class RunManagerMTWorker;
17 
18 class OscarMTProducer : public edm::stream::EDProducer<edm::GlobalCache<OscarMTMasterThread>,
19  edm::RunCache<int> // for some reason void doesn't compile
20  > {
21 public:
22  typedef std::vector<std::shared_ptr<SimProducer> > Producers;
23 
24  explicit OscarMTProducer(edm::ParameterSet const& p, const OscarMTMasterThread*);
25  ~OscarMTProducer() override;
26 
27  static std::unique_ptr<OscarMTMasterThread> initializeGlobalCache(const edm::ParameterSet& iConfig);
28  static std::shared_ptr<int> globalBeginRun(const edm::Run& iRun,
29  const edm::EventSetup& iSetup,
30  const OscarMTMasterThread* masterThread);
31  static void globalEndRun(const edm::Run& iRun, const edm::EventSetup& iSetup, const RunContext* iContext);
32  static void globalEndJob(OscarMTMasterThread* masterThread);
33 
34  void endRun(const edm::Run& r, const edm::EventSetup& c) override;
35  void produce(edm::Event& e, const edm::EventSetup& c) override;
36 
37 private:
38  std::unique_ptr<RunManagerMTWorker> m_runManagerWorker;
39 };
40 
41 #endif
Handle.h
edm::Run
Definition: Run.h:45
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
OscarMTProducer::globalEndRun
static void globalEndRun(const edm::Run &iRun, const edm::EventSetup &iSetup, const RunContext *iContext)
Definition: OscarMTProducer.cc:154
EDProducer.h
OscarMTProducer::OscarMTProducer
OscarMTProducer(edm::ParameterSet const &p, const OscarMTMasterThread *)
Definition: OscarMTProducer.cc:65
OscarMTMasterThread.h
OscarMTProducer
Definition: OscarMTProducer.h:18
OscarMTProducer::Producers
std::vector< std::shared_ptr< SimProducer > > Producers
Definition: OscarMTProducer.h:22
OscarMTProducer::initializeGlobalCache
static std::unique_ptr< OscarMTMasterThread > initializeGlobalCache(const edm::ParameterSet &iConfig)
Definition: OscarMTProducer.cc:136
OscarMTProducer::produce
void produce(edm::Event &e, const edm::EventSetup &c) override
Definition: OscarMTProducer.cc:166
edm::stream::RunContextT
Definition: Contexts.h:31
MakerMacros.h
OscarMTProducer::globalBeginRun
static std::shared_ptr< int > globalBeginRun(const edm::Run &iRun, const edm::EventSetup &iSetup, const OscarMTMasterThread *masterThread)
Definition: OscarMTProducer.cc:143
Run.h
OscarMTProducer::m_runManagerWorker
std::unique_ptr< RunManagerMTWorker > m_runManagerWorker
Definition: OscarMTProducer.h:38
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
SimProducer
Definition: SimProducer.h:64
edm::stream::EDProducer
Definition: EDProducer.h:38
OscarMTProducer::~OscarMTProducer
~OscarMTProducer() override
Definition: OscarMTProducer.cc:134
edm::EventSetup
Definition: EventSetup.h:57
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
OscarMTMasterThread
Definition: OscarMTMasterThread.h:32
OscarMTProducer::globalEndJob
static void globalEndJob(OscarMTMasterThread *masterThread)
Definition: OscarMTProducer.cc:158
alignCSCRings.r
r
Definition: alignCSCRings.py:93
RunManagerMTWorker
Definition: RunManagerMTWorker.h:41
EventSetup.h
OscarMTProducer::endRun
void endRun(const edm::Run &r, const edm::EventSetup &c) override
Definition: OscarMTProducer.cc:160
edm::Event
Definition: Event.h:73
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37