#include <SimCalorimetry/CaloSimAlgos/interface/CaloSimParameters.h>
Public Member Functions | |
int | binOfMaximum () const |
CaloSimParameters (const edm::ParameterSet &p) | |
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 | |
virtual double | photoelectronsToAnalog (const DetId &detId) const |
double | photoelectronsToAnalog () const |
the factor which goes from photoelectrons to whatever gets read by ADCs | |
int | readoutFrameSize () const |
for now, the LinearFrames and trhe digis will be one-to-one. | |
virtual double | simHitToPhotoelectrons (const DetId &) const |
double | simHitToPhotoelectrons () const |
the factor which goes from whatever units the SimHit amplitudes are in (could be deposited GeV, real GeV, or photoelectrons) and converts to photoelectrons probably should make everything virtual, but this is enough for HCAL | |
bool | syncPhase () const |
choice of the ADC time alignment (synchronous for LHC, asynchronous for test beams) | |
double | timePhase () const |
the adjustment you need to apply to get the signal where you want it | |
virtual | ~CaloSimParameters () |
Private Attributes | |
int | binOfMaximum_ |
bool | doPhotostatistics_ |
double | photoelectronsToAnalog_ |
int | readoutFrameSize_ |
double | simHitToPhotoelectrons_ |
bool | syncPhase_ |
double | timePhase_ |
Definition at line 14 of file CaloSimParameters.h.
CaloSimParameters::CaloSimParameters | ( | double | simHitToPhotoelectrons, | |
double | photoelectronsToAnalog, | |||
double | samplingFactor, | |||
double | timePhase, | |||
int | readoutFrameSize, | |||
int | binOfMaximum, | |||
bool | doPhotostatistics, | |||
bool | syncPhase = true | |||
) |
Definition at line 4 of file CaloSimParameters.cc.
00008 : simHitToPhotoelectrons_(simHitToPhotoelectrons), 00009 photoelectronsToAnalog_(photoelectronsToAnalog), 00010 timePhase_(timePhase), 00011 readoutFrameSize_(readoutFrameSize), 00012 binOfMaximum_(binOfMaximum), 00013 doPhotostatistics_(doPhotostatistics), 00014 syncPhase_(syncPhase) 00015 { 00016 }
CaloSimParameters::CaloSimParameters | ( | const edm::ParameterSet & | p | ) |
Definition at line 20 of file CaloSimParameters.cc.
00021 : simHitToPhotoelectrons_( p.getParameter<double>("simHitToPhotoelectrons") ), 00022 photoelectronsToAnalog_( p.getParameter<double>("photoelectronsToAnalog") ), 00023 timePhase_( p.getParameter<double>("timePhase") ), 00024 readoutFrameSize_( p.getParameter<int>("readoutFrameSize") ), 00025 binOfMaximum_( p.getParameter<int>("binOfMaximum") ), 00026 doPhotostatistics_( p.getParameter<bool>("doPhotoStatistics") ), 00027 syncPhase_( p.getParameter<bool>("syncPhase") ) 00028 { 00029 }
virtual CaloSimParameters::~CaloSimParameters | ( | ) | [inline, virtual] |
int CaloSimParameters::binOfMaximum | ( | ) | const [inline] |
Definition at line 44 of file CaloSimParameters.h.
References binOfMaximum_.
Referenced by CaloHitResponse::makeBlankSignal(), HcalHitCorrection::timeBin(), and CastorHitCorrection::timeBin().
00044 {return binOfMaximum_;}
bool CaloSimParameters::doPhotostatistics | ( | ) | const [inline] |
whether or not to apply Poisson statistics to photoelectrons
Definition at line 47 of file CaloSimParameters.h.
References doPhotostatistics_.
Referenced by CaloHitResponse::analogSignalAmplitude().
00047 {return doPhotostatistics_;}
virtual double CaloSimParameters::photoelectronsToAnalog | ( | const DetId & | detId | ) | const [inline, virtual] |
Reimplemented in CastorSimParameters, HcalSimParameters, and HFSimParameters.
Definition at line 36 of file CaloSimParameters.h.
References photoelectronsToAnalog_.
00036 {return photoelectronsToAnalog_;}
double CaloSimParameters::photoelectronsToAnalog | ( | ) | const [inline] |
the factor which goes from photoelectrons to whatever gets read by ADCs
Definition at line 35 of file CaloSimParameters.h.
References photoelectronsToAnalog_.
Referenced by HcalAmplifier::amplify(), CastorAmplifier::amplify(), operator<<(), HcalSimParameters::photoelectronsToAnalog(), and HcalSimParameters::simHitToPhotoelectrons().
00035 {return photoelectronsToAnalog_;}
int CaloSimParameters::readoutFrameSize | ( | ) | const [inline] |
for now, the LinearFrames and trhe digis will be one-to-one.
Definition at line 42 of file CaloSimParameters.h.
References readoutFrameSize_.
Referenced by CaloHitResponse::makeBlankSignal().
00042 {return readoutFrameSize_;}
virtual double CaloSimParameters::simHitToPhotoelectrons | ( | const DetId & | ) | const [inline, virtual] |
Reimplemented in HcalSimParameters.
Definition at line 32 of file CaloSimParameters.h.
References simHitToPhotoelectrons_.
00032 { return simHitToPhotoelectrons_;}
double CaloSimParameters::simHitToPhotoelectrons | ( | ) | const [inline] |
the factor which goes from whatever units the SimHit amplitudes are in (could be deposited GeV, real GeV, or photoelectrons) and converts to photoelectrons probably should make everything virtual, but this is enough for HCAL
Definition at line 31 of file CaloSimParameters.h.
References simHitToPhotoelectrons_.
Referenced by CaloHitResponse::analogSignalAmplitude(), CastorHitCorrection::charge(), HcalHitCorrection::charge(), operator<<(), CastorSimParameters::photoelectronsToAnalog(), HFSimParameters::photoelectronsToAnalog(), and HcalSimParameters::simHitToPhotoelectrons().
00031 { return simHitToPhotoelectrons_;}
bool CaloSimParameters::syncPhase | ( | ) | const [inline] |
choice of the ADC time alignment (synchronous for LHC, asynchronous for test beams)
Definition at line 50 of file CaloSimParameters.h.
References syncPhase_.
Referenced by HcalTBDigiProducer::setPhaseShift(), and EcalTBDigiProducer::setPhaseShift().
00050 {return syncPhase_; }
double CaloSimParameters::timePhase | ( | ) | const [inline] |
the adjustment you need to apply to get the signal where you want it
Definition at line 39 of file CaloSimParameters.h.
References timePhase_.
Referenced by EcalTPGParamBuilder::analyze(), HcalHitCorrection::timeBin(), and CastorHitCorrection::timeBin().
00039 {return timePhase_;}
int CaloSimParameters::binOfMaximum_ [private] |
bool CaloSimParameters::doPhotostatistics_ [private] |
double CaloSimParameters::photoelectronsToAnalog_ [private] |
int CaloSimParameters::readoutFrameSize_ [private] |
double CaloSimParameters::simHitToPhotoelectrons_ [private] |
bool CaloSimParameters::syncPhase_ [private] |
double CaloSimParameters::timePhase_ [private] |