|
|
#include <HGCDigitizerBase.h>
|
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...
|
|
template<class DFr>
class HGCDigitizerBase< DFr >
Definition at line 61 of file HGCDigitizerBase.h.
◆ DColl
◆ DigiType
◆ HGCDigitizerBase()
CTOR.
Definition at line 9 of file HGCDigitizerBase.cc.
23 .
template getParameter<std::vector<double>>(
"values");
◆ ~HGCDigitizerBase()
◆ GenerateGaussianNoise()
template<class DFr >
void HGCDigitizerBase< DFr >::GenerateGaussianNoise |
( |
CLHEP::HepRandomEngine * |
engine, |
|
|
const double |
NoiseMean, |
|
|
const double |
NoiseStd |
|
) |
| |
◆ keV2fC()
◆ run()
◆ runDigitizer()
◆ runSimple()
a trivial digitization: sum energies and digitize without noise
Definition at line 93 of file HGCDigitizerBase.cc.
104 std::array<double, samplesize_> cellNoiseArray;
106 cellNoiseArray[
i] = 0.0;
107 for (
const auto&
id : validIds) {
108 chargeColl.fill(0.
f);
110 HGCSimHitDataAccumulator::iterator it = simData.find(
id);
111 HGCCellInfo& cell = (simData.end() == it ? zeroData : it->second);
119 float cce(1.
f), noiseWidth(0.
f), lsbADC(-1.
f), maxADC(-1.
f);
122 uint32_t gainIdx = 0;
128 noiseWidth = siop.
noise;
148 for (
size_t i = 0;
i < cell.
hit_info[0].size();
i++) {
161 noise = CLHEP::RandGaussQ::shoot(engine, cellNoiseArray[
i], noiseWidth);
162 float totalCharge(rawCharge * cce +
noise);
163 if (totalCharge < 0.
f)
165 chargeColl[
i] = totalCharge;
169 DFr rawDataFrame(
id);
◆ tdcForToAOnset()
◆ tdcOnset()
◆ toaModeByEnergy()
◆ updateOutput()
prepares the output according to the number of time samples to produce
Definition at line 179 of file HGCDigitizerBase.cc.
181 if (rawDataFrame.size() <= itIdx + 2)
184 DFr dataFrame(rawDataFrame.id());
186 bool putInEvent(
false);
187 for (
int it = 0; it < 5; it++) {
188 dataFrame.setSample(it, rawDataFrame[itIdx - 2 + it]);
190 putInEvent = rawDataFrame[itIdx - 2 + it].threshold();
194 coll->push_back(dataFrame);
◆ bxTime_
◆ cce_
◆ doseMapFile_
◆ doTimeSamples_
◆ GaussianNoiseArray_
◆ keV2fC_
◆ myCfg_
◆ myFEelectronics_
◆ noise_fC_
◆ NoiseArrayLength_
◆ NoiseGeneration_Method_
◆ NoiseMean_
◆ NoiseStd_
◆ RandNoiseGenerationFlag_
◆ samplesize_
◆ scal_
◆ scaleByDose_
◆ thresholdFollowsMIP_
std::array< std::array< double, samplesize_ >, NoiseArrayLength_ > GaussianNoiseArray_
std::vector< double > & getMaxADCPerGain()
bool RandNoiseGenerationFlag_
bool NoiseGeneration_Method_
void setGeometry(const CaloSubdetectorGeometry *)
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
void GenerateGaussianNoise(CLHEP::HepRandomEngine *engine, const double NoiseMean, const double NoiseStd)
Gaussian Noise Generation Member Function.
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
void addCellMetadata(HGCCellInfo &info, const HcalGeometry *geom, const DetId &detid)
std::array< HGCSimData_t, nSamples > HGCSimHitData
void updateOutput(std::unique_ptr< DColl > &coll, const DFr &rawDataFrame)
prepares the output according to the number of time samples to produce
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
std::vector< float > noise_fC_
models the behavior of the front-end electronics
void setIleakParam(const std::vector< double > &pars)
set the ileak parameters to use
static const size_t NoiseArrayLength_
bool exists(std::string const ¶meterName) const
checks if a parameter exists
static const size_t samplesize_
void setDoseMap(const std::string &, const unsigned int &)
overrides base class method with specifics for the configuration of the algo
void setCceParam(const std::vector< double > &parsFine, const std::vector< double > &parsThin, const std::vector< double > &parsThick)
set the cce parameters to use
std::array< HGCSimHitData, 2 > hit_info
T getParameter(std::string const &) const
bool thresholdFollowsMIP_
std::vector< double > & getLSBPerGain()
SiCellOpCharacteristics getSiCellOpCharacteristics(const HGCSiliconDetId &did, GainRange_t gain=GainRange_t::AUTO, int aimMIPtoADC=10)
returns the charge collection efficiency and noise if gain range is set to auto, it will find the mos...
std::vector< double > cce_
std::unique_ptr< HGCFEElectronics< DFr > > myFEelectronics_