CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 template< class Traits >
20 {
21  public:
22 
23  typedef typename Traits::ElectronicsSim ElectronicsSim ;
24  typedef typename Traits::Digi Digi ;
25  typedef typename Traits::DigiCollection DigiCollection ;
26  typedef typename Traits::EcalSamples EcalSamples ;
27 
29  ElectronicsSim* electronicsSim ,
30  bool addNoise ) ;
31 
32  virtual ~EcalTDigitizer< Traits >() ;
33 
34  void add(const std::vector<PCaloHit> & hits, int bunchCrossing);
35 
36  virtual void initializeHits();
37 
38  virtual void run(DigiCollection& output );
39 
42  assert(0);
43  }
44 
45  void setNoiseSignalGenerator(EcalBaseSignalGenerator * noiseSignalGenerator);
46 
47  void addNoiseSignals();
48 
49  protected:
50 
51  bool addNoise() const ;
52 
53  const EcalHitResponse* hitResponse() const ;
54 
55  const ElectronicsSim* elecSim() const ;
56 
57  private:
58 
61  bool m_addNoise ;
63 
64 
65 };
66 
67 #endif
68 
Traits::DigiCollection DigiCollection
Traits::ElectronicsSim ElectronicsSim
void add(const std::vector< PCaloHit > &hits, int bunchCrossing)
void setNoiseSignalGenerator(EcalBaseSignalGenerator *noiseSignalGenerator)
virtual void initializeHits()
static std::string const input
Definition: EdmProvDump.cc:44
void addNoiseSignals()
const ElectronicsSim * elecSim() const
virtual void run(MixCollection< PCaloHit > &input, DigiCollection &output)
bool addNoise() const
Traits::EcalSamples EcalSamples
Traits::Digi Digi
EcalBaseSignalGenerator * theNoiseSignalGenerator
EcalHitResponse * m_hitResponse
virtual void run(DigiCollection &output)
const EcalHitResponse * hitResponse() const
ElectronicsSim * m_electronicsSim