#include <HcalSimParameters.h>
Public Member Functions | |
int | delayQIE () const |
bool | doSiPMSmearing () const |
bool | doTimeSmear () const |
double | fCtoGeV (const DetId &detId) const |
HcalSimParameters (double simHitToPhotoelectrons, double samplingFactor, double timePhase, int readoutFrameSize, int binOfMaximum, bool doPhotostatistics, bool syncPhase, int firstRing, const std::vector< double > &samplingFactors, double sipmTau) | |
HcalSimParameters (const edm::ParameterSet &p) | |
double | photoelectronsToAnalog (const DetId &detId) const override |
int | pixels (const DetId &detId) const |
virtual double | samplingFactor (const DetId &detId) const |
void | setDbService (const HcalDbService *service) |
unsigned int | signalShape (const DetId &detId) const |
double | simHitToPhotoelectrons (const DetId &detId) const override |
double | sipmCrossTalk (const DetId &detId) const |
double | sipmDarkCurrentuA (const DetId &detId) const |
std::vector< float > | sipmNonlinearity (const DetId &detId) const |
double | sipmTau () const |
double | threshold_currentTDC () const |
double | timeSmearRMS (double ampl) const |
~HcalSimParameters () override | |
Public Member Functions inherited from CaloSimParameters | |
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 skipPe2Fc=false) | |
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 |
bool | syncPhase () const |
double | timePhase () const |
the adjustment you need to apply to get the signal where you want it More... | |
virtual | ~CaloSimParameters () |
Private Member Functions | |
void | defaultTimeSmearing () |
Private Attributes | |
int | delayQIE_ |
bool | doTimeSmear_ |
const HcalDbService * | theDbService |
int | theFirstRing |
std::vector< double > | theSamplingFactors |
const HcalSiPMCharacteristics * | theSiPMcharacteristics |
bool | theSiPMSmearing |
double | theSiPMTau |
HcalTimeSmearSettings | theSmearSettings |
double | threshold_currentTDC_ |
Friends | |
class | HcalSimParameterMap |
Definition at line 10 of file HcalSimParameters.h.
HcalSimParameters::HcalSimParameters | ( | double | simHitToPhotoelectrons, |
double | samplingFactor, | ||
double | timePhase, | ||
int | readoutFrameSize, | ||
int | binOfMaximum, | ||
bool | doPhotostatistics, | ||
bool | syncPhase, | ||
int | firstRing, | ||
const std::vector< double > & | samplingFactors, | ||
double | sipmTau | ||
) |
Definition at line 12 of file HcalSimParameters.cc.
References defaultTimeSmearing(), and theSiPMSmearing.
HcalSimParameters::HcalSimParameters | ( | const edm::ParameterSet & | p | ) |
Definition at line 42 of file HcalSimParameters.cc.
References defaultTimeSmearing(), and theSiPMSmearing.
|
inlineoverride |
Definition at line 24 of file HcalSimParameters.h.
|
private |
Definition at line 108 of file HcalSimParameters.cc.
References GeV2fC, and theSmearSettings.
Referenced by HcalSimParameters().
|
inline |
|
inline |
Definition at line 42 of file HcalSimParameters.h.
References theSiPMSmearing.
Referenced by HcalSiPMHitResponse::makeSiPMSignal().
|
inline |
double HcalSimParameters::fCtoGeV | ( | const DetId & | detId | ) | const |
{
Definition at line 75 of file HcalSimParameters.cc.
References cms::cuda::assert(), ecalph2::gains, HcalDbService::getGain(), HcalDbService::getGainWidth(), mps_fire::result, and theDbService.
Referenced by simHitToPhotoelectrons().
|
overridevirtual |
Reimplemented from CaloSimParameters.
Definition at line 99 of file HcalSimParameters.cc.
References cms::cuda::assert(), HcalSiPMParameter::getFCByPE(), HcalDbService::getHcalSiPMParameter(), and theDbService.
Referenced by HcalSiPMHitResponse::addPEnoise().
int HcalSimParameters::pixels | ( | const DetId & | detId | ) | const |
Definition at line 150 of file HcalSimParameters.cc.
References cms::cuda::assert(), HcalDbService::getHcalSiPMParameter(), HcalSiPMCharacteristics::getPixels(), HcalSiPMParameter::getType(), theDbService, and theSiPMcharacteristics.
Referenced by HcalSiPMHitResponse::makeSiPMSignal().
|
virtual |
the ratio of actual incident energy to deposited energy in the SimHit
Definition at line 94 of file HcalSimParameters.cc.
References HcalDetId::ietaAbs(), theFirstRing, and theSamplingFactors.
Referenced by simHitToPhotoelectrons().
void HcalSimParameters::setDbService | ( | const HcalDbService * | service | ) |
Definition at line 57 of file HcalSimParameters.cc.
References cms::cuda::assert(), theDbService, and theSiPMcharacteristics.
Referenced by HcalSimParameterMap::setDbService().
unsigned int HcalSimParameters::signalShape | ( | const DetId & | detId | ) | const |
Definition at line 172 of file HcalSimParameters.cc.
References cms::cuda::assert(), HcalDbService::getHcalMCParam(), HcalMCParam::signalShape(), and theDbService.
Referenced by HcalSiPMHitResponse::makeSiPMSignal().
|
overridevirtual |
Reimplemented from CaloSimParameters.
Definition at line 64 of file HcalSimParameters.cc.
References fCtoGeV(), HcalGenericDetId::HcalGenForward, HcalGenericDetId::HcalGenZDC, CaloSimParameters::photoelectronsToAnalog(), mps_fire::result, samplingFactor(), and CaloSimParameters::simHitToPhotoelectrons().
double HcalSimParameters::sipmCrossTalk | ( | const DetId & | detId | ) | const |
Definition at line 161 of file HcalSimParameters.cc.
References cms::cuda::assert(), HcalSiPMCharacteristics::getCrossTalk(), HcalDbService::getHcalSiPMParameter(), HcalSiPMParameter::getType(), theDbService, and theSiPMcharacteristics.
Referenced by HcalSiPMHitResponse::makeSiPMSignal().
double HcalSimParameters::sipmDarkCurrentuA | ( | const DetId & | detId | ) | const |
Definition at line 156 of file HcalSimParameters.cc.
References cms::cuda::assert(), HcalSiPMParameter::getDarkCurrent(), HcalDbService::getHcalSiPMParameter(), and theDbService.
Referenced by HcalSiPMHitResponse::addPEnoise().
std::vector< float > HcalSimParameters::sipmNonlinearity | ( | const DetId & | detId | ) | const |
Definition at line 166 of file HcalSimParameters.cc.
References cms::cuda::assert(), HcalDbService::getHcalSiPMParameter(), HcalSiPMCharacteristics::getNonLinearities(), HcalSiPMParameter::getType(), theDbService, and theSiPMcharacteristics.
Referenced by HcalSiPMHitResponse::makeSiPMSignal().
|
inline |
Definition at line 45 of file HcalSimParameters.h.
References theSiPMTau.
Referenced by HcalSiPMHitResponse::makeSiPMSignal().
|
inline |
Definition at line 44 of file HcalSimParameters.h.
References threshold_currentTDC_.
Referenced by HcalElectronicsSim::analogToDigital().
double HcalSimParameters::timeSmearRMS | ( | double | ampl | ) | const |
Definition at line 126 of file HcalSimParameters.cc.
References first, mps_fire::i, and theSmearSettings.
|
friend |
Definition at line 51 of file HcalSimParameters.h.
|
private |
Definition at line 64 of file HcalSimParameters.h.
Referenced by delayQIE().
|
private |
Definition at line 60 of file HcalSimParameters.h.
Referenced by doTimeSmear().
|
private |
Definition at line 55 of file HcalSimParameters.h.
Referenced by fCtoGeV(), photoelectronsToAnalog(), pixels(), setDbService(), signalShape(), sipmCrossTalk(), sipmDarkCurrentuA(), and sipmNonlinearity().
|
private |
Definition at line 57 of file HcalSimParameters.h.
Referenced by samplingFactor().
|
private |
Definition at line 58 of file HcalSimParameters.h.
Referenced by samplingFactor().
|
private |
Definition at line 56 of file HcalSimParameters.h.
Referenced by pixels(), setDbService(), sipmCrossTalk(), and sipmNonlinearity().
|
private |
Definition at line 59 of file HcalSimParameters.h.
Referenced by doSiPMSmearing(), and HcalSimParameters().
|
private |
Definition at line 62 of file HcalSimParameters.h.
Referenced by sipmTau().
|
private |
Definition at line 61 of file HcalSimParameters.h.
Referenced by defaultTimeSmearing(), and timeSmearRMS().
|
private |
Definition at line 63 of file HcalSimParameters.h.
Referenced by threshold_currentTDC().