CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CastorSimParameters.h
Go to the documentation of this file.
1 #ifndef CastorSim_CastorSimParameters_h
2 #define CastorSim_CastorSimParameters_h
3 
7 
9 {
10 public:
11 
12 CastorSimParameters(double simHitToPhotoelectrons, double photoelectronsToAnalog, double samplingFactor, double timePhase, bool syncPhase);
14 
16 
17 void setDbService(const CastorDbService * service) {theDbService = service;}
18 
19 double getNominalfCperPE() const;
20 bool doDynamicNoise() const;
21 
22 virtual double photoelectronsToAnalog(const DetId & detId) const;
23 
24 double fCtoGeV(const DetId & detId) const;
25 
26 
27 private:
32 };
33 
34 #endif
35 
void setDbService(const CastorDbService *service)
bool doDynamicNoise() const
double getNominalfCperPE() const
const CastorDbService * theDbService
Main class for Parameters in different subdetectors.
CastorSimParameters(double simHitToPhotoelectrons, double photoelectronsToAnalog, double samplingFactor, double timePhase, bool syncPhase)
double timePhase() const
the adjustment you need to apply to get the signal where you want it
double simHitToPhotoelectrons() const
double fCtoGeV(const DetId &detId) const
Definition: DetId.h:18
double photoelectronsToAnalog() const
the factor which goes from photoelectrons to whatever gets read by ADCs
bool syncPhase() const
choice of the ADC time alignment (synchronous for LHC, asynchronous for test beams) ...