Go to the documentation of this file. 1 #ifndef SimCalorimetry_HGCSimProducers_hgcdigitizerbase
2 #define SimCalorimetry_HGCSimProducers_hgcdigitizerbase
8 #include <unordered_map>
9 #include <unordered_set>
38 const auto& dddConst =
geom->topology().dddConstants();
44 info.size = (isHalf ? 0.5 : 1.0);
45 info.thickness = 1 + dddConst.waferType(detid);
74 void GenerateGaussianNoise(CLHEP::HepRandomEngine* engine,
const double NoiseMean,
const double NoiseStd);
81 const std::unordered_set<DetId>& validIds,
83 CLHEP::HepRandomEngine* engine);
96 void runSimple(std::unique_ptr<DColl>& coll,
99 const std::unordered_set<DetId>& validIds,
100 CLHEP::HepRandomEngine* engine);
105 void updateOutput(std::unique_ptr<DColl>& coll,
const DFr& rawDataFrame);
113 const std::unordered_set<DetId>& validIds,
114 uint32_t digitizerType,
115 CLHEP::HepRandomEngine* engine) {
116 throw cms::Exception(
"HGCDigitizerBaseException") <<
" Failed to find specialization of runDigitizer";
HGCDigitizerBase(const edm::ParameterSet &ps)
CTOR.
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
std::array< std::array< double, samplesize_ >, NoiseArrayLength_ > GaussianNoiseArray_
bool RandNoiseGenerationFlag_
constexpr Detector det() const
get the detector field from this detid
bool NoiseGeneration_Method_
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)
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
float keV2fC() const
getters
static const size_t NoiseArrayLength_
derives from HGCalRadiation map to parse fluence parameters, provides Si-specific functions; see DN-1...
static const size_t samplesize_
std::array< float, 3 > tdcForToAOnset() const
std::unordered_map< uint32_t, HGCCellInfo > HGCSimHitDataAccumulator
bool thresholdFollowsMIP_
bool toaModeByEnergy() const
virtual ~HGCDigitizerBase()
DTOR.
edm::SortedCollection< DFr > DColl
std::vector< double > cce_
std::unique_ptr< HGCFEElectronics< DFr > > myFEelectronics_