12 #include "CLHEP/Random/RandGaussQ.h" 13 #include "CLHEP/Random/RandFlat.h" 50 if (use_ineff_from_db_)
51 theSiPixelGainCalibrationService_->setESObjects(es);
53 if (use_deadmodule_DB_)
56 if (use_LorentzAngle_DB_)
66 conf.getParameter<
ParameterSet>(
"PixelDigitizerAlgorithm"))
69 LogInfo(
"PixelDigitizerAlgorithm") <<
"Algorithm constructed " 70 <<
"Configuration parameters:" 71 <<
"Threshold/Gain = " 72 <<
"threshold in electron Endcap = " 74 <<
"threshold in electron Barrel = " 77 <<
" The delta cut-off is set to " <<
tMax 81 LogDebug(
"PixelDigitizerAlgorithm") <<
"Algorithm deleted";
84 std::vector<PSimHit>::const_iterator inputEnd,
85 const size_t inputBeginGlobalIndex,
86 const unsigned int tofBin,
92 size_t simHitGlobalIndex = inputBeginGlobalIndex;
93 for (
auto it = inputBegin; it != inputEnd; ++it, ++simHitGlobalIndex) {
95 if ((*it).detUnitId() != detId)
99 << (*it).particleType() <<
" " << (*it).pabs() <<
" " 100 << (*it).energyLoss() <<
" " << (*it).tof() <<
" " 101 << (*it).trackId() <<
" " << (*it).processType() <<
" " 103 << (*it).entryPoint() <<
" " << (*it).exitPoint();
105 std::vector<DigitizerUtility::EnergyDepositUnit> ionization_points;
106 std::vector<DigitizerUtility::SignalPoint> collection_points;
113 drift (*it, pixdet, bfield, ionization_points, collection_points);
116 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
PixelDigitizerAlgorithm(const edm::ParameterSet &conf)
const float theThresholdInE_Endcap
void init(const edm::EventSetup &es) override
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
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 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.
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
~PixelDigitizerAlgorithm() override