CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalDigitizer.h
Go to the documentation of this file.
1 #ifndef HcalSimProducers_HcalDigitizer_h
2 #define HcalSimProducers_HcalDigitizer_h
3 
18 
19 #include <vector>
20 
21 class CaloHitResponse;
23 class HcalAmplifier;
24 class HPDIonFeedbackSim;
25 class HcalCoderFactory;
26 class HcalElectronicsSim;
27 class HcalHitCorrection;
28 class HcalTimeSlewSim;
30 class HcalShapes;
31 class PCaloHit;
33 
34 namespace edm {
35  class ConsumesCollector;
36 }
37 
39 {
40 public:
41 
43  virtual ~HcalDigitizer();
44 
46  void initializeEvent(edm::Event const& e, edm::EventSetup const& c);
47  void accumulate(edm::Event const& e, edm::EventSetup const& c);
48  void accumulate(PileUpEventPrincipal const& e, edm::EventSetup const& c);
49  void finalizeEvent(edm::Event& e, edm::EventSetup const& c);
50  void beginRun(const edm::EventSetup & es);
51  void endRun();
52 
57 
58 private:
59  void accumulateCaloHits(edm::Handle<std::vector<PCaloHit> > const& hcalHits, edm::Handle<std::vector<PCaloHit> > const& zdcHits, int bunchCrossing);
60 
62  void fillFakeHits();
65  void checkGeometry(const edm::EventSetup& eventSetup);
67  void updateGeometry(const edm::EventSetup& eventSetup);
68 
69  void buildHOSiPMCells(const std::vector<DetId>& allCells, const edm::EventSetup& eventSetup);
70 
71  //function to evaluate aging at the digi level
72  void darkening(std::vector<PCaloHit>& hcalHits);
73 
80 
83 
90 
91  // we need separate amplifiers (and electronicssims)
92  // because they might have separate noise generators
97 
101 
108 
114 
119 
129 
130  // need to cache some DetIds for the digitizers,
131  // if they don't come straight from the geometry
132  std::vector<DetId> theHBHEDetIds;
133  std::vector<DetId> theHOHPDDetIds;
134  std::vector<DetId> theHOSiPMDetIds;
135 
137  bool relabel_;
138 
140 
142 
146 };
147 
148 #endif
149 
150 
151 
HBHEHitFilter theHBHEHitFilter
virtual ~HcalDigitizer()
HcalElectronicsSim * theHFElectronicsSim
HBHEDigitizer * theHBHEDigitizer
HOHitFilter theHOHitFilter
CaloTDigitizer< HcalUpgradeDigitizerTraits > UpgradeDigitizer
Definition: HcalDigitizer.h:79
void darkening(std::vector< PCaloHit > &hcalHits)
HFDigitizer * theHFDigitizer
HFHitFilter theHFHitFilter
void checkGeometry(const edm::EventSetup &eventSetup)
HcalSimParameterMap * theParameterMap
Definition: HcalDigitizer.h:81
void fillFakeHits()
some hits in each subdetector, just for testing purposes
HcalTimeSlewSim * theTimeSlewSim
HcalAmplifier * theHFAmplifier
Definition: HcalDigitizer.h:94
HcalElectronicsSim * theUpgradeHFElectronicsSim
HcalCoderFactory * theCoderFactory
Definition: HcalDigitizer.h:99
HcalHitRelabeller * theRelabeller
HcalCoderFactory * theUpgradeCoderFactory
void initializeEvent(edm::Event const &e, edm::EventSetup const &c)
UpgradeDigitizer * theHFUpgradeDigitizer
CaloTDigitizer< HFDigitizerTraits > HFDigitizer
Definition: HcalDigitizer.h:77
HcalAmplifier * theHBHEAmplifier
Definition: HcalDigitizer.h:93
CaloTDigitizer< ZDCDigitizerTraits > ZDCDigitizer
Definition: HcalDigitizer.h:78
std::string hitsProducer_
HcalElectronicsSim * theHOElectronicsSim
double deliveredLumi
HcalShapes * theShapes
Definition: HcalDigitizer.h:82
Creates electronics signals from hits.
void setHFNoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
std::vector< DetId > theHBHEDetIds
void buildHOSiPMCells(const std::vector< DetId > &allCells, const edm::EventSetup &eventSetup)
ZDCHitFilter theZDCHitFilter
HPDIonFeedbackSim * theIonFeedback
Definition: HcalDigitizer.h:98
CaloHitResponse * theHOResponse
Definition: HcalDigitizer.h:86
HcalHitFilter theHOSiPMHitFilter
CaloHitResponse * theHOSiPMResponse
Definition: HcalDigitizer.h:87
ZDCDigitizer * theZDCDigitizer
std::vector< DetId > theHOHPDDetIds
HcalHitCorrection * theHitCorrection
CaloHitResponse * theZDCResponse
Definition: HcalDigitizer.h:89
void accumulateCaloHits(edm::Handle< std::vector< PCaloHit > > const &hcalHits, edm::Handle< std::vector< PCaloHit > > const &zdcHits, int bunchCrossing)
HcalElectronicsSim * theZDCElectronicsSim
HcalElectronicsSim * theUpgradeHBHEElectronicsSim
void beginRun(const edm::EventSetup &es)
CaloTDigitizer< HODigitizerTraits > HODigitizer
Definition: HcalDigitizer.h:76
void accumulate(edm::Event const &e, edm::EventSetup const &c)
HcalAmplifier * theHOAmplifier
Definition: HcalDigitizer.h:95
HFRecalibration * m_HFRecalibration
HcalElectronicsSim * theHBHEElectronicsSim
CaloHitResponse * theHBHEResponse
Definition: HcalDigitizer.h:84
HODigitizer * theHODigitizer
std::vector< DetId > theHOSiPMDetIds
const CaloGeometry * theGeometry
Definition: HcalDigitizer.h:66
CaloHitResponse * theHFResponse
Definition: HcalDigitizer.h:88
HODigitizer * theHOSiPMDigitizer
void setZDCNoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
HBHEDigitizer * theHBHESiPMDigitizer
HEDarkening * m_HEDarkening
CaloHitResponse * theHBHESiPMResponse
Definition: HcalDigitizer.h:85
void updateGeometry(const edm::EventSetup &eventSetup)
void setHBHENoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
CaloVNoiseHitGenerator * theNoiseHitGenerator
HcalAmplifier * theZDCAmplifier
Definition: HcalDigitizer.h:96
void finalizeEvent(edm::Event &e, edm::EventSetup const &c)
UpgradeDigitizer * theHBHEUpgradeDigitizer
void setHONoiseSignalGenerator(HcalBaseSignalGenerator *noiseGenerator)
CaloTDigitizer< HBHEDigitizerTraits > HBHEDigitizer
Definition: HcalDigitizer.h:75
HcalDigitizer(const edm::ParameterSet &ps, edm::ConsumesCollector &iC)
CaloVNoiseSignalGenerator * theNoiseGenerator