1 #ifndef SimCalorimetry_HGCSimProducers_hgcdigitizerbase 2 #define SimCalorimetry_HGCSimProducers_hgcdigitizerbase 8 #include <unordered_map> 9 #include <unordered_set> 32 const auto& dddConst =
geom->topology().dddConstants();
38 info.size = (isHalf ? 0.5 : 1.0);
39 info.thickness = 1 + dddConst.waferType(
detid,
false);
66 void GenerateGaussianNoise(CLHEP::HepRandomEngine* engine,
const double NoiseMean,
const double NoiseStd);
73 const std::unordered_set<DetId>& validIds,
75 CLHEP::HepRandomEngine* engine);
90 void runSimple(std::unique_ptr<DColl>& coll,
93 const std::unordered_set<DetId>& validIds,
94 CLHEP::HepRandomEngine* engine);
99 void updateOutput(std::unique_ptr<DColl>& coll,
const DFr& rawDataFrame);
107 const std::unordered_set<DetId>& validIds,
108 CLHEP::HepRandomEngine* engine) = 0;
HGCalSiNoiseMap< HGCSiliconDetId > scal_
std::vector< double > cce_
bool toaModeByEnergy() const
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
ForwardSubdetector subdet() const
HGCalSiNoiseMap< HFNoseDetId > scalHFNose_
HGCDigitizerBase(const edm::ParameterSet &ps)
CTOR.
void GenerateGaussianNoise(CLHEP::HepRandomEngine *engine, const double NoiseMean, const double NoiseStd)
Gaussian Noise Generation Member Function.
static const size_t NoiseArrayLength_
void updateOutput(std::unique_ptr< DColl > &coll, const DFr &rawDataFrame)
prepares the output according to the number of time samples to produce
bool RandNoiseGenerationFlag_
std::unordered_map< uint32_t, HGCCellInfo > HGCSimHitDataAccumulator
ForwardSubdetector subdet_
std::array< float, 3 > tdcForToAOnset() const
std::unique_ptr< HGCFEElectronics< DFr > > myFEelectronics_
edm::SortedCollection< DFr > DColl
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
DetId::Detector det() const
std::vector< float > noise_fC_
void addCellMetadata(HGCCellInfo &info, const HGCalGeometry *geom, const DetId &detid)
virtual ~HGCDigitizerBase()
DTOR.
double scaleByDoseFactor_
static const size_t samplesize_
bool thresholdFollowsMIP_
bool NoiseGeneration_Method_
std::array< std::array< double, samplesize_ >, NoiseArrayLength_ > GaussianNoiseArray_
float keV2fC() const
getters
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
models the behavior of the front-end electronics