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 
15  /*
16  CastorSimParameters(double simHitToPhotoelectrons, double photoelectronsToAnalog,
17  double samplingFactor, double timePhase,
18  int readoutFrameSize, int binOfMaximum,
19  bool doPhotostatistics, bool syncPhase,
20  int firstRing, const std::vector<double> & samplingFactors);
21  CastorSimParameters(const edm::ParameterSet & p);
22  */
23 
25 
26 void setDbService(const CastorDbService * service) {theDbService = service;}
27 
28 //virtual double simHitToPhotoelectrons(const DetId & detId) const;
29 
30 virtual double photoelectronsToAnalog(const DetId & detId) const;
31 
32 double fCtoGeV(const DetId & detId) const;
33 
36 // virtual double samplingFactor(const DetId & detId) const;
37 
38 
39 private:
42 //std::vector<double> theSamplingFactors;
43 };
44 
45 #endif
46 
void setDbService(const CastorDbService *service)
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:20
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) ...