#include <HcalSimParameters.h>
Public Member Functions | |
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) | |
virtual double | photoelectronsToAnalog (const DetId &detId) const |
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 |
virtual double | simHitToPhotoelectrons (const DetId &detId) const |
double | sipmCrossTalk (const DetId &detId) const |
double | sipmDarkCurrentuA (const DetId &detId) const |
std::vector< float > | sipmNonlinearity (const DetId &detId) const |
double | sipmTau () const |
double | timeSmearRMS (double ampl) const |
virtual | ~HcalSimParameters () |
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 |
choice of the ADC time alignment (synchronous for LHC, asynchronous for test beams) More... | |
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 | |
bool | doTimeSmear_ |
const HcalDbService * | theDbService |
int | theFirstRing |
std::vector< double > | theSamplingFactors |
const HcalSiPMCharacteristics * | theSiPMcharacteristics |
bool | theSiPMSmearing |
double | theSiPMTau |
HcalTimeSmearSettings | theSmearSettings |
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 34 of file HcalSimParameters.cc.
References defaultTimeSmearing(), and theSiPMSmearing.
|
inlinevirtual |
Definition at line 22 of file HcalSimParameters.h.
References fCtoGeV(), CaloSimParameters::photoelectronsToAnalog(), samplingFactor(), setDbService(), and CaloSimParameters::simHitToPhotoelectrons().
|
private |
Definition at line 111 of file HcalSimParameters.cc.
References GeV2fC, and theSmearSettings.
Referenced by HcalSimParameters().
|
inline |
Definition at line 40 of file HcalSimParameters.h.
References theSiPMSmearing.
Referenced by HcalSiPMHitResponse::makeSiPMSignal().
|
inline |
Definition at line 35 of file HcalSimParameters.h.
References doTimeSmear_, pixels(), and timeSmearRMS().
Referenced by HcalTimeSlewSim::delay().
double HcalSimParameters::fCtoGeV | ( | const DetId & | detId | ) | const |
{
Definition at line 70 of file HcalSimParameters.cc.
References HcalDbService::getGain(), HcalDbService::getGainWidth(), HcalGain::getValue(), mps_fire::result, and theDbService.
Referenced by simHitToPhotoelectrons(), and ~HcalSimParameters().
|
virtual |
Reimplemented from CaloSimParameters.
Definition at line 100 of file HcalSimParameters.cc.
References HcalSiPMParameter::getFCByPE(), HcalDbService::getHcalSiPMParameter(), and theDbService.
Referenced by HcalSiPMHitResponse::addPEnoise().
int HcalSimParameters::pixels | ( | const DetId & | detId | ) | const |
Definition at line 154 of file HcalSimParameters.cc.
References HcalDbService::getHcalSiPMParameter(), HcalSiPMCharacteristics::getPixels(), HcalSiPMParameter::getType(), theDbService, and theSiPMcharacteristics.
Referenced by doTimeSmear(), and HcalSiPMHitResponse::makeSiPMSignal().
|
virtual |
the ratio of actual incident energy to deposited energy in the SimHit
Definition at line 93 of file HcalSimParameters.cc.
References HcalDetId::ietaAbs(), theFirstRing, and theSamplingFactors.
Referenced by simHitToPhotoelectrons(), and ~HcalSimParameters().
void HcalSimParameters::setDbService | ( | const HcalDbService * | service | ) |
Definition at line 48 of file HcalSimParameters.cc.
References HcalDbService::getHcalSiPMCharacteristics(), theDbService, and theSiPMcharacteristics.
Referenced by HcalSimParameterMap::setDbService(), and ~HcalSimParameters().
unsigned int HcalSimParameters::signalShape | ( | const DetId & | detId | ) | const |
Definition at line 179 of file HcalSimParameters.cc.
References HcalDbService::getHcalMCParam(), HcalMCParam::signalShape(), and theDbService.
Referenced by HcalSiPMHitResponse::makeSiPMSignal(), and sipmTau().
|
virtual |
Reimplemented from CaloSimParameters.
Definition at line 56 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 166 of file HcalSimParameters.cc.
References HcalSiPMCharacteristics::getCrossTalk(), HcalDbService::getHcalSiPMParameter(), HcalSiPMParameter::getType(), theDbService, and theSiPMcharacteristics.
Referenced by HcalSiPMHitResponse::makeSiPMSignal(), and sipmTau().
double HcalSimParameters::sipmDarkCurrentuA | ( | const DetId & | detId | ) | const |
Definition at line 160 of file HcalSimParameters.cc.
References HcalSiPMParameter::getDarkCurrent(), HcalDbService::getHcalSiPMParameter(), and theDbService.
Referenced by HcalSiPMHitResponse::addPEnoise(), and sipmTau().
std::vector< float > HcalSimParameters::sipmNonlinearity | ( | const DetId & | detId | ) | const |
Definition at line 172 of file HcalSimParameters.cc.
References HcalDbService::getHcalSiPMParameter(), HcalSiPMCharacteristics::getNonLinearities(), HcalSiPMParameter::getType(), theDbService, and theSiPMcharacteristics.
Referenced by HcalSiPMHitResponse::makeSiPMSignal(), and sipmTau().
|
inline |
Definition at line 42 of file HcalSimParameters.h.
References signalShape(), sipmCrossTalk(), sipmDarkCurrentuA(), sipmNonlinearity(), and theSiPMTau.
Referenced by HcalSiPMHitResponse::makeSiPMSignal().
double HcalSimParameters::timeSmearRMS | ( | double | ampl | ) | const |
Definition at line 129 of file HcalSimParameters.cc.
References plotBeamSpotDB::first, mps_fire::i, and theSmearSettings.
Referenced by HcalTimeSlewSim::delay(), and doTimeSmear().
|
friend |
Definition at line 48 of file HcalSimParameters.h.
|
private |
Definition at line 57 of file HcalSimParameters.h.
Referenced by doTimeSmear().
|
private |
Definition at line 52 of file HcalSimParameters.h.
Referenced by fCtoGeV(), photoelectronsToAnalog(), pixels(), setDbService(), signalShape(), sipmCrossTalk(), sipmDarkCurrentuA(), and sipmNonlinearity().
|
private |
Definition at line 54 of file HcalSimParameters.h.
Referenced by samplingFactor().
|
private |
Definition at line 55 of file HcalSimParameters.h.
Referenced by samplingFactor().
|
private |
Definition at line 53 of file HcalSimParameters.h.
Referenced by pixels(), setDbService(), sipmCrossTalk(), and sipmNonlinearity().
|
private |
Definition at line 56 of file HcalSimParameters.h.
Referenced by doSiPMSmearing(), and HcalSimParameters().
|
private |
Definition at line 59 of file HcalSimParameters.h.
Referenced by sipmTau().
|
private |
Definition at line 58 of file HcalSimParameters.h.
Referenced by defaultTimeSmearing(), and timeSmearRMS().