11 #include "CLHEP/Random/RandGaussQ.h" 12 #include "CLHEP/Random/RandFlat.h" 38 LogInfo(
"SSDigitizerAlgorithm ") <<
"SSDigitizerAlgorithm constructed " 39 <<
"Configuration parameters:" 40 <<
"Threshold/Gain = " 41 <<
"threshold in electron Endcap = " 43 <<
"threshold in electron Barrel = " 46 <<
" The delta cut-off is set to " <<
tMax 50 LogDebug(
"SSDigitizerAlgorithm") <<
"SSDigitizerAlgorithm deleted";
53 std::vector<PSimHit>::const_iterator inputEnd,
54 const size_t inputBeginGlobalIndex,
55 const unsigned int tofBin,
61 size_t simHitGlobalIndex = inputBeginGlobalIndex;
62 for (
auto it = inputBegin; it != inputEnd; ++it, ++simHitGlobalIndex) {
64 if ((*it).detUnitId() != detId)
68 << (*it).particleType() <<
" " << (*it).pabs() <<
" " 69 << (*it).energyLoss() <<
" " << (*it).tof() <<
" " 70 << (*it).trackId() <<
" " << (*it).processType() <<
" " 72 << (*it).entryPoint() <<
" " << (*it).exitPoint() ;
74 std::vector<DigitizerUtility::EnergyDepositUnit> ionization_points;
75 std::vector<DigitizerUtility::SignalPoint> collection_points;
82 drift(*it, pixdet, bfield, ionization_points, collection_points);
86 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
const float theTofUpperCut
const Plane & surface() const
The nominal surface of the GeomDet.
~SSDigitizerAlgorithm() override
uint32_t rawId() const
get the raw id
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, CLHEP::HepRandomEngine &)
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