11 #include "CLHEP/Random/RandGaussQ.h" 12 #include "CLHEP/Random/RandFlat.h" 30 conf.getParameter<
ParameterSet>(
"PSPDigitizerAlgorithm")) {
32 LogInfo(
"PSPDigitizerAlgorithm") <<
"Algorithm constructed " 33 <<
"Configuration parameters:" 34 <<
"Threshold/Gain = " 42 std::vector<PSimHit>::const_iterator inputEnd,
43 const size_t inputBeginGlobalIndex,
44 const unsigned int tofBin,
50 size_t simHitGlobalIndex = inputBeginGlobalIndex;
51 for (
auto it = inputBegin; it != inputEnd; ++it, ++simHitGlobalIndex) {
53 if ((*it).detUnitId() != detId)
56 LogDebug(
"PSPDigitizerAlgorithm") << (*it).particleType() <<
" " << (*it).pabs() <<
" " << (*it).energyLoss() <<
" " 57 << (*it).tof() <<
" " << (*it).trackId() <<
" " << (*it).processType() <<
" " 58 << (*it).detUnitId() << (*it).entryPoint() <<
" " << (*it).exitPoint();
60 std::vector<DigitizerUtility::EnergyDepositUnit> ionization_points;
61 std::vector<DigitizerUtility::SignalPoint> collection_points;
69 drift(*it, pixdet, bfield, ionization_points, collection_points);
73 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
PSPDigitizerAlgorithm(const edm::ParameterSet &conf)
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
void init(const edm::EventSetup &es) override
constexpr uint32_t rawId() const
get the raw id
const float theTofUpperCut
const Plane & surface() const
The nominal surface of the GeomDet.
const float theThresholdInE_Barrel
const int theAdcFullScale
DetId geographicalId() const
The label of this GeomDet.
~PSPDigitizerAlgorithm() 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
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