#include <SSDigitizerAlgorithm.h>
Public Member Functions | |
void | accumulateSimHits (const std::vector< PSimHit >::const_iterator inputBegin, const std::vector< PSimHit >::const_iterator inputEnd, const size_t inputBeginGlobalIndex, const uint32_t tofBin, const Phase2TrackerGeomDetUnit *pixdet, const GlobalVector &bfield) override |
void | init (const edm::EventSetup &es) override |
bool | isAboveThreshold (const DigitizerUtility::SimHitInfo *hitInfo, float charge, float thr) override |
bool | select_hit (const PSimHit &hit, double tCorr, double &sigScale) override |
SSDigitizerAlgorithm (const edm::ParameterSet &conf) | |
~SSDigitizerAlgorithm () override | |
Public Member Functions inherited from Phase2TrackerDigitizerAlgorithm | |
virtual void | digitize (const Phase2TrackerGeomDetUnit *pixdet, std::map< int, DigitizerUtility::DigiSimInfo > &digi_map, const TrackerTopology *tTopo) |
virtual void | initializeEvent (CLHEP::HepRandomEngine &eng) |
void | loadAccumulator (uint32_t detId, const std::map< int, float > &accumulator) |
Phase2TrackerDigitizerAlgorithm (const edm::ParameterSet &conf_common, const edm::ParameterSet &conf_specific) | |
virtual | ~Phase2TrackerDigitizerAlgorithm () |
Private Types | |
enum | { SquareWindow, SampledMode, LatchedMode, SampledOrLachedMode, HIPFindingMode } |
Private Member Functions | |
double | aScalingConstant (int N, int i) |
double | cbc3PulsePolarExpansion (double x) |
double | getSignalScale (double xval) |
double | nFactorial (int n) |
bool | select_hit_latchedMode (const PSimHit &hit, double tCorr, double &sigScale) |
bool | select_hit_sampledMode (const PSimHit &hit, double tCorr, double &sigScale) |
double | signalShape (double x) |
void | storeSignalShape () |
Private Attributes | |
float | deadTime_ |
int | hitDetectionMode_ |
std::vector< double > | pulseShapeParameters_ |
std::vector< double > | pulseShapeVec_ |
Static Private Attributes | |
static constexpr float | bx_time {25} |
static constexpr size_t | interpolationPoints {1000} |
static constexpr int | interpolationStep {10} |
Definition at line 6 of file SSDigitizerAlgorithm.h.
|
private |
Enumerator | |
---|---|
SquareWindow | |
SampledMode | |
LatchedMode | |
SampledOrLachedMode | |
HIPFindingMode |
Definition at line 25 of file SSDigitizerAlgorithm.h.
SSDigitizerAlgorithm::SSDigitizerAlgorithm | ( | const edm::ParameterSet & | conf | ) |
Definition at line 18 of file SSDigitizerAlgorithm.cc.
References Phase2TrackerDigitizerAlgorithm::addPixelInefficiency_, LogDebug, Phase2TrackerDigitizerAlgorithm::pixelFlag_, storeSignalShape(), Phase2TrackerDigitizerAlgorithm::theAdcFullScale_, Phase2TrackerDigitizerAlgorithm::theElectronPerADC_, Phase2TrackerDigitizerAlgorithm::theThresholdInE_Barrel_, Phase2TrackerDigitizerAlgorithm::theThresholdInE_Endcap_, and Phase2TrackerDigitizerAlgorithm::tMax_.
|
override |
|
overridevirtual |
Implements Phase2TrackerDigitizerAlgorithm.
Definition at line 36 of file SSDigitizerAlgorithm.cc.
References c_inv, Phase2TrackerDigitizerAlgorithm::drift(), GeomDet::geographicalId(), Phase2TrackerDigitizerAlgorithm::induce_signal(), LogDebug, mag(), Phase2TrackerDigitizerAlgorithm::primary_ionization(), DetId::rawId(), select_hit(), GeomDet::surface(), and Surface::toGlobal().
|
private |
Definition at line 133 of file SSDigitizerAlgorithm.cc.
References mps_fire::i, N, nFactorial(), and funct::pow().
Referenced by cbc3PulsePolarExpansion().
|
private |
Definition at line 137 of file SSDigitizerAlgorithm.cc.
References aScalingConstant(), funct::cos(), hcaldqm::quantity::fN, mps_fire::i, dqmiolumiharvest::j, nFactorial(), funct::pow(), pulseShapeParameters_, alignCSCRings::r, funct::sin(), metsig::tau, theta(), x, phase1PixelTopology::xOffset, and geometryCSVtoXML::xx.
Referenced by signalShape().
|
private |
Definition at line 181 of file SSDigitizerAlgorithm.cc.
References reco::ceil(), mps_fire::i, interpolationStep, pulseShapeVec_, pileupCalc::upper, and heppy_batch::val.
Referenced by select_hit_latchedMode(), and select_hit_sampledMode().
|
overridevirtual |
Implements Phase2TrackerDigitizerAlgorithm.
Definition at line 17 of file SSDigitizerAlgorithm.cc.
References edm::EventSetup::get(), and edm::get().
|
overridevirtual |
Reimplemented from Phase2TrackerDigitizerAlgorithm.
Definition at line 202 of file SSDigitizerAlgorithm.cc.
References ALCARECOTkAlJpsiMuMu_cff::charge.
|
private |
Definition at line 132 of file SSDigitizerAlgorithm.cc.
References dqmiodumpmetadata::n.
Referenced by aScalingConstant(), and cbc3PulsePolarExpansion().
|
overridevirtual |
Reimplemented from Phase2TrackerDigitizerAlgorithm.
Definition at line 79 of file SSDigitizerAlgorithm.cc.
References hitDetectionMode_, LatchedMode, mps_fire::result, SampledMode, select_hit_latchedMode(), select_hit_sampledMode(), Phase2TrackerDigitizerAlgorithm::theTofLowerCut_, and Phase2TrackerDigitizerAlgorithm::theTofUpperCut_.
Referenced by accumulateSimHits().
|
private |
Definition at line 108 of file SSDigitizerAlgorithm.cc.
References bx_time, deadTime_, getSignalScale(), Phase2TrackerDigitizerAlgorithm::GeVperElectron_, mps_fire::i, DetId::subdetId(), Phase2TrackerDigitizerAlgorithm::theThresholdInE_Barrel_, Phase2TrackerDigitizerAlgorithm::theThresholdInE_Endcap_, and StripSubdetector::TOB.
Referenced by select_hit().
|
private |
Definition at line 94 of file SSDigitizerAlgorithm.cc.
References bx_time, getSignalScale(), Phase2TrackerDigitizerAlgorithm::GeVperElectron_, DetId::subdetId(), Phase2TrackerDigitizerAlgorithm::theThresholdInE_Barrel_, Phase2TrackerDigitizerAlgorithm::theThresholdInE_Endcap_, and StripSubdetector::TOB.
Referenced by select_hit().
|
private |
Definition at line 166 of file SSDigitizerAlgorithm.cc.
References cbc3PulsePolarExpansion(), JetChargeProducer_cfi::exp, funct::pow(), pulseShapeParameters_, metsig::tau, x, phase1PixelTopology::xOffset, and geometryCSVtoXML::xx.
Referenced by storeSignalShape().
|
private |
Definition at line 174 of file SSDigitizerAlgorithm.cc.
References mps_fire::i, interpolationPoints, interpolationStep, pulseShapeVec_, signalShape(), and heppy_batch::val.
Referenced by SSDigitizerAlgorithm().
|
staticconstexprprivate |
Definition at line 39 of file SSDigitizerAlgorithm.h.
Referenced by select_hit_latchedMode(), and select_hit_sampledMode().
|
private |
Definition at line 38 of file SSDigitizerAlgorithm.h.
Referenced by select_hit_latchedMode().
|
private |
Definition at line 35 of file SSDigitizerAlgorithm.h.
Referenced by select_hit().
|
staticconstexprprivate |
Definition at line 40 of file SSDigitizerAlgorithm.h.
Referenced by storeSignalShape().
|
staticconstexprprivate |
Definition at line 41 of file SSDigitizerAlgorithm.h.
Referenced by getSignalScale(), and storeSignalShape().
|
private |
Definition at line 37 of file SSDigitizerAlgorithm.h.
Referenced by cbc3PulsePolarExpansion(), and signalShape().
|
private |
Definition at line 36 of file SSDigitizerAlgorithm.h.
Referenced by getSignalScale(), and storeSignalShape().