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 
28 public:
29 
31  virtual ~HcalTBDigiProducer();
32 
33  virtual void initializeEvent(edm::Event const& e, edm::EventSetup const& c) override;
34  virtual void accumulate(edm::Event const& e, edm::EventSetup const& c) override ;
35  virtual void accumulate(PileUpEventPrincipal const& e, edm::EventSetup const& c) override;
36  virtual void finalizeEvent(edm::Event& e, edm::EventSetup const& c) override;
37 
38 private:
39  void accumulateCaloHits(edm::Handle<std::vector<PCaloHit> > const& hits, int bunchCrossing);
40 
42  void sortHits(const edm::PCaloHitContainer & hits);
45  void checkGeometry(const edm::EventSetup& eventSetup);
46  void updateGeometry();
47 
48  void setPhaseShift(const DetId & detId);
49 
50 private:
51 
55 
59 
62 
66 
69 
71 
74 
76  std::vector<DetId> hbheCells;
77  std::vector<DetId> hoCells;
78 
79  std::vector<PCaloHit> theHBHEHits, theHOHits;
80 
83 
86 };
87 
88 #endif
89 
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
const CaloGeometry * theGeometry
CaloTDigitizer< HBHEDigitizerTraits > HBHEDigitizer
std::vector< PCaloHit > theHBHEHits
CaloTDigitizer< HODigitizerTraits > HODigitizer
CaloVShape * theHcalIntegratedShape
Creates electronics signals from hits.
HBHEDigitizer * theHBHEDigitizer
void accumulateCaloHits(edm::Handle< std::vector< PCaloHit > > const &hits, int bunchCrossing)
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