CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HGCDigiProducer.h
Go to the documentation of this file.
1 #ifndef SimCalorimetry_HGCSimProducers_HGCDigiProducer_h
2 #define SimCalorimetry_HGCSimProducers_HGCDigiProducer_h
3 
6 
7 #include <memory>
8 #include <vector>
9 
10 namespace edm {
11  class ConsumesCollector;
12  namespace stream {
13  class EDProducerBase;
14  }
15  class ParameterSet;
16  class StreamID;
17 }
18 
19 namespace CLHEP {
20  class HepRandomEngine;
21 }
22 
24 public:
27 
28  virtual void initializeEvent(edm::Event const&, edm::EventSetup const&) override;
29  virtual void finalizeEvent(edm::Event&, edm::EventSetup const&) override;
30  virtual void accumulate(edm::Event const&, edm::EventSetup const&) override;
31  virtual void accumulate(PileUpEventPrincipal const&, edm::EventSetup const&, edm::StreamID const&) override;
32  virtual void beginRun(edm::Run const&, edm::EventSetup const&) override;
33  virtual void endRun(edm::Run const&, edm::EventSetup const&) override;
35 private:
36  CLHEP::HepRandomEngine* randomEngine(edm::StreamID const& streamID);
37  //the digitizer
38  std::unique_ptr<HGCDigitizer> theDigitizer_;
39  std::vector<CLHEP::HepRandomEngine*> randomEngines_;
40 };
41 
42 #endif
virtual void beginRun(edm::Run const &, edm::EventSetup const &) override
CLHEP::HepRandomEngine * randomEngine(edm::StreamID const &streamID)
std::vector< CLHEP::HepRandomEngine * > randomEngines_
HGCDigiProducer(edm::ParameterSet const &pset, edm::stream::EDProducerBase &mixMod, edm::ConsumesCollector &iC)
virtual void accumulate(edm::Event const &, edm::EventSetup const &) override
std::unique_ptr< HGCDigitizer > theDigitizer_
virtual void endRun(edm::Run const &, edm::EventSetup const &) override
virtual void finalizeEvent(edm::Event &, edm::EventSetup const &) override
virtual void initializeEvent(edm::Event const &, edm::EventSetup const &) override
Definition: Run.h:42