![]() |
![]() |
#include <HGCDigitizerBase.h>
Public Types | |
typedef edm::SortedCollection< DFr > | DColl |
typedef DFr | DigiType |
Public Member Functions | |
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, uint32_t digitizerType, CLHEP::HepRandomEngine *engine) |
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 without noise More... | |
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... | |
Protected Attributes | |
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< DFr > > | 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 | |
static const size_t | NoiseArrayLength_ = 200000 |
static const size_t | samplesize_ = 15 |
Definition at line 61 of file HGCDigitizerBase.h.
typedef edm::SortedCollection<DFr> HGCDigitizerBase< DFr >::DColl |
Definition at line 65 of file HGCDigitizerBase.h.
typedef DFr HGCDigitizerBase< DFr >::DigiType |
Definition at line 63 of file HGCDigitizerBase.h.
HGCDigitizerBase< DFr >::HGCDigitizerBase | ( | const edm::ParameterSet & | ps | ) |
CTOR.
Definition at line 9 of file HGCDigitizerBase.cc.
References HGCDigitizerBase< DFr >::bxTime_, HGCDigitizerBase< DFr >::cce_, HGCDigitizerBase< DFr >::doseMapFile_, HGCDigitizerBase< DFr >::doTimeSamples_, f, hgcalDigitizer_cfi::feCfg, edm::ParameterSet::getParameter(), HGCDigitizerBase< DFr >::keV2fC_, HGCDigitizerBase< DFr >::myCfg_, HGCDigitizerBase< DFr >::myFEelectronics_, HGCDigitizerBase< DFr >::noise_fC_, HGCDigitizerBase< DFr >::NoiseGeneration_Method_, hgcalLayerClusters_cff::noises, HGCDigitizerBase< DFr >::RandNoiseGenerationFlag_, HGCDigitizerBase< DFr >::scal_, HGCDigitizerBase< DFr >::scaleByDose_, hgcalDigitizer_cfi::scaleByDoseAlgo, HGCalSiNoiseMap::setCceParam(), HGCalSiNoiseMap::setDoseMap(), HGCalSiNoiseMap::setIleakParam(), and HGCDigitizerBase< DFr >::thresholdFollowsMIP_.
|
inlinevirtual |
void HGCDigitizerBase< DFr >::GenerateGaussianNoise | ( | CLHEP::HepRandomEngine * | engine, |
const double | NoiseMean, | ||
const double | NoiseStd | ||
) |
Gaussian Noise Generation Member Function.
Definition at line 61 of file HGCDigitizerBase.cc.
References HGCDigitizerBase< DFr >::GaussianNoiseArray_, mps_fire::i, dqmiolumiharvest::j, HGCDigitizerBase< DFr >::NoiseArrayLength_, and HGCDigitizerBase< DFr >::samplesize_.
Referenced by HGCDigitizerBase< DFr >::run().
|
inline |
void HGCDigitizerBase< DFr >::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
Definition at line 72 of file HGCDigitizerBase.cc.
References HGCDigitizerBase< DFr >::GenerateGaussianNoise(), HGCDigitizerBase< DFr >::NoiseGeneration_Method_, HGCDigitizerBase< DFr >::NoiseMean_, HGCDigitizerBase< DFr >::NoiseStd_, HGCDigitizerBase< DFr >::RandNoiseGenerationFlag_, HGCDigitizerBase< DFr >::runDigitizer(), HGCDigitizerBase< DFr >::runSimple(), HGCDigitizerBase< DFr >::scal_, HGCDigitizerBase< DFr >::scaleByDose_, and HGCalRadiationMap::setGeometry().
|
inlinevirtual |
to be specialized by top class
Reimplemented in HGCHEbackDigitizer, HFNoseDigitizer, HGCEEDigitizer, and HGCHEfrontDigitizer.
Definition at line 110 of file HGCDigitizerBase.h.
Referenced by HGCDigitizerBase< DFr >::run().
void HGCDigitizerBase< DFr >::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
Definition at line 93 of file HGCDigitizerBase.cc.
References hgc_digi_utils::addCellMetadata(), HGCalSiNoiseMap::AUTO, HGCalSiNoiseMap::SiCellOpCharacteristics::cce, HGCDigitizerBase< DFr >::cce_, f, dqmMemoryStats::float, HGCalSiNoiseMap::SiCellOpCharacteristics::gain, HGCDigitizerBase< DFr >::GaussianNoiseArray_, HGCalSiNoiseMap::getLSBPerGain(), HGCalSiNoiseMap::getMaxADCPerGain(), HGCalSiNoiseMap::getSiCellOpCharacteristics(), hgc_digi::HGCCellInfo::hit_info, mps_fire::i, triggerObjects_cff::id, HGCDigitizerBase< DFr >::myFEelectronics_, HGCalSiNoiseMap::SiCellOpCharacteristics::noise, hgcalDigitizer_cfi::noise, HGCDigitizerBase< DFr >::noise_fC_, HGCDigitizerBase< DFr >::NoiseArrayLength_, HGCDigitizerBase< DFr >::NoiseGeneration_Method_, HGCDigitizerBase< DFr >::samplesize_, HGCDigitizerBase< DFr >::scal_, HGCDigitizerBase< DFr >::scaleByDose_, hgc_digi::HGCCellInfo::size, hgc_digi::HGCCellInfo::thickness, Calorimetry_cff::thickness, HGCalSiNoiseMap::SiCellOpCharacteristics::thrADC, HGCDigitizerBase< DFr >::thresholdFollowsMIP_, and HGCDigitizerBase< DFr >::updateOutput().
Referenced by HGCDigitizerBase< DFr >::run().
|
inline |
Definition at line 91 of file HGCDigitizerBase.h.
|
inline |
Definition at line 90 of file HGCDigitizerBase.h.
|
inline |
Definition at line 89 of file HGCDigitizerBase.h.
void HGCDigitizerBase< DFr >::updateOutput | ( | std::unique_ptr< DColl > & | coll, |
const DFr & | rawDataFrame | ||
) |
prepares the output according to the number of time samples to produce
Definition at line 179 of file HGCDigitizerBase.cc.
Referenced by HGCDigitizerBase< DFr >::runSimple().
|
protected |
Definition at line 150 of file HGCDigitizerBase.h.
Referenced by HGCDigitizerBase< DFr >::HGCDigitizerBase().
|
protected |
Definition at line 135 of file HGCDigitizerBase.h.
Referenced by HGCDigitizerBase< DFr >::HGCDigitizerBase(), and HGCDigitizerBase< DFr >::runSimple().
|
protected |
Definition at line 141 of file HGCDigitizerBase.h.
Referenced by HGCDigitizerBase< DFr >::HGCDigitizerBase().
|
protected |
Definition at line 153 of file HGCDigitizerBase.h.
Referenced by HGCDigitizerBase< DFr >::HGCDigitizerBase().
|
protected |
Definition at line 163 of file HGCDigitizerBase.h.
Referenced by HGCDigitizerBase< DFr >::GenerateGaussianNoise(), and HGCDigitizerBase< DFr >::runSimple().
|
protected |
Definition at line 129 of file HGCDigitizerBase.h.
Referenced by HGCDigitizerBase< DFr >::HGCDigitizerBase().
|
protected |
Definition at line 122 of file HGCDigitizerBase.h.
Referenced by HGCDigitizerBase< DFr >::HGCDigitizerBase().
|
protected |
Definition at line 147 of file HGCDigitizerBase.h.
Referenced by HGCDigitizerBase< DFr >::HGCDigitizerBase(), and HGCDigitizerBase< DFr >::runSimple().
|
protected |
Definition at line 132 of file HGCDigitizerBase.h.
Referenced by HGCDigitizerBase< DFr >::HGCDigitizerBase(), and HGCDigitizerBase< DFr >::runSimple().
|
staticprotected |
Definition at line 161 of file HGCDigitizerBase.h.
Referenced by HGCDigitizerBase< DFr >::GenerateGaussianNoise(), and HGCDigitizerBase< DFr >::runSimple().
|
protected |
Definition at line 166 of file HGCDigitizerBase.h.
Referenced by HGCDigitizerBase< DFr >::HGCDigitizerBase(), HGCDigitizerBase< DFr >::run(), and HGCDigitizerBase< DFr >::runSimple().
|
protected |
Definition at line 160 of file HGCDigitizerBase.h.
Referenced by HGCDigitizerBase< DFr >::run().
|
protected |
Definition at line 160 of file HGCDigitizerBase.h.
Referenced by HGCDigitizerBase< DFr >::run().
|
protected |
Definition at line 164 of file HGCDigitizerBase.h.
Referenced by HGCDigitizerBase< DFr >::HGCDigitizerBase(), and HGCDigitizerBase< DFr >::run().
|
staticprotected |
Definition at line 162 of file HGCDigitizerBase.h.
Referenced by HGCDigitizerBase< DFr >::GenerateGaussianNoise(), and HGCDigitizerBase< DFr >::runSimple().
|
protected |
Definition at line 144 of file HGCDigitizerBase.h.
Referenced by HGCDigitizerBase< DFr >::HGCDigitizerBase(), HGCDigitizerBase< DFr >::run(), and HGCDigitizerBase< DFr >::runSimple().
|
protected |
Definition at line 138 of file HGCDigitizerBase.h.
Referenced by HGCDigitizerBase< DFr >::HGCDigitizerBase(), HGCDigitizerBase< DFr >::run(), and HGCDigitizerBase< DFr >::runSimple().
|
protected |
Definition at line 156 of file HGCDigitizerBase.h.
Referenced by HGCDigitizerBase< DFr >::HGCDigitizerBase(), and HGCDigitizerBase< DFr >::runSimple().