11 #include "CLHEP/Random/RandGaussQ.h" 12 #include "CLHEP/Random/RandFlat.h" 31 conf.getParameter<
ParameterSet>(
"SSDigitizerAlgorithm")) {
33 LogInfo(
"SSDigitizerAlgorithm ") <<
"SSDigitizerAlgorithm constructed " 34 <<
"Configuration parameters:" 35 <<
"Threshold/Gain = " 43 std::vector<PSimHit>::const_iterator inputEnd,
44 const size_t inputBeginGlobalIndex,
45 const unsigned int tofBin,
51 size_t simHitGlobalIndex = inputBeginGlobalIndex;
52 for (
auto it = inputBegin; it != inputEnd; ++it, ++simHitGlobalIndex) {
54 if ((*it).detUnitId() != detId)
57 LogDebug(
"SSDigitizerAlgorithm") << (*it).particleType() <<
" " << (*it).pabs() <<
" " << (*it).energyLoss() <<
" " 58 << (*it).tof() <<
" " << (*it).trackId() <<
" " << (*it).processType() <<
" " 59 << (*it).detUnitId() << (*it).entryPoint() <<
" " << (*it).exitPoint();
61 std::vector<DigitizerUtility::EnergyDepositUnit> ionization_points;
62 std::vector<DigitizerUtility::SignalPoint> collection_points;
70 drift(*it, pixdet, bfield, ionization_points, collection_points);
75 induce_signal(*it, simHitGlobalIndex, tofBin, pixdet, collection_points);
void primary_ionization(const PSimHit &hit, std::vector< DigitizerUtility::EnergyDepositUnit > &ionization_points) const
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
const float theThresholdInE_Endcap
const float theElectronPerADC
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
void drift(const PSimHit &hit, const Phase2TrackerGeomDetUnit *pixdet, const GlobalVector &bfield, const std::vector< DigitizerUtility::EnergyDepositUnit > &ionization_points, std::vector< DigitizerUtility::SignalPoint > &collection_points) const
constexpr uint32_t rawId() const
get the raw id
const float theTofUpperCut
const Plane & surface() const
The nominal surface of the GeomDet.
~SSDigitizerAlgorithm() override
const float theThresholdInE_Barrel
void accumulateSimHits(const std::vector< PSimHit >::const_iterator inputBegin, const std::vector< PSimHit >::const_iterator inputEnd, const size_t inputBeginGlobalIndex, const unsigned int tofBin, const Phase2TrackerGeomDetUnit *pixdet, const GlobalVector &bfield) override
const int theAdcFullScale
SSDigitizerAlgorithm(const edm::ParameterSet &conf)
DetId geographicalId() const
The label of this GeomDet.
void init(const edm::EventSetup &es) override
void induce_signal(const PSimHit &hit, const size_t hitIndex, const unsigned int tofBin, const Phase2TrackerGeomDetUnit *pixdet, const std::vector< DigitizerUtility::SignalPoint > &collection_points)
const bool AddPixelInefficiency
const float theTofLowerCut