11 #include "CLHEP/Random/RandGaussQ.h" 12 #include "CLHEP/Random/RandFlat.h" 33 conf.getParameter<
ParameterSet>(
"PSSDigitizerAlgorithm"),
37 LogInfo(
"PSSDigitizerAlgorithm") <<
"Algorithm constructed " 38 <<
"Configuration parameters:" 39 <<
"Threshold/Gain = " 40 <<
"threshold in electron Endcap = " 42 <<
"threshold in electron Barrel = " 45 <<
" The delta cut-off is set to " <<
tMax 49 LogDebug(
"PSSDigitizerAlgorithm") <<
"Algorithm deleted";
52 std::vector<PSimHit>::const_iterator inputEnd,
53 const size_t inputBeginGlobalIndex,
54 const unsigned int tofBin,
60 size_t simHitGlobalIndex = inputBeginGlobalIndex;
61 for (
auto it = inputBegin; it != inputEnd; ++it, ++simHitGlobalIndex) {
63 if ((*it).detUnitId() != detId)
67 << (*it).particleType() <<
" " << (*it).pabs() <<
" " 68 << (*it).energyLoss() <<
" " << (*it).tof() <<
" " 69 << (*it).trackId() <<
" " << (*it).processType() <<
" " 71 << (*it).entryPoint() <<
" " << (*it).exitPoint();
73 std::vector<DigitizerUtility::EnergyDepositUnit> ionization_points;
74 std::vector<DigitizerUtility::SignalPoint> collection_points;
81 drift(*it, pixdet, bfield, ionization_points, collection_points);
84 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
void init(const edm::EventSetup &es)
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
const float theTofUpperCut
const Plane & surface() const
The nominal surface of the GeomDet.
uint32_t rawId() const
get the raw id
const float theThresholdInE_Barrel
PSSDigitizerAlgorithm(const edm::ParameterSet &conf, CLHEP::HepRandomEngine &)
virtual ~PSSDigitizerAlgorithm()
const int theAdcFullScale
DetId geographicalId() const
The label of this GeomDet.
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)
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