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 
25 
26 #include <string>
27 #include <vector>
28 
29 class PEcalTBInfo;
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 
52  void checkGeometry(const edm::EventSetup &eventSetup);
53  void updateGeometry();
54 
55  void setPhaseShift(const DetId &detId);
56 
58 
59 private:
63 
68 
71 
75 
78 
80 
83 
89  std::vector<DetId> hbheCells;
90  std::vector<DetId> hoCells;
91 
92  std::vector<PCaloHit> theHBHEHits, theHOHits;
93 
96 
99 
100  CLHEP::HepRandomEngine *randomEngine_ = nullptr;
101 };
102 
103 #endif
CaloTDigitizer
Definition: CaloTDigitizer.h:42
HcalTBDigiProducer::hoCells
std::vector< DetId > hoCells
Definition: HcalTBDigiProducer.h:90
HcalTBDigiProducer::theElectronicsSim
HcalElectronicsSim * theElectronicsSim
Definition: HcalTBDigiProducer.h:74
edm::StreamID
Definition: StreamID.h:30
HcalHitFilter.h
HcalTBDigiProducer::theHBHEHits
std::vector< PCaloHit > theHBHEHits
Definition: HcalTBDigiProducer.h:92
HcalTBDigiProducer::hcalTimeSlew_delay_token_
edm::ESGetToken< HcalTimeSlew, HcalTimeSlewRecord > hcalTimeSlew_delay_token_
Definition: HcalTBDigiProducer.h:85
HcalSimParameters.h
HcalTBSimParameterMap
Definition: HcalTBSimParameterMap.h:8
HcalTBDigiProducer::doPhaseShift
bool doPhaseShift
Definition: HcalTBDigiProducer.h:97
HcalTBDigiProducer::theTimeSlewSim
HcalTimeSlewSim * theTimeSlewSim
Definition: HcalTBDigiProducer.h:79
HcalTBDigiProducer::theParameterMap
HcalTBSimParameterMap * theParameterMap
Definition: HcalTBDigiProducer.h:64
hfClusterShapes_cfi.hits
hits
Definition: hfClusterShapes_cfi.py:5
edm::ESWatcher< CaloGeometryRecord >
HcalTBDigiProducer::theHOHitFilter
HOHitFilter theHOHitFilter
Definition: HcalTBDigiProducer.h:77
HcalTBDigiProducer::theHBHEResponse
CaloHitResponse * theHBHEResponse
Definition: HcalTBDigiProducer.h:69
HcalTBDigiProducer::hcalTimeSlew_delay_
const HcalTimeSlew * hcalTimeSlew_delay_
Definition: HcalTBDigiProducer.h:57
HcalTBDigiProducer::theHOHits
std::vector< PCaloHit > theHOHits
Definition: HcalTBDigiProducer.h:92
HcalTBDigiProducer::theGeometry
const CaloGeometry * theGeometry
Definition: HcalTBDigiProducer.h:88
HcalHitFilter< HcalBarrel, HcalEndcap >
PileUpEventPrincipal
Definition: PileUpEventPrincipal.h:19
HcalTBDigiProducer::finalizeEvent
void finalizeEvent(edm::Event &e, edm::EventSetup const &c) override
Definition: HcalTBDigiProducer.cc:174
HcalTBDigiProducer::tunePhaseShift
double tunePhaseShift
Definition: HcalTBDigiProducer.h:98
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:19
HcalCoderFactory
Definition: HcalCoderFactory.h:8
HcalDigitizerTraits.h
DetId
Definition: DetId.h:17
CaloGeometry
Definition: CaloGeometry.h:21
HcalTBDigiProducer::thisPhaseShift
double thisPhaseShift
Definition: HcalTBDigiProducer.h:95
DigiAccumulatorMixMod.h
HcalSimParameterMap
Definition: HcalSimParameterMap.h:10
HcalTBSimParameterMap.h
HcalTBDigiProducer::HODigitizer
CaloTDigitizer< HODigitizerTraits > HODigitizer
Definition: HcalTBDigiProducer.h:62
HcalDbRecord.h
HcalTBDigiProducer::checkGeometry
void checkGeometry(const edm::EventSetup &eventSetup)
Definition: HcalTBDigiProducer.cc:206
DigiAccumulatorMixMod
Definition: DigiAccumulatorMixMod.h:41
HcalTBDigiProducer::HBHEDigitizer
CaloTDigitizer< HBHEDigitizerTraits > HBHEDigitizer
Definition: HcalTBDigiProducer.h:61
CaloGeometryRecord.h
CLHEP
Definition: CocoaGlobals.h:27
HcalCoderFactory.h
HcalTBDigiProducer::theHOResponse
CaloHitResponse * theHOResponse
Definition: HcalTBDigiProducer.h:70
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
PEcalTBInfo
Definition: PEcalTBInfo.h:18
FrameworkfwdMostUsed.h
HcalTBDigiProducer::theHcalIntegratedShape
CaloVShape * theHcalIntegratedShape
Definition: HcalTBDigiProducer.h:67
CaloHitResponse
Creates electronics signals from hits.
Definition: CaloHitResponse.h:33
HcalTBDigiProducer::theCoderFactory
HcalCoderFactory * theCoderFactory
Definition: HcalTBDigiProducer.h:73
edm::EventSetup
Definition: EventSetup.h:58
HcalTBDigiProducer::theHODigitizer
HODigitizer * theHODigitizer
Definition: HcalTBDigiProducer.h:82
CaloTDigitizer.h
CaloHitResponse.h
CaloVShape
Electronic response of the preamp.
Definition: CaloVShape.h:11
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ESGetToken< HcalDbService, HcalDbRecord >
HcalTBDigiProducer::updateGeometry
void updateGeometry()
Definition: HcalTBDigiProducer.cc:214
HcalTBDigiProducer::hbheCells
std::vector< DetId > hbheCells
Definition: HcalTBDigiProducer.h:89
HcalTBDigiProducer::theHcalShape
CaloVShape * theHcalShape
Definition: HcalTBDigiProducer.h:66
HcalTBDigiProducer::~HcalTBDigiProducer
~HcalTBDigiProducer() override
Definition: HcalTBDigiProducer.cc:82
edm::ProducesCollector
Definition: ProducesCollector.h:43
HcalTBDigiProducer::accumulate
void accumulate(edm::Event const &e, edm::EventSetup const &c) override
Definition: HcalTBDigiProducer.cc:152
ESWatcher.h
HcalTBDigiProducer::geometryWatcher_
edm::ESWatcher< CaloGeometryRecord > geometryWatcher_
Definition: HcalTBDigiProducer.h:87
HcalAmplifier
Definition: HcalAmplifier.h:20
HcalTimeSlewSim
Definition: HcalTimeSlewSim.h:19
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:238
PCaloHitContainer.h
HcalTBDigiProducer::sortHits
void sortHits(const edm::PCaloHitContainer &hits)
fills the vectors for each subdetector
Definition: HcalTBDigiProducer.cc:193
HcalTBDigiProducer::conditionsToken_
edm::ESGetToken< HcalDbService, HcalDbRecord > conditionsToken_
Definition: HcalTBDigiProducer.h:84
HcalTBDigiProducer::geometryToken_
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geometryToken_
Definition: HcalTBDigiProducer.h:86
HcalAmplifier.h
ParameterSet.h
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
HcalTBDigiProducer::accumulateCaloHits
void accumulateCaloHits(edm::Handle< std::vector< PCaloHit >> const &hits, int bunchCrossing)
Definition: HcalTBDigiProducer.cc:141
edm::Event
Definition: Event.h:73
HcalTBDigiProducer::ecalTBInfoLabel
std::string ecalTBInfoLabel
Definition: HcalTBDigiProducer.h:94
HcalTBDigiProducer::randomEngine_
CLHEP::HepRandomEngine * randomEngine_
Definition: HcalTBDigiProducer.h:100
HcalShape.h
HcalTBDigiProducer::theAmplifier
HcalAmplifier * theAmplifier
Definition: HcalTBDigiProducer.h:72
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
HcalTBDigiProducer::paraMap
HcalSimParameterMap * paraMap
Definition: HcalTBDigiProducer.h:65
HcalTBDigiProducer::initializeEvent
void initializeEvent(edm::Event const &e, edm::EventSetup const &c) override
Definition: HcalTBDigiProducer.cc:107
HcalTBDigiProducer::theHBHEHitFilter
HBHEHitFilter theHBHEHitFilter
Definition: HcalTBDigiProducer.h:76
HcalTimeSlewSim.h
HcalTBDigiProducer
Definition: HcalTBDigiProducer.h:35
HcalTBDigiProducer::theHBHEDigitizer
HBHEDigitizer * theHBHEDigitizer
Definition: HcalTBDigiProducer.h:81
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37