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_ |
bool | scaleBySipmArea_ |
bool | scaleByTileArea_ |
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_, edm::ParameterSet::getParameter(), DetId::HGCalHSc, HGCDigitizerBase::keV2fC_, keV2MIP_, noise_MIP_, nPEperMIP_, nTotalPE_, scal_, scaleByDose_, hgcalDigitizer_cfi::scaleByDoseAlgo, HGCDigitizerBase::scaleByDoseFactor_, scaleBySipmArea_, scaleByTileArea_, sdPixels_, HGCalRadiationMap::setDoseMap(), HGCalRadiationMap::setFluenceScaleFactor(), HGCalSciNoiseMap::setSipmMap(), sipmMapFile_, AlCaHLTBitMon_QueryRunRegistry::string, thresholdFollowsMIP_, and xTalk_.
|
override |
Definition at line 308 of file HGCHEbackDigitizer.cc.
|
private |
Definition at line 241 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 79 of file HGCHEbackDigitizer.cc.
References algo_, DigiToRawDM_cff::digiColl, runCaliceLikeDigitizer(), runEmptyDigitizer(), and runRealisticDigitizer().
|
private |
Definition at line 92 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 127 of file HGCHEbackDigitizer.cc.
References hgc_digi_utils::addCellMetadata(), HGCalRadiationMap::computeRadius(), debug, HGCDigitizerBase::det(), f, myMath::fast_expf(), DetId::HGCalHSc, hgc_digi::HGCCellInfo::hit_info, mps_fire::i, keV2MIP_, LogDebug, SiStripPI::max, HGCDigitizerBase::myFEelectronics_, noise_MIP_, nPEperMIP_, nTotalPE_, or, funct::pow(), CosmicsPD_Skims::radius, scal_, HGCalSciNoiseMap::scaleByDose(), scaleByDose_, HGCalSciNoiseMap::scaleBySipmArea(), scaleBySipmArea_, HGCalSciNoiseMap::scaleByTileArea(), scaleByTileArea_, HGCalRadiationMap::setGeometry(), mathSSE::sqrt(), thresholdFollowsMIP_, HGCDigitizerBase::updateOutput(), x, 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 28 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().