#include <CastorSimParameters.h>
Public Member Functions | |
CastorSimParameters (const edm::ParameterSet &p) | |
CastorSimParameters (double simHitToPhotoelectrons, double photoelectronsToAnalog, double samplingFactor, double timePhase, bool syncPhase) | |
double | fCtoGeV (const DetId &detId) const |
double | getNominalfCperPE () const |
double | photoelectronsToAnalog (const DetId &detId) const override |
void | setDbService (const CastorDbService *service) |
~CastorSimParameters () override | |
Public Member Functions inherited from CaloSimParameters | |
int | binOfMaximum () const |
CaloSimParameters (const edm::ParameterSet &p, bool skipPe2Fc=false) | |
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 More... | |
double | photoelectronsToAnalog () const |
the factor which goes from photoelectrons to whatever gets read by ADCs More... | |
int | readoutFrameSize () const |
for now, the LinearFrames and trhe digis will be one-to-one. More... | |
void | setBinOfMaximum (int binOfMax) |
void | setReadoutFrameSize (int frameSize) |
some datamixing apps need this to be set dynamically More... | |
double | simHitToPhotoelectrons () const |
virtual double | simHitToPhotoelectrons (const DetId &) const |
bool | syncPhase () const |
double | timePhase () const |
the adjustment you need to apply to get the signal where you want it More... | |
virtual | ~CaloSimParameters () |
Private Attributes | |
double | nominalfCperPE |
const CastorDbService * | theDbService |
double | theSamplingFactor |
Definition at line 8 of file CastorSimParameters.h.
CastorSimParameters::CastorSimParameters | ( | double | simHitToPhotoelectrons, |
double | photoelectronsToAnalog, | ||
double | samplingFactor, | ||
double | timePhase, | ||
bool | syncPhase | ||
) |
Definition at line 11 of file CastorSimParameters.cc.
CastorSimParameters::CastorSimParameters | ( | const edm::ParameterSet & | p | ) |
Definition at line 22 of file CastorSimParameters.cc.
|
inlineoverride |
Definition at line 17 of file CastorSimParameters.h.
double CastorSimParameters::fCtoGeV | ( | const DetId & | detId | ) | const |
Definition at line 39 of file CastorSimParameters.cc.
References cms::cuda::assert(), CastorDbService::getGain(), CastorDbService::getGainWidth(), CastorGain::getValue(), mps_fire::result, and theDbService.
Referenced by photoelectronsToAnalog().
double CastorSimParameters::getNominalfCperPE | ( | ) | const |
|
overridevirtual |
Reimplemented from CaloSimParameters.
Definition at line 33 of file CastorSimParameters.cc.
References fCtoGeV(), and theSamplingFactor.
|
inline |
Definition at line 19 of file CastorSimParameters.h.
References theDbService.
Referenced by CastorSimParameterMap::setDbService().
|
private |
Definition at line 30 of file CastorSimParameters.h.
Referenced by getNominalfCperPE().
|
private |
Definition at line 28 of file CastorSimParameters.h.
Referenced by fCtoGeV(), and setDbService().
|
private |
Definition at line 29 of file CastorSimParameters.h.
Referenced by photoelectronsToAnalog().