Public Member Functions | |
HGCHEbackDigitizer (const edm::ParameterSet &ps) | |
void | runDigitizer (std::unique_ptr< HGCalDigiCollection > &digiColl, hgc::HGCSimHitDataAccumulator &simData, const CaloSubdetectorGeometry *theGeom, const std::unordered_set< DetId > &validIds, CLHEP::HepRandomEngine *engine) override |
~HGCHEbackDigitizer () override | |
Public Member Functions inherited from HGCDigitizerBase | |
DetId::Detector | det () const |
void | GenerateGaussianNoise (CLHEP::HepRandomEngine *engine, const double NoiseMean, const double NoiseStd) |
Gaussian Noise Generation Member Function. More... | |
HGCDigitizerBase (const edm::ParameterSet &ps) | |
CTOR. More... | |
float | keV2fC () const |
getters More... | |
void | run (std::unique_ptr< DColl > &digiColl, hgc::HGCSimHitDataAccumulator &simData, const CaloSubdetectorGeometry *theGeom, const std::unordered_set< DetId > &validIds, uint32_t digitizationType, CLHEP::HepRandomEngine *engine) |
steer digitization mode More... | |
virtual void | runDigitizer (std::unique_ptr< DColl > &coll, hgc::HGCSimHitDataAccumulator &simData, const CaloSubdetectorGeometry *theGeom, const std::unordered_set< DetId > &validIds, CLHEP::HepRandomEngine *engine)=0 |
to be specialized by top class More... | |
void | runSimple (std::unique_ptr< DColl > &coll, hgc::HGCSimHitDataAccumulator &simData, const CaloSubdetectorGeometry *theGeom, const std::unordered_set< DetId > &validIds, CLHEP::HepRandomEngine *engine) |
a trivial digitization: sum energies and digitize More... | |
ForwardSubdetector | subdet () const |
std::array< float, 3 > | tdcForToAOnset () const |
float | tdcOnset () const |
bool | toaModeByEnergy () const |
void | updateOutput (std::unique_ptr< DColl > &coll, const DFr &rawDataFrame) |
prepares the output according to the number of time samples to produce More... | |
virtual | ~HGCDigitizerBase () |
DTOR. More... | |
Private Member Functions | |
void | runCaliceLikeDigitizer (std::unique_ptr< HGCalDigiCollection > &digiColl, hgc::HGCSimHitDataAccumulator &simData, const CaloSubdetectorGeometry *theGeom, const std::unordered_set< DetId > &validIds, CLHEP::HepRandomEngine *engine) |
void | runEmptyDigitizer (std::unique_ptr< HGCalDigiCollection > &digiColl, hgc::HGCSimHitDataAccumulator &simData, const CaloSubdetectorGeometry *theGeom, const std::unordered_set< DetId > &validIds, CLHEP::HepRandomEngine *engine) |
void | runRealisticDigitizer (std::unique_ptr< HGCalDigiCollection > &digiColl, hgc::HGCSimHitDataAccumulator &simData, const CaloSubdetectorGeometry *theGeom, const std::unordered_set< DetId > &validIds, CLHEP::HepRandomEngine *engine) |
Private Attributes | |
uint32_t | algo_ |
std::string | doseMapFile_ |
float | keV2MIP_ |
float | noise_MIP_ |
float | nPEperMIP_ |
float | nTotalPE_ |
HGCalSciNoiseMap | scal_ |
bool | scaleByDose_ |
float | sdPixels_ |
std::string | sipmMapFile_ |
bool | thresholdFollowsMIP_ |
float | xTalk_ |
Additional Inherited Members | |
Public Types inherited from HGCDigitizerBase | |
typedef edm::SortedCollection< DFr > | DColl |
typedef HGCalDataFrame | DFr |
Protected Attributes inherited from HGCDigitizerBase | |
double | bxTime_ |
std::vector< double > | cce_ |
DetId::Detector | det_ |
std::string | doseMapFile_ |
bool | doTimeSamples_ |
std::array< std::array< double, samplesize_ >, NoiseArrayLength_ > | GaussianNoiseArray_ |
float | keV2fC_ |
edm::ParameterSet | myCfg_ |
std::unique_ptr< HGCFEElectronics< DFr > > | myFEelectronics_ |
std::vector< float > | noise_fC_ |
bool | NoiseGeneration_Method_ |
const double | NoiseMean_ |
const double | NoiseStd_ |
bool | RandNoiseGenerationFlag_ |
HGCalSiNoiseMap< HGCSiliconDetId > | scal_ |
bool | scaleByDose_ |
double | scaleByDoseFactor_ |
HGCalSiNoiseMap< HFNoseDetId > | scalHFNose_ |
ForwardSubdetector | subdet_ |
bool | thresholdFollowsMIP_ |
Static Protected Attributes inherited from HGCDigitizerBase | |
static const size_t | NoiseArrayLength_ = 200000 |
static const size_t | samplesize_ = 15 |
Definition at line 15 of file HGCHEbackDigitizer.cc.
HGCHEbackDigitizer::HGCHEbackDigitizer | ( | const edm::ParameterSet & | ps | ) |
Definition at line 53 of file HGCHEbackDigitizer.cc.
References algo_, looper::cfg, HGCDigitizerBase::det_, doseMapFile_, HGCalSciNoiseMap::getNPeInSiPM(), edm::ParameterSet::getParameter(), DetId::HGCalHSc, HGCDigitizerBase::keV2fC_, keV2MIP_, HGCDigitizerBase::myFEelectronics_, noise_MIP_, nPEperMIP_, nTotalPE_, scal_, scaleByDose_, HGCAL_noise_fC_cfi::scaleByDoseAlgo, HGCDigitizerBase::scaleByDoseFactor_, sdPixels_, HGCalSciNoiseMap::setDoseMap(), HGCalRadiationMap::setFluenceScaleFactor(), HGCalSciNoiseMap::setReferenceCrossTalk(), HGCalSciNoiseMap::setReferenceDarkCurrent(), HGCalSciNoiseMap::setSipmMap(), sipmMapFile_, thresholdFollowsMIP_, and xTalk_.
|
override |
Definition at line 322 of file HGCHEbackDigitizer.cc.
|
private |
Definition at line 255 of file HGCHEbackDigitizer.cc.
References hgc_digi_utils::addCellMetadata(), debug, f, myMath::fast_expf(), myMath::fast_logf(), dqmMemoryStats::float, hgc_digi::HGCCellInfo::hit_info, mps_fire::i, keV2MIP_, SiStripPI::max, HGCDigitizerBase::myFEelectronics_, noise_MIP_, nPEperMIP_, nTotalPE_, sdPixels_, HGCDigitizerBase::updateOutput(), x, and xTalk_.
Referenced by runDigitizer().
|
override |
Definition at line 84 of file HGCHEbackDigitizer.cc.
References algo_, DigiToRawDM_cff::digiColl, runCaliceLikeDigitizer(), runEmptyDigitizer(), and runRealisticDigitizer().
|
private |
Definition at line 97 of file HGCHEbackDigitizer.cc.
References hgc_digi_utils::addCellMetadata(), f, hgc_digi::HGCCellInfo::hit_info, mps_fire::i, keV2MIP_, HGCDigitizerBase::myFEelectronics_, and HGCDigitizerBase::updateOutput().
Referenced by runDigitizer().
|
private |
Definition at line 132 of file HGCHEbackDigitizer.cc.
References hgc_digi_utils::addCellMetadata(), HGCalRadiationMap::computeRadius(), debug, HGCDigitizerBase::det(), MillePedeFileConverter_cfg::e, f, myMath::fast_expf(), HGCalSciNoiseMap::getLSBPerGain(), HGCalSciNoiseMap::getMaxADCPerGain(), DetId::HGCalHSc, hgc_digi::HGCCellInfo::hit_info, mps_fire::i, HGCalSciNoiseMap::ignoreAutoPedestalSubtraction(), keV2MIP_, LogDebug, SiStripPI::max, HGCDigitizerBase::myFEelectronics_, noise_MIP_, nPEperMIP_, nTotalPE_, EcalCondDBWriter_cfi::pedestal, funct::pow(), CosmicsPD_Skims::radius, HGCalSciNoiseMap::SiPMonTileCharacteristics::s, scal_, HGCalSciNoiseMap::scaleByDose(), scaleByDose_, HGCalRadiationMap::setGeometry(), thresholdFollowsMIP_, HGCDigitizerBase::updateOutput(), x, hgchebackDigitizer_cfi::xTalk, and xTalk_.
Referenced by runDigitizer().
|
private |
Definition at line 27 of file HGCHEbackDigitizer.cc.
Referenced by HGCHEbackDigitizer(), and runDigitizer().
|
private |
Definition at line 31 of file HGCHEbackDigitizer.cc.
Referenced by HGCHEbackDigitizer().
|
private |
Definition at line 29 of file HGCHEbackDigitizer.cc.
Referenced by HGCHEbackDigitizer(), runCaliceLikeDigitizer(), runEmptyDigitizer(), and runRealisticDigitizer().
|
private |
Definition at line 29 of file HGCHEbackDigitizer.cc.
Referenced by HGCHEbackDigitizer(), runCaliceLikeDigitizer(), and runRealisticDigitizer().
|
private |
Definition at line 30 of file HGCHEbackDigitizer.cc.
Referenced by HGCHEbackDigitizer(), runCaliceLikeDigitizer(), and runRealisticDigitizer().
|
private |
Definition at line 30 of file HGCHEbackDigitizer.cc.
Referenced by HGCHEbackDigitizer(), runCaliceLikeDigitizer(), and runRealisticDigitizer().
|
private |
Definition at line 32 of file HGCHEbackDigitizer.cc.
Referenced by HGCHEbackDigitizer(), and runRealisticDigitizer().
|
private |
Definition at line 28 of file HGCHEbackDigitizer.cc.
Referenced by HGCHEbackDigitizer(), and runRealisticDigitizer().
|
private |
Definition at line 30 of file HGCHEbackDigitizer.cc.
Referenced by HGCHEbackDigitizer(), and runCaliceLikeDigitizer().
|
private |
Definition at line 31 of file HGCHEbackDigitizer.cc.
Referenced by HGCHEbackDigitizer().
|
private |
Definition at line 28 of file HGCHEbackDigitizer.cc.
Referenced by HGCHEbackDigitizer(), and runRealisticDigitizer().
|
private |
Definition at line 30 of file HGCHEbackDigitizer.cc.
Referenced by HGCHEbackDigitizer(), runCaliceLikeDigitizer(), and runRealisticDigitizer().