CMS 3D CMS Logo

HcalTBDigiProducer.h
Go to the documentation of this file.
1 #ifndef SimCalorimetry_HcalTestBeam_HcalTBDigiProducer_h
2 #define SimCalorimetry_HcalTestBeam_HcalTBDigiProducer_h
3 
20 
21 #include <string>
22 #include <vector>
23 
24 class PEcalTBInfo;
25 
26 namespace edm {
27  class StreamID;
28  class ConsumesCollector;
29 } // namespace edm
30 
31 namespace CLHEP {
32  class HepRandomEngine;
33 }
34 
36 public:
38  ~HcalTBDigiProducer() override;
39 
40  void initializeEvent(edm::Event const &e, edm::EventSetup const &c) override;
41  void accumulate(edm::Event const &e, edm::EventSetup const &c) override;
42  void accumulate(PileUpEventPrincipal const &e, edm::EventSetup const &c, edm::StreamID const &) override;
43  void finalizeEvent(edm::Event &e, edm::EventSetup const &c) override;
44 
45 private:
46  void accumulateCaloHits(edm::Handle<std::vector<PCaloHit>> const &hits, int bunchCrossing);
47 
49  void sortHits(const edm::PCaloHitContainer &hits);
52  void checkGeometry(const edm::EventSetup &eventSetup);
53  void updateGeometry();
54 
55  void setPhaseShift(const DetId &detId);
56 
58 
59 private:
63 
67 
70 
74 
77 
79 
80  HBHEDigitizer *theHBHEDigitizer;
81  HODigitizer *theHODigitizer;
82 
84  std::vector<DetId> hbheCells;
85  std::vector<DetId> hoCells;
86 
87  std::vector<PCaloHit> theHBHEHits, theHOHits;
88 
91 
94 
95  CLHEP::HepRandomEngine *randomEngine_ = nullptr;
96 };
97 
98 #endif
std::vector< PCaloHit > PCaloHitContainer
std::vector< DetId > hoCells
CaloHitResponse * theHBHEResponse
HBHEHitFilter theHBHEHitFilter
HODigitizer * theHODigitizer
HcalElectronicsSim * theElectronicsSim
Electronic response of the preamp.
Definition: CaloVShape.h:11
HOHitFilter theHOHitFilter
HcalTBSimParameterMap * theParameterMap
const CaloGeometry * theGeometry
CaloTDigitizer< HBHEDigitizerTraits > HBHEDigitizer
CaloTDigitizer< HODigitizerTraits > HODigitizer
CaloVShape * theHcalIntegratedShape
Creates electronics signals from hits.
HBHEDigitizer * theHBHEDigitizer
std::vector< DetId > hbheCells
std::vector< PCaloHit > theHOHits
Definition: DetId.h:18
CaloHitResponse * theHOResponse
HcalAmplifier * theAmplifier
std::string ecalTBInfoLabel
HcalCoderFactory * theCoderFactory
CaloVShape * theHcalShape
HLT enums.
bool checkGeometry(bool=true)
const HcalTimeSlew * hcalTimeSlew_delay_
HcalTimeSlewSim * theTimeSlewSim