CMS 3D CMS Logo

CastorDigiProducer.h
Go to the documentation of this file.
1 #ifndef CastorDigiProducer_h
2 #define CastorDigiProducer_h
3 
20 
21 #include <vector>
22 
23 namespace edm {
24  class StreamID;
25  class ConsumesCollector;
26 } // namespace edm
27 
28 namespace CLHEP {
29  class HepRandomEngine;
30 }
31 
32 class PCaloHit;
34 
36 public:
38  ~CastorDigiProducer() 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(std::vector<PCaloHit> const &, int bunchCrossing);
47 
51  void fillFakeHits();
54  void checkGeometry(const edm::EventSetup &eventSetup);
55 
57 
60 
64 
66 
70 
72 
74 
76 
77  std::vector<PCaloHit> theCastorHits;
78 
79  CLHEP::HepRandomEngine *randomEngine_ = nullptr;
80 };
81 
82 #endif
CaloTDigitizer
Definition: CaloTDigitizer.h:42
CastorDigiProducer::theCastorResponse
CaloHitResponse * theCastorResponse
Definition: CastorDigiProducer.h:65
edm::StreamID
Definition: StreamID.h:30
CastorDigiProducer::theCastorDigitizer
CastorDigitizer * theCastorDigitizer
Definition: CastorDigiProducer.h:75
hfClusterShapes_cfi.hits
hits
Definition: hfClusterShapes_cfi.py:5
CastorSimParameterMap.h
CastorDigiProducer::CastorDigitizer
CaloTDigitizer< CastorDigitizerTraits > CastorDigitizer
Definition: CastorDigiProducer.h:59
edm
HLT enums.
Definition: AlignableModifier.h:19
CastorHitCorrection
Definition: CastorHitCorrection.h:21
CastorDigiProducer::theElectronicsSim
CastorElectronicsSim * theElectronicsSim
Definition: CastorDigiProducer.h:69
CastorElectronicsSim.h
CastorElectronicsSim
Definition: CastorElectronicsSim.h:19
PileUpEventPrincipal
Definition: PileUpEventPrincipal.h:19
CastorDigiProducer::~CastorDigiProducer
~CastorDigiProducer() override
Definition: CastorDigiProducer.cc:64
CastorDigiProducer::theCastorHits
std::vector< PCaloHit > theCastorHits
Definition: CastorDigiProducer.h:77
CastorDigiProducer::initializeEvent
void initializeEvent(edm::Event const &e, edm::EventSetup const &c) override
Definition: CastorDigiProducer.cc:76
CastorDigiProducer
Definition: CastorDigiProducer.h:35
ProducesCollector.h
CastorHitFilter
Definition: CastorHitFilter.h:8
CastorSimParameterMap
Definition: CastorSimParameterMap.h:9
CastorHitFilter.h
DigiAccumulatorMixMod.h
CastorHitCorrection.h
CastorDigiProducer::checkGeometry
void checkGeometry(const edm::EventSetup &eventSetup)
Definition: CastorDigiProducer.cc:158
DigiAccumulatorMixMod
Definition: DigiAccumulatorMixMod.h:41
CastorDigitizerTraits.h
CLHEP
Definition: CocoaGlobals.h:27
CastorDigiProducer::finalizeEvent
void finalizeEvent(edm::Event &e, edm::EventSetup const &c) override
Definition: CastorDigiProducer.cc:125
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
CaloHitResponse
Creates electronics signals from hits.
Definition: CaloHitResponse.h:33
CastorDigiProducer::accumulateCaloHits
void accumulateCaloHits(std::vector< PCaloHit > const &, int bunchCrossing)
Definition: CastorDigiProducer.cc:98
edm::EventSetup
Definition: EventSetup.h:57
PCaloHit
Definition: PCaloHit.h:8
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
CaloTDigitizer.h
CaloHitResponse.h
CaloVShape
Electronic response of the preamp.
Definition: CaloVShape.h:11
CastorAmplifier
Definition: CastorAmplifier.h:13
CastorDigiProducer::fillFakeHits
void fillFakeHits()
some hits in each subdetector, just for testing purposes
Definition: CastorDigiProducer.cc:152
CastorDigiProducer::accumulate
void accumulate(edm::Event const &e, edm::EventSetup const &c) override
Definition: CastorDigiProducer.cc:107
edm::ProducesCollector
Definition: ProducesCollector.h:43
CastorDigiProducer::CastorDigiProducer
CastorDigiProducer(const edm::ParameterSet &ps, edm::ProducesCollector, edm::ConsumesCollector &iC)
Definition: CastorDigiProducer.cc:22
CastorDigiProducer::sortHits
void sortHits(const edm::PCaloHitContainer &hits)
fills the vectors for each subdetector
Definition: CastorDigiProducer.cc:141
CastorCoderFactory
Definition: CastorCoderFactory.h:8
CastorShape.h
edm::PCaloHitContainer
std::vector< PCaloHit > PCaloHitContainer
Definition: PCaloHitContainer.h:8
EventSetup.h
PCaloHitContainer.h
CastorAmplifier.h
CastorCoderFactory.h
CastorDigiProducer::theCastorShape
CaloVShape * theCastorShape
Definition: CastorDigiProducer.h:62
ParameterSet.h
CastorDigiProducer::theHitCorrection
CastorHitCorrection * theHitCorrection
Definition: CastorDigiProducer.h:73
CastorDigiProducer::randomEngine_
CLHEP::HepRandomEngine * randomEngine_
Definition: CastorDigiProducer.h:79
edm::Event
Definition: Event.h:73
CastorDigiProducer::theCoderFactory
CastorCoderFactory * theCoderFactory
Definition: CastorDigiProducer.h:68
CastorDigiProducer::theCastorHitFilter
CastorHitFilter theCastorHitFilter
Definition: CastorDigiProducer.h:71
CastorDigiProducer::theHitsProducerTag
edm::InputTag theHitsProducerTag
Definition: CastorDigiProducer.h:56
edm::InputTag
Definition: InputTag.h:15
edm::ConsumesCollector
Definition: ConsumesCollector.h:39
CastorDigiProducer::theCastorIntegratedShape
CaloVShape * theCastorIntegratedShape
Definition: CastorDigiProducer.h:63
CastorDigiProducer::theParameterMap
CastorSimParameterMap * theParameterMap
Definition: CastorDigiProducer.h:61
CastorDigiProducer::theAmplifier
CastorAmplifier * theAmplifier
Definition: CastorDigiProducer.h:67
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37