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>
32 const auto& dddConst =
geom->topology().dddConstants();
38 info.size = (isHalf ? 0.5 : 1.0);
39 info.thickness = 1 + dddConst.waferType(detid);
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;
static const size_t samplesize_
float keV2fC() const
getters
std::array< std::array< double, samplesize_ >, NoiseArrayLength_ > GaussianNoiseArray_
double scaleByDoseFactor_
constexpr Detector det() const
get the detector field from this detid
virtual ~HGCDigitizerBase()
DTOR.
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
bool thresholdFollowsMIP_
bool NoiseGeneration_Method_
HGCalSiNoiseMap< HGCSiliconDetId > scal_
models the behavior of the front-end electronics
void GenerateGaussianNoise(CLHEP::HepRandomEngine *engine, const double NoiseMean, const double NoiseStd)
Gaussian Noise Generation Member Function.
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_
std::unordered_map< uint32_t, HGCCellInfo > HGCSimHitDataAccumulator
std::vector< double > cce_
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
edm::SortedCollection< DFr > DColl
HGCDigitizerBase(const edm::ParameterSet &ps)
CTOR.
void addCellMetadata(HGCCellInfo &info, const HGCalGeometry *geom, const DetId &detid)
std::array< float, 3 > tdcForToAOnset() const
void updateOutput(std::unique_ptr< DColl > &coll, const DFr &rawDataFrame)
prepares the output according to the number of time samples to produce
std::vector< float > noise_fC_
std::unique_ptr< HGCFEElectronics< DFr > > myFEelectronics_
static const size_t NoiseArrayLength_
bool RandNoiseGenerationFlag_
ForwardSubdetector subdet_
DetId::Detector det() const