CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalTBDigiProducer.h
Go to the documentation of this file.
1 #ifndef SimCalorimetry_HcalTestBeam_HcalTBDigiProducer_h
2 #define SimCalorimetry_HcalTestBeam_HcalTBDigiProducer_h
3 
21 
22 #include<vector>
23 #include<string>
24 
25 class PEcalTBInfo;
26 
27 namespace edm {
28  class StreamID;
29 }
30 
31 namespace CLHEP {
32  class HepRandomEngine;
33 }
34 
36 public:
37 
39  virtual ~HcalTBDigiProducer();
40 
41  virtual void initializeEvent(edm::Event const& e, edm::EventSetup const& c) override;
42  virtual void accumulate(edm::Event const& e, edm::EventSetup const& c) override ;
43  virtual void accumulate(PileUpEventPrincipal const& e, edm::EventSetup const& c, edm::StreamID const&) override;
44  virtual void finalizeEvent(edm::Event& e, edm::EventSetup const& c) override;
45 
46 private:
47  void accumulateCaloHits(edm::Handle<std::vector<PCaloHit> > const& hits, int bunchCrossing, CLHEP::HepRandomEngine*);
48 
50  void sortHits(const edm::PCaloHitContainer & hits);
53  void checkGeometry(const edm::EventSetup& eventSetup);
54  void updateGeometry();
55 
56  void setPhaseShift(const DetId & detId);
57 
58  CLHEP::HepRandomEngine* randomEngine(edm::StreamID const& streamID);
59 
60 private:
61 
65 
69 
72 
76 
79 
81 
84 
86  std::vector<DetId> hbheCells;
87  std::vector<DetId> hoCells;
88 
89  std::vector<PCaloHit> theHBHEHits, theHOHits;
90 
93 
96 
97  std::vector<CLHEP::HepRandomEngine*> randomEngines_;
98 };
99 
100 #endif
void setPhaseShift(const DetId &detId)
virtual void finalizeEvent(edm::Event &e, edm::EventSetup const &c) override
void sortHits(const edm::PCaloHitContainer &hits)
fills the vectors for each subdetector
std::vector< PCaloHit > PCaloHitContainer
std::vector< DetId > hoCells
CaloHitResponse * theHBHEResponse
HcalTBDigiProducer(const edm::ParameterSet &ps, edm::one::EDProducerBase &mixMod, edm::ConsumesCollector &iC)
HBHEHitFilter theHBHEHitFilter
HODigitizer * theHODigitizer
HcalElectronicsSim * theElectronicsSim
Electronic response of the preamp.
Definition: CaloVShape.h:11
HOHitFilter theHOHitFilter
HcalTBSimParameterMap * theParameterMap
std::vector< CLHEP::HepRandomEngine * > randomEngines_
const CaloGeometry * theGeometry
CaloTDigitizer< HBHEDigitizerTraits > HBHEDigitizer
std::vector< PCaloHit > theHBHEHits
CaloTDigitizer< HODigitizerTraits > HODigitizer
CLHEP::HepRandomEngine * randomEngine(edm::StreamID const &streamID)
CaloVShape * theHcalIntegratedShape
Creates electronics signals from hits.
HBHEDigitizer * theHBHEDigitizer
void checkGeometry(const edm::EventSetup &eventSetup)
std::vector< DetId > hbheCells
virtual void accumulate(edm::Event const &e, edm::EventSetup const &c) override
std::vector< PCaloHit > theHOHits
Definition: DetId.h:18
CaloHitResponse * theHOResponse
HcalHitCorrection * theHitCorrection
HcalAmplifier * theAmplifier
std::string ecalTBInfoLabel
HcalCoderFactory * theCoderFactory
CaloVShape * theHcalShape
virtual void initializeEvent(edm::Event const &e, edm::EventSetup const &c) override
void accumulateCaloHits(edm::Handle< std::vector< PCaloHit > > const &hits, int bunchCrossing, CLHEP::HepRandomEngine *)