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 
21 
22 #include <string>
23 #include <vector>
24 
25 class PEcalTBInfo;
26 
27 namespace edm {
28  class StreamID;
29  class ConsumesCollector;
30 } // namespace edm
31 
32 namespace CLHEP {
33  class HepRandomEngine;
34 }
35 
37 public:
39  ~HcalTBDigiProducer() override;
40 
41  void initializeEvent(edm::Event const &e, edm::EventSetup const &c) override;
42  void accumulate(edm::Event const &e, edm::EventSetup const &c) override;
43  void accumulate(PileUpEventPrincipal const &e, edm::EventSetup const &c, edm::StreamID const &) override;
44  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);
48 
54  void updateGeometry();
55 
56  void setPhaseShift(const DetId &detId);
57 
59 
60 private:
64 
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  CLHEP::HepRandomEngine *randomEngine_ = nullptr;
98 };
99 
100 #endif
CaloTDigitizer
Definition: CaloTDigitizer.h:42
HcalTBDigiProducer::hoCells
std::vector< DetId > hoCells
Definition: HcalTBDigiProducer.h:87
HcalTBDigiProducer::theElectronicsSim
HcalElectronicsSim * theElectronicsSim
Definition: HcalTBDigiProducer.h:75
edm::StreamID
Definition: StreamID.h:30
HcalHitFilter.h
HcalTBDigiProducer::theHBHEHits
std::vector< PCaloHit > theHBHEHits
Definition: HcalTBDigiProducer.h:89
HcalSimParameters.h
HcalTBSimParameterMap
Definition: HcalTBSimParameterMap.h:8
HcalTBDigiProducer::doPhaseShift
bool doPhaseShift
Definition: HcalTBDigiProducer.h:94
HcalTBDigiProducer::theTimeSlewSim
HcalTimeSlewSim * theTimeSlewSim
Definition: HcalTBDigiProducer.h:80
HcalTBDigiProducer::theParameterMap
HcalTBSimParameterMap * theParameterMap
Definition: HcalTBDigiProducer.h:65
hfClusterShapes_cfi.hits
hits
Definition: hfClusterShapes_cfi.py:5
HcalTBDigiProducer::theHOHitFilter
HOHitFilter theHOHitFilter
Definition: HcalTBDigiProducer.h:78
HcalTBDigiProducer::theHBHEResponse
CaloHitResponse * theHBHEResponse
Definition: HcalTBDigiProducer.h:70
edm
HLT enums.
Definition: AlignableModifier.h:19
HcalTBDigiProducer::hcalTimeSlew_delay_
const HcalTimeSlew * hcalTimeSlew_delay_
Definition: HcalTBDigiProducer.h:58
HcalTBDigiProducer::theHOHits
std::vector< PCaloHit > theHOHits
Definition: HcalTBDigiProducer.h:89
HcalTBDigiProducer::theGeometry
const CaloGeometry * theGeometry
Definition: HcalTBDigiProducer.h:85
HcalHitFilter< HcalBarrel, HcalEndcap >
PileUpEventPrincipal
Definition: PileUpEventPrincipal.h:19
HcalTBDigiProducer::finalizeEvent
void finalizeEvent(edm::Event &e, edm::EventSetup const &c) override
Definition: HcalTBDigiProducer.cc:178
HcalTBDigiProducer::tunePhaseShift
double tunePhaseShift
Definition: HcalTBDigiProducer.h:95
edm::Handle
Definition: AssociativeIterator.h:50
HcalTimeSlew
Definition: HcalTimeSlew.h:19
ProducesCollector.h
HcalTBDigiProducer::HcalTBDigiProducer
HcalTBDigiProducer(const edm::ParameterSet &ps, edm::ProducesCollector, edm::ConsumesCollector &iC)
Definition: HcalTBDigiProducer.cc:22
HcalCoderFactory
Definition: HcalCoderFactory.h:8
HcalDigitizerTraits.h
DetId
Definition: DetId.h:17
CaloGeometry
Definition: CaloGeometry.h:21
HcalTBDigiProducer::thisPhaseShift
double thisPhaseShift
Definition: HcalTBDigiProducer.h:92
DigiAccumulatorMixMod.h
HcalSimParameterMap
Definition: HcalSimParameterMap.h:10
HcalTBSimParameterMap.h
HcalTBDigiProducer::HODigitizer
CaloTDigitizer< HODigitizerTraits > HODigitizer
Definition: HcalTBDigiProducer.h:63
HcalTBDigiProducer::checkGeometry
void checkGeometry(const edm::EventSetup &eventSetup)
Definition: HcalTBDigiProducer.cc:210
DigiAccumulatorMixMod
Definition: DigiAccumulatorMixMod.h:41
HcalTBDigiProducer::HBHEDigitizer
CaloTDigitizer< HBHEDigitizerTraits > HBHEDigitizer
Definition: HcalTBDigiProducer.h:62
CLHEP
Definition: CocoaGlobals.h:27
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HcalCoderFactory.h
HcalTBDigiProducer::theHOResponse
CaloHitResponse * theHOResponse
Definition: HcalTBDigiProducer.h:71
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
PEcalTBInfo
Definition: PEcalTBInfo.h:18
HcalTBDigiProducer::theHcalIntegratedShape
CaloVShape * theHcalIntegratedShape
Definition: HcalTBDigiProducer.h:68
CaloHitResponse
Creates electronics signals from hits.
Definition: CaloHitResponse.h:33
HcalTBDigiProducer::theCoderFactory
HcalCoderFactory * theCoderFactory
Definition: HcalTBDigiProducer.h:74
edm::EventSetup
Definition: EventSetup.h:57
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
HcalTBDigiProducer::theHODigitizer
HODigitizer * theHODigitizer
Definition: HcalTBDigiProducer.h:83
CaloTDigitizer.h
CaloHitResponse.h
CaloVShape
Electronic response of the preamp.
Definition: CaloVShape.h:11
HcalTBDigiProducer::updateGeometry
void updateGeometry()
Definition: HcalTBDigiProducer.cc:224
HcalTBDigiProducer::hbheCells
std::vector< DetId > hbheCells
Definition: HcalTBDigiProducer.h:86
HcalTBDigiProducer::theHcalShape
CaloVShape * theHcalShape
Definition: HcalTBDigiProducer.h:67
HcalTBDigiProducer::~HcalTBDigiProducer
~HcalTBDigiProducer() override
Definition: HcalTBDigiProducer.cc:83
edm::ProducesCollector
Definition: ProducesCollector.h:43
HcalTBDigiProducer::accumulate
void accumulate(edm::Event const &e, edm::EventSetup const &c) override
Definition: HcalTBDigiProducer.cc:156
HcalAmplifier
Definition: HcalAmplifier.h:20
HcalTimeSlewSim
Definition: HcalTimeSlewSim.h:19
options_cfi.eventSetup
eventSetup
Definition: options_cfi.py:12
HcalElectronicsSim
Definition: HcalElectronicsSim.h:25
HcalElectronicsSim.h
edm::PCaloHitContainer
std::vector< PCaloHit > PCaloHitContainer
Definition: PCaloHitContainer.h:8
EventSetup.h
HcalTBDigiProducer::setPhaseShift
void setPhaseShift(const DetId &detId)
Definition: HcalTBDigiProducer.cc:248
PCaloHitContainer.h
HcalTBDigiProducer::sortHits
void sortHits(const edm::PCaloHitContainer &hits)
fills the vectors for each subdetector
Definition: HcalTBDigiProducer.cc:197
HcalAmplifier.h
ParameterSet.h
HcalTBDigiProducer::accumulateCaloHits
void accumulateCaloHits(edm::Handle< std::vector< PCaloHit >> const &hits, int bunchCrossing)
Definition: HcalTBDigiProducer.cc:145
edm::Event
Definition: Event.h:73
HcalTBDigiProducer::ecalTBInfoLabel
std::string ecalTBInfoLabel
Definition: HcalTBDigiProducer.h:91
HcalTBDigiProducer::randomEngine_
CLHEP::HepRandomEngine * randomEngine_
Definition: HcalTBDigiProducer.h:97
HcalShape.h
HcalTBDigiProducer::theAmplifier
HcalAmplifier * theAmplifier
Definition: HcalTBDigiProducer.h:73
edm::ConsumesCollector
Definition: ConsumesCollector.h:39
HcalTBDigiProducer::paraMap
HcalSimParameterMap * paraMap
Definition: HcalTBDigiProducer.h:66
HcalTBDigiProducer::initializeEvent
void initializeEvent(edm::Event const &e, edm::EventSetup const &c) override
Definition: HcalTBDigiProducer.cc:108
HcalTBDigiProducer::theHBHEHitFilter
HBHEHitFilter theHBHEHitFilter
Definition: HcalTBDigiProducer.h:77
HcalTimeSlewSim.h
HcalTBDigiProducer
Definition: HcalTBDigiProducer.h:36
HcalTBDigiProducer::theHBHEDigitizer
HBHEDigitizer * theHBHEDigitizer
Definition: HcalTBDigiProducer.h:82
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37