CMS 3D CMS Logo

CaloSimParameters.h
Go to the documentation of this file.
1 #ifndef CaloSimAlgos_CaloSimParameters_h
2 #define CaloSimAlgos_CaloSimParameters_h
3 
6 #include <iosfwd>
15 public:
16  // note: sampling factor not used
19  double samplingFactor,
20  double timePhase,
21  int readoutFrameSize,
22  int binOfMaximum,
23  bool doPhotostatistics,
24  bool syncPhase = true);
25 
26  CaloSimParameters(const edm::ParameterSet &p, bool skipPe2Fc = false);
27 
28  virtual ~CaloSimParameters(){};
29 
35  virtual double simHitToPhotoelectrons(const DetId &) const { return simHitToPhotoelectrons_; }
36 
39  virtual double photoelectronsToAnalog(const DetId &detId) const { return photoelectronsToAnalog_; }
40 
42  double timePhase() const { return timePhase_; }
43 
45  int readoutFrameSize() const { return readoutFrameSize_; }
46 
47  int binOfMaximum() const { return binOfMaximum_; }
48 
50  void setReadoutFrameSize(int frameSize) { readoutFrameSize_ = frameSize; }
51  void setBinOfMaximum(int binOfMax) { binOfMaximum_ = binOfMax; }
52 
54  bool doPhotostatistics() const { return doPhotostatistics_; }
55 
58  bool syncPhase() const { return syncPhase_; }
59 
60 private:
63  double timePhase_;
67  bool syncPhase_;
68 };
69 
70 std::ostream &operator<<(std::ostream &os, const CaloSimParameters &p);
71 
72 #endif
CaloSimParameters::binOfMaximum_
int binOfMaximum_
Definition: CaloSimParameters.h:65
CaloSimParameters::~CaloSimParameters
virtual ~CaloSimParameters()
Definition: CaloSimParameters.h:28
CaloSimParameters::photoelectronsToAnalog_
double photoelectronsToAnalog_
Definition: CaloSimParameters.h:62
CaloSimParameters::doPhotostatistics
bool doPhotostatistics() const
whether or not to apply Poisson statistics to photoelectrons
Definition: CaloSimParameters.h:54
CaloSimParameters::photoelectronsToAnalog
double photoelectronsToAnalog() const
the factor which goes from photoelectrons to whatever gets read by ADCs
Definition: CaloSimParameters.h:38
CaloSimParameters::timePhase_
double timePhase_
Definition: CaloSimParameters.h:63
CaloSimParameters::readoutFrameSize
int readoutFrameSize() const
for now, the LinearFrames and trhe digis will be one-to-one.
Definition: CaloSimParameters.h:45
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
ecalSimParameterMap_cff.samplingFactor
samplingFactor
Definition: ecalSimParameterMap_cff.py:7
CaloSimParameters::simHitToPhotoelectrons
double simHitToPhotoelectrons() const
Definition: CaloSimParameters.h:34
CaloSimParameters::CaloSimParameters
CaloSimParameters(double simHitToPhotoelectrons, double photoelectronsToAnalog, double samplingFactor, double timePhase, int readoutFrameSize, int binOfMaximum, bool doPhotostatistics, bool syncPhase=true)
Definition: CaloSimParameters.cc:5
CaloSimParameters::timePhase
double timePhase() const
the adjustment you need to apply to get the signal where you want it
Definition: CaloSimParameters.h:42
DetId
Definition: DetId.h:17
CaloSimParameters::setReadoutFrameSize
void setReadoutFrameSize(int frameSize)
some datamixing apps need this to be set dynamically
Definition: CaloSimParameters.h:50
CaloSimParameters::setBinOfMaximum
void setBinOfMaximum(int binOfMax)
Definition: CaloSimParameters.h:51
CaloSimParameters::syncPhase_
bool syncPhase_
Definition: CaloSimParameters.h:67
CaloSimParameters
Main class for Parameters in different subdetectors.
Definition: CaloSimParameters.h:14
CaloSimParameters::photoelectronsToAnalog
virtual double photoelectronsToAnalog(const DetId &detId) const
Definition: CaloSimParameters.h:39
edm::ParameterSet
Definition: ParameterSet.h:47
CaloSimParameters::simHitToPhotoelectrons_
double simHitToPhotoelectrons_
Definition: CaloSimParameters.h:61
CaloSimParameters::readoutFrameSize_
int readoutFrameSize_
Definition: CaloSimParameters.h:64
CaloSimParameters::simHitToPhotoelectrons
virtual double simHitToPhotoelectrons(const DetId &) const
Definition: CaloSimParameters.h:35
CaloSimParameters::syncPhase
bool syncPhase() const
Definition: CaloSimParameters.h:58
operator<<
std::ostream & operator<<(std::ostream &os, const CaloSimParameters &p)
Definition: CaloSimParameters.cc:41
DetId.h
ParameterSet.h
CaloSimParameters::doPhotostatistics_
bool doPhotostatistics_
Definition: CaloSimParameters.h:66
CaloSimParameters::binOfMaximum
int binOfMaximum() const
Definition: CaloSimParameters.h:47