CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CastorAmplifier.h
Go to the documentation of this file.
1 #ifndef CastorSim_CastorAmplifier_h
2 #define CastorSim_CastorAmplifier_h
3 
6 #include "CLHEP/Random/RandGaussQ.h"
7 
8 class CastorDbService;
9 
11 public:
12  CastorAmplifier(const CaloVSimParameterMap * parameters, bool addNoise);
13  virtual ~CastorAmplifier(){ delete theRandGaussQ; }
14 
16  void setDbService(const CastorDbService * service) {
17  theDbService = service;
18  }
19 
20  void setRandomEngine(CLHEP::HepRandomEngine & engine);
21 
22  virtual void amplify(CaloSamples & linearFrame) const;
23 
24  void setStartingCapId(int capId) {theStartingCapId = capId;}
25 
26 private:
28  CLHEP::RandGaussQ * theRandGaussQ;
30 
31  unsigned theStartingCapId;
32  bool addNoise_;
33 };
34 
35 #endif
void setRandomEngine(CLHEP::HepRandomEngine &engine)
dictionary parameters
Definition: Parameters.py:2
unsigned theStartingCapId
virtual ~CastorAmplifier()
const CaloVSimParameterMap * theParameterMap
const CastorDbService * theDbService
CastorAmplifier(const CaloVSimParameterMap *parameters, bool addNoise)
virtual void amplify(CaloSamples &linearFrame) const
CLHEP::RandGaussQ * theRandGaussQ
void setDbService(const CastorDbService *service)
the Producer will probably update this every event
void setStartingCapId(int capId)