#include <HGCHEbackDigitizer.h>
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, uint32_t digitizationType, CLHEP::HepRandomEngine *engine) override |
to be specialized by top class More... | |
~HGCHEbackDigitizer () override | |
Public Member Functions inherited from HGCDigitizerBase< HGCalDataFrame > | |
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... | |
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 without noise More... | |
std::array< float, 3 > | tdcForToAOnset () const |
float | tdcOnset () const |
bool | toaModeByEnergy () const |
void | updateOutput (std::unique_ptr< DColl > &coll, const HGCalDataFrame &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< HGCalDataFrame > | |
typedef edm::SortedCollection< HGCalDataFrame > | DColl |
typedef HGCalDataFrame | DigiType |
Protected Attributes inherited from HGCDigitizerBase< HGCalDataFrame > | |
double | bxTime_ |
std::vector< double > | cce_ |
std::string | doseMapFile_ |
bool | doTimeSamples_ |
std::array< std::array< double, samplesize_ >, NoiseArrayLength_ > | GaussianNoiseArray_ |
float | keV2fC_ |
edm::ParameterSet | myCfg_ |
std::unique_ptr< HGCFEElectronics< HGCalDataFrame > > | myFEelectronics_ |
std::vector< float > | noise_fC_ |
bool | NoiseGeneration_Method_ |
const double | NoiseMean_ |
const double | NoiseStd_ |
bool | RandNoiseGenerationFlag_ |
HGCalSiNoiseMap | scal_ |
bool | scaleByDose_ |
bool | thresholdFollowsMIP_ |
Static Protected Attributes inherited from HGCDigitizerBase< HGCalDataFrame > | |
static const size_t | NoiseArrayLength_ |
static const size_t | samplesize_ |
Definition at line 9 of file HGCHEbackDigitizer.h.
HGCHEbackDigitizer::HGCHEbackDigitizer | ( | const edm::ParameterSet & | ps | ) |
Definition at line 15 of file HGCHEbackDigitizer.cc.
References algo_, looper::cfg, doseMapFile_, edm::ParameterSet::getParameter(), HGCDigitizerBase< HGCalDataFrame >::keV2fC_, keV2MIP_, noise_MIP_, nPEperMIP_, nTotalPE_, scal_, scaleByDose_, hgcalDigitizer_cfi::scaleByDoseAlgo, scaleBySipmArea_, scaleByTileArea_, sdPixels_, HGCalRadiationMap::setDoseMap(), HGCalSciNoiseMap::setSipmMap(), sipmMapFile_, AlCaHLTBitMon_QueryRunRegistry::string, thresholdFollowsMIP_, and xTalk_.
|
override |
Definition at line 268 of file HGCHEbackDigitizer.cc.
|
private |
Definition at line 201 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< HGCalDataFrame >::myFEelectronics_, noise_MIP_, nPEperMIP_, nTotalPE_, sdPixels_, HGCDigitizerBase< HGCalDataFrame >::updateOutput(), x, and xTalk_.
Referenced by runDigitizer().
|
overridevirtual |
to be specialized by top class
Reimplemented from HGCDigitizerBase< HGCalDataFrame >.
Definition at line 38 of file HGCHEbackDigitizer.cc.
References algo_, DigiToRawDM_cff::digiColl, runCaliceLikeDigitizer(), runEmptyDigitizer(), and runRealisticDigitizer().
|
private |
Definition at line 52 of file HGCHEbackDigitizer.cc.
References hgc_digi_utils::addCellMetadata(), f, hgc_digi::HGCCellInfo::hit_info, mps_fire::i, keV2MIP_, HGCDigitizerBase< HGCalDataFrame >::myFEelectronics_, and HGCDigitizerBase< HGCalDataFrame >::updateOutput().
Referenced by runDigitizer().
|
private |
Definition at line 87 of file HGCHEbackDigitizer.cc.
References hgc_digi_utils::addCellMetadata(), HGCalSciNoiseMap::computeRadius(), debug, f, myMath::fast_expf(), DetId::HGCalHSc, hgc_digi::HGCCellInfo::hit_info, mps_fire::i, keV2MIP_, LogDebug, SiStripPI::max, HGCDigitizerBase< HGCalDataFrame >::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< HGCalDataFrame >::updateOutput(), x, and xTalk_.
Referenced by runDigitizer().
|
private |
Definition at line 22 of file HGCHEbackDigitizer.h.
Referenced by HGCHEbackDigitizer(), and runDigitizer().
|
private |
Definition at line 26 of file HGCHEbackDigitizer.h.
Referenced by HGCHEbackDigitizer().
|
private |
Definition at line 24 of file HGCHEbackDigitizer.h.
Referenced by HGCHEbackDigitizer(), runCaliceLikeDigitizer(), runEmptyDigitizer(), and runRealisticDigitizer().
|
private |
Definition at line 24 of file HGCHEbackDigitizer.h.
Referenced by HGCHEbackDigitizer(), runCaliceLikeDigitizer(), and runRealisticDigitizer().
|
private |
Definition at line 25 of file HGCHEbackDigitizer.h.
Referenced by HGCHEbackDigitizer(), runCaliceLikeDigitizer(), and runRealisticDigitizer().
|
private |
Definition at line 25 of file HGCHEbackDigitizer.h.
Referenced by HGCHEbackDigitizer(), runCaliceLikeDigitizer(), and runRealisticDigitizer().
|
private |
Definition at line 27 of file HGCHEbackDigitizer.h.
Referenced by HGCHEbackDigitizer(), and runRealisticDigitizer().
|
private |
Definition at line 23 of file HGCHEbackDigitizer.h.
Referenced by HGCHEbackDigitizer(), and runRealisticDigitizer().
|
private |
Definition at line 23 of file HGCHEbackDigitizer.h.
Referenced by HGCHEbackDigitizer(), and runRealisticDigitizer().
|
private |
Definition at line 23 of file HGCHEbackDigitizer.h.
Referenced by HGCHEbackDigitizer(), and runRealisticDigitizer().
|
private |
Definition at line 25 of file HGCHEbackDigitizer.h.
Referenced by HGCHEbackDigitizer(), and runCaliceLikeDigitizer().
|
private |
Definition at line 26 of file HGCHEbackDigitizer.h.
Referenced by HGCHEbackDigitizer().
|
private |
Definition at line 23 of file HGCHEbackDigitizer.h.
Referenced by HGCHEbackDigitizer(), and runRealisticDigitizer().
|
private |
Definition at line 25 of file HGCHEbackDigitizer.h.
Referenced by HGCHEbackDigitizer(), runCaliceLikeDigitizer(), and runRealisticDigitizer().