Main class for Parameters in different subdetectors. More...
#include <CaloSimParameters.h>
Public Member Functions | |
int | binOfMaximum () const |
CaloSimParameters (double simHitToPhotoelectrons, double photoelectronsToAnalog, double samplingFactor, double timePhase, int readoutFrameSize, int binOfMaximum, bool doPhotostatistics, bool syncPhase=true) | |
CaloSimParameters (const edm::ParameterSet &p) | |
bool | doPhotostatistics () const |
whether or not to apply Poisson statistics to photoelectrons | |
double | photoelectronsToAnalog () const |
the factor which goes from photoelectrons to whatever gets read by ADCs | |
virtual double | photoelectronsToAnalog (const DetId &detId) const |
int | readoutFrameSize () const |
for now, the LinearFrames and trhe digis will be one-to-one. | |
void | setBinOfMaximum (int binOfMax) |
void | setReadoutFrameSize (int frameSize) |
some datamixing apps need this to be set dynamically | |
double | simHitToPhotoelectrons () const |
virtual double | simHitToPhotoelectrons (const DetId &) const |
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_ |
Main class for Parameters in different subdetectors.
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 5 of file CaloSimParameters.cc.
CaloSimParameters::CaloSimParameters | ( | const edm::ParameterSet & | p | ) |
Definition at line 21 of file CaloSimParameters.cc.
References asciidump::at, Exception, edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), and photoelectronsToAnalog_.
: simHitToPhotoelectrons_( p.getParameter<double>("simHitToPhotoelectrons") ), photoelectronsToAnalog_( 0. ), timePhase_( p.getParameter<double>("timePhase") ), readoutFrameSize_( p.getParameter<int>("readoutFrameSize") ), binOfMaximum_( p.getParameter<int>("binOfMaximum") ), doPhotostatistics_( p.getParameter<bool>("doPhotoStatistics") ), syncPhase_( p.getParameter<bool>("syncPhase") ) { // some subsystems may not want a single number for this if(p.existsAs<double>("photoelectronsToAnalog")) { photoelectronsToAnalog_ = p.getParameter<double>("photoelectronsToAnalog"); } else if(p.existsAs<std::vector<double> >("photoelectronsToAnalog")) { // just take the first one photoelectronsToAnalog_ = p.getParameter<std::vector<double> >("photoelectronsToAnalog").at(0); } else { throw cms::Exception("CaloSimParameters") << "Cannot find parameter photoelectronsToAnalog"; } }
virtual CaloSimParameters::~CaloSimParameters | ( | ) | [inline, virtual] |
Definition at line 25 of file CaloSimParameters.h.
{};
int CaloSimParameters::binOfMaximum | ( | ) | const [inline] |
Definition at line 44 of file CaloSimParameters.h.
References binOfMaximum_.
Referenced by EcalDccWeightBuilder::computeAllWeights(), CaloHitResponse::makeBlankSignal(), EBHitResponse::putAPDSignal(), CaloHitRespoNew::setupSamples(), HcalHitCorrection::timeBin(), and CastorHitCorrection::timeBin().
{return binOfMaximum_;}
bool CaloSimParameters::doPhotostatistics | ( | ) | const [inline] |
whether or not to apply Poisson statistics to photoelectrons
Definition at line 51 of file CaloSimParameters.h.
References doPhotostatistics_.
Referenced by CaloHitResponse::analogSignalAmplitude().
{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_.
{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 CastorAmplifier::amplify(), operator<<(), HcalAmplifier::pe2fC(), and HcalSimParameters::simHitToPhotoelectrons().
{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(), HcalSimParameterMap::setFrameSize(), and CaloHitRespoNew::setupSamples().
{return readoutFrameSize_;}
void CaloSimParameters::setBinOfMaximum | ( | int | binOfMax | ) | [inline] |
Definition at line 48 of file CaloSimParameters.h.
References binOfMaximum_.
Referenced by HcalSimParameterMap::setFrameSize().
{binOfMaximum_ = binOfMax;}
void CaloSimParameters::setReadoutFrameSize | ( | int | frameSize | ) | [inline] |
some datamixing apps need this to be set dynamically
Definition at line 47 of file CaloSimParameters.h.
References readoutFrameSize_.
Referenced by HcalSimParameterMap::setFrameSize().
{readoutFrameSize_ = frameSize;}
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(), EBHitResponse::putAPDSignal(), and HcalSimParameters::simHitToPhotoelectrons().
{ return simHitToPhotoelectrons_;}
virtual double CaloSimParameters::simHitToPhotoelectrons | ( | const DetId & | ) | const [inline, virtual] |
Reimplemented in HcalSimParameters.
Definition at line 32 of file CaloSimParameters.h.
References simHitToPhotoelectrons_.
{ return simHitToPhotoelectrons_;}
bool CaloSimParameters::syncPhase | ( | ) | const [inline] |
choice of the ADC time alignment (synchronous for LHC, asynchronous for test beams)
Definition at line 54 of file CaloSimParameters.h.
References syncPhase_.
Referenced by HcalTBDigiProducer::setPhaseShift(), and EcalTBDigiProducer::setPhaseShift().
{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(), EcalDccWeightBuilder::computeAllWeights(), HcalHitCorrection::timeBin(), and CastorHitCorrection::timeBin().
{return timePhase_;}
int CaloSimParameters::binOfMaximum_ [private] |
Definition at line 62 of file CaloSimParameters.h.
Referenced by binOfMaximum(), and setBinOfMaximum().
bool CaloSimParameters::doPhotostatistics_ [private] |
Definition at line 63 of file CaloSimParameters.h.
Referenced by doPhotostatistics().
double CaloSimParameters::photoelectronsToAnalog_ [private] |
Definition at line 59 of file CaloSimParameters.h.
Referenced by CaloSimParameters(), and photoelectronsToAnalog().
int CaloSimParameters::readoutFrameSize_ [private] |
Definition at line 61 of file CaloSimParameters.h.
Referenced by readoutFrameSize(), and setReadoutFrameSize().
double CaloSimParameters::simHitToPhotoelectrons_ [private] |
Definition at line 58 of file CaloSimParameters.h.
Referenced by simHitToPhotoelectrons().
bool CaloSimParameters::syncPhase_ [private] |
Definition at line 64 of file CaloSimParameters.h.
Referenced by syncPhase().
double CaloSimParameters::timePhase_ [private] |
Definition at line 60 of file CaloSimParameters.h.
Referenced by timePhase().