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 
13 
14 class EcalHitResponse ;
15 
16 template< class Traits >
18 {
19  public:
20 
21  typedef typename Traits::ElectronicsSim ElectronicsSim ;
22  typedef typename Traits::Digi Digi ;
23  typedef typename Traits::DigiCollection DigiCollection ;
24  typedef typename Traits::EcalSamples EcalSamples ;
25 
27  ElectronicsSim* electronicsSim ,
28  bool addNoise ) ;
29 
30  virtual ~EcalTDigitizer< Traits >() ;
31 
32  void add(const std::vector<PCaloHit> & hits, int bunchCrossing);
33 
34  virtual void initializeHits();
35 
36  virtual void run(DigiCollection& output );
37 
40  assert(0);
41  }
42 
43  protected:
44 
45  bool addNoise() const ;
46 
47  const EcalHitResponse* hitResponse() const ;
48 
49  const ElectronicsSim* elecSim() const ;
50 
51  private:
52 
55  bool m_addNoise ;
56 };
57 
58 #endif
59 
Traits::DigiCollection DigiCollection
Traits::ElectronicsSim ElectronicsSim
void add(const std::vector< PCaloHit > &hits, int bunchCrossing)
virtual void initializeHits()
static std::string const input
Definition: EdmProvDump.cc:44
const ElectronicsSim * elecSim() const
virtual void run(MixCollection< PCaloHit > &input, DigiCollection &output)
bool addNoise() const
Traits::EcalSamples EcalSamples
Traits::Digi Digi
EcalHitResponse * m_hitResponse
virtual void run(DigiCollection &output)
const EcalHitResponse * hitResponse() const
ElectronicsSim * m_electronicsSim