CMS 3D CMS Logo

EcalTDigitizer.h
Go to the documentation of this file.
1 #ifndef EcalSimAlgos_EcalTDigitizer_h
2 #define EcalSimAlgos_EcalTDigitizer_h
3 
14 
15 class EcalHitResponse;
17 
18 namespace CLHEP {
19  class HepRandomEngine;
20 }
21 
22 template <class Traits>
24 public:
25  typedef typename Traits::ElectronicsSim ElectronicsSim;
26  typedef typename Traits::Digi Digi;
28  typedef typename Traits::EcalSamples EcalSamples;
29 
31 
32  virtual ~EcalTDigitizer<Traits>();
33 
34  void add(const std::vector<PCaloHit>& hits, int bunchCrossing, CLHEP::HepRandomEngine*);
35 
36  virtual void initializeHits();
37 
38  virtual void run(DigiCollection& output, CLHEP::HepRandomEngine*);
39 
41 
42  void setNoiseSignalGenerator(EcalBaseSignalGenerator* noiseSignalGenerator);
43 
44  void addNoiseSignals();
45 
46 protected:
47  bool addNoise() const;
48 
49  const EcalHitResponse* hitResponse() const;
50 
51  const ElectronicsSim* elecSim() const;
52 
53 private:
56  bool m_addNoise;
57 
59 };
60 
61 #endif
EcalTDigitizer::DigiCollection
Traits::DigiCollection DigiCollection
Definition: EcalTDigitizer.h:27
input
static const std::string input
Definition: EdmProvDump.cc:48
hfClusterShapes_cfi.hits
hits
Definition: hfClusterShapes_cfi.py:5
convertSQLitetoXML_cfg.output
output
Definition: convertSQLitetoXML_cfg.py:32
CaloTSamplesBase.h
EcalTDigitizer::addNoise
bool addNoise() const
TrendClient_cfi.Digi
Digi
Definition: TrendClient_cfi.py:7
cms::cuda::assert
assert(be >=bs)
EcalTDigitizer::m_hitResponse
EcalHitResponse * m_hitResponse
Definition: EcalTDigitizer.h:54
EcalTDigitizer::Digi
Traits::Digi Digi
Definition: EcalTDigitizer.h:26
EcalTDigitizer::initializeHits
virtual void initializeHits()
EcalTDigitizer::setNoiseSignalGenerator
void setNoiseSignalGenerator(EcalBaseSignalGenerator *noiseSignalGenerator)
MixCollection.h
EcalBaseSignalGenerator
Definition: EcalBaseSignalGenerator.h:8
MixCollection
Definition: MixCollection.h:11
CLHEP
Definition: CocoaGlobals.h:27
EcalTDigitizer::elecSim
const ElectronicsSim * elecSim() const
EcalTDigitizer::addNoiseSignals
void addNoiseSignals()
EcalBaseSignalGenerator.h
PCaloHit.h
EcalTDigitizer::theNoiseSignalGenerator
EcalBaseSignalGenerator * theNoiseSignalGenerator
Definition: EcalTDigitizer.h:58
EcalTDigitizer::run
virtual void run(DigiCollection &output, CLHEP::HepRandomEngine *)
EcalTDigitizer::m_electronicsSim
ElectronicsSim * m_electronicsSim
Definition: EcalTDigitizer.h:55
EcalHitResponse
Definition: EcalHitResponse.h:28
EcalTDigitizer
Definition: EcalTDigitizer.h:23
EcalTDigitizer::add
void add(const std::vector< PCaloHit > &hits, int bunchCrossing, CLHEP::HepRandomEngine *)
EcalTDigitizer::EcalSamples
Traits::EcalSamples EcalSamples
Definition: EcalTDigitizer.h:28
siStripShotFilter_cfi.DigiCollection
DigiCollection
Definition: siStripShotFilter_cfi.py:6
EcalTDigitizer::ElectronicsSim
Traits::ElectronicsSim ElectronicsSim
Definition: EcalTDigitizer.h:25
DetId.h
EcalTDigitizer::run
virtual void run(MixCollection< PCaloHit > &input, DigiCollection &output)
Definition: EcalTDigitizer.h:40
EcalTDigitizer::m_addNoise
bool m_addNoise
Definition: EcalTDigitizer.h:56
EcalTDigitizer::hitResponse
const EcalHitResponse * hitResponse() const