CMS 3D CMS Logo

CastorAmplifier.h
Go to the documentation of this file.
1 #ifndef CastorSim_CastorAmplifier_h
2 #define CastorSim_CastorAmplifier_h
3 
6 
7 class CastorDbService;
8 
9 namespace CLHEP {
10  class HepRandomEngine;
11 }
12 
14 public:
15  CastorAmplifier(const CastorSimParameterMap *parameters, bool addNoise);
16  virtual ~CastorAmplifier() {}
17 
19  void setDbService(const CastorDbService *service) { theDbService = service; }
20 
21  virtual void amplify(CaloSamples &linearFrame, CLHEP::HepRandomEngine *) const;
22 
23  void setStartingCapId(int capId) { theStartingCapId = capId; }
24 
25 private:
28 
29  unsigned theStartingCapId;
30  bool addNoise_;
31 };
32 
33 #endif
unsigned theStartingCapId
virtual ~CastorAmplifier()
const CastorSimParameterMap * theParameterMap
const CastorDbService * theDbService
void setDbService(const CastorDbService *service)
the Producer will probably update this every event
void setStartingCapId(int capId)