CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CaloSimParameters.h
Go to the documentation of this file.
1 #ifndef CaloSimAlgos_CaloSimParameters_h
2 #define CaloSimAlgos_CaloSimParameters_h
3 
4 #include <iosfwd>
15 {
16 public:
17  // note: sampling factor not used
19  double samplingFactor, double timePhase,
21  bool doPhotostatistics, bool syncPhase=true);
22 
24 
25  virtual ~CaloSimParameters() {};
26 
32  virtual double simHitToPhotoelectrons(const DetId &) const { return simHitToPhotoelectrons_;}
33 
36  virtual double photoelectronsToAnalog(const DetId & detId) const {return photoelectronsToAnalog_;}
37 
39  double timePhase() const {return timePhase_;}
40 
42  int readoutFrameSize() const {return readoutFrameSize_;}
43 
44  int binOfMaximum() const {return binOfMaximum_;}
45 
47  void setReadoutFrameSize(int frameSize) {readoutFrameSize_ = frameSize;}
48  void setBinOfMaximum(int binOfMax) {binOfMaximum_ = binOfMax;}
49 
51  bool doPhotostatistics() const {return doPhotostatistics_;}
52 
54  bool syncPhase() const {return syncPhase_; }
55 
56 
57 private:
60  double timePhase_;
64  bool syncPhase_;
65 
66 };
67 
68 std::ostream & operator<<(std::ostream & os, const CaloSimParameters & p);
69 
70 #endif
71 
72 
CaloSimParameters(double simHitToPhotoelectrons, double photoelectronsToAnalog, double samplingFactor, double timePhase, int readoutFrameSize, int binOfMaximum, bool doPhotostatistics, bool syncPhase=true)
bool doPhotostatistics() const
whether or not to apply Poisson statistics to photoelectrons
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
Main class for Parameters in different subdetectors.
double timePhase() const
the adjustment you need to apply to get the signal where you want it
void setReadoutFrameSize(int frameSize)
some datamixing apps need this to be set dynamically
void setBinOfMaximum(int binOfMax)
double simHitToPhotoelectrons() const
int readoutFrameSize() const
for now, the LinearFrames and trhe digis will be one-to-one.
virtual double photoelectronsToAnalog(const DetId &detId) const
virtual double simHitToPhotoelectrons(const DetId &) const
Definition: DetId.h:20
int binOfMaximum() const
double photoelectronsToAnalog() const
the factor which goes from photoelectrons to whatever gets read by ADCs
virtual ~CaloSimParameters()
bool syncPhase() const
choice of the ADC time alignment (synchronous for LHC, asynchronous for test beams) ...