CMS 3D CMS Logo

SSDigitizerAlgorithm.h
Go to the documentation of this file.
1 #ifndef _SimTracker_SiPhase2Digitizer_SSDigitizerAlgorithm_h
2 #define _SimTracker_SiPhase2Digitizer_SSDigitizerAlgorithm_h
3 
8 
10 public:
12  ~SSDigitizerAlgorithm() override;
13 
14  // initialization that cannot be done in the constructor
15  void init(const edm::EventSetup& es) override;
16 
17  bool select_hit(const PSimHit& hit, double tCorr, double& sigScale) const override;
18  bool isAboveThreshold(const DigitizerUtility::SimHitInfo* hitInfo, float charge, float thr) const override;
19 
20 private:
22  double cbc3PulsePolarExpansion(double x) const;
23  double signalShape(double x) const;
24  double getSignalScale(double xval) const;
25  void storeSignalShape();
26  bool select_hit_sampledMode(const PSimHit& hit, double tCorr, double& sigScale) const;
27  bool select_hit_latchedMode(const PSimHit& hit, double tCorr, double& sigScale) const;
28 
30  std::vector<double> pulseShapeVec_;
31  std::vector<double> pulseShapeParameters_;
32  float deadTime_;
35  static constexpr float bx_time{25};
36  static constexpr size_t interpolationPoints{1000};
37  static constexpr int interpolationStep{10};
38 };
39 #endif
SSDigitizerAlgorithm::SquareWindow
Definition: SSDigitizerAlgorithm.h:21
SSDigitizerAlgorithm::storeSignalShape
void storeSignalShape()
Definition: SSDigitizerAlgorithm.cc:150
SSDigitizerAlgorithm::SSDigitizerAlgorithm
SSDigitizerAlgorithm(const edm::ParameterSet &conf, edm::ConsumesCollector iC)
Definition: SSDigitizerAlgorithm.cc:36
SSDigitizerAlgorithm::interpolationStep
static constexpr int interpolationStep
Definition: SSDigitizerAlgorithm.h:37
SSDigitizerAlgorithm::pulseShapeVec_
std::vector< double > pulseShapeVec_
Definition: SSDigitizerAlgorithm.h:30
SSDigitizerAlgorithm::isAboveThreshold
bool isAboveThreshold(const DigitizerUtility::SimHitInfo *hitInfo, float charge, float thr) const override
Definition: SSDigitizerAlgorithm.cc:178
SSDigitizerAlgorithm
Definition: SSDigitizerAlgorithm.h:9
SSDigitizerAlgorithm::interpolationPoints
static constexpr size_t interpolationPoints
Definition: SSDigitizerAlgorithm.h:36
SSDigitizerAlgorithm::bx_time
static constexpr float bx_time
Definition: SSDigitizerAlgorithm.h:35
Phase2TrackerDigitizerAlgorithm.h
SSDigitizerAlgorithm::~SSDigitizerAlgorithm
~SSDigitizerAlgorithm() override
Definition: SSDigitizerAlgorithm.cc:57
DDAxes::x
ESGetToken.h
SiPhase2OuterTrackerLorentzAngleRcd.h
SSDigitizerAlgorithm::siPhase2OTLorentzAngleToken_
edm::ESGetToken< SiPhase2OuterTrackerLorentzAngle, SiPhase2OuterTrackerLorentzAngleSimRcd > siPhase2OTLorentzAngleToken_
Definition: SSDigitizerAlgorithm.h:33
SSDigitizerAlgorithm::HIPFindingMode
Definition: SSDigitizerAlgorithm.h:21
SSDigitizerAlgorithm::signalShape
double signalShape(double x) const
Definition: SSDigitizerAlgorithm.cc:142
SSDigitizerAlgorithm::pulseShapeParameters_
std::vector< double > pulseShapeParameters_
Definition: SSDigitizerAlgorithm.h:31
SSDigitizerAlgorithm::geomToken_
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > geomToken_
Definition: SSDigitizerAlgorithm.h:34
ALCARECOTkAlJpsiMuMu_cff.charge
charge
Definition: ALCARECOTkAlJpsiMuMu_cff.py:47
SSDigitizerAlgorithm::cbc3PulsePolarExpansion
double cbc3PulsePolarExpansion(double x) const
Definition: SSDigitizerAlgorithm.cc:113
SSDigitizerAlgorithm::select_hit_sampledMode
bool select_hit_sampledMode(const PSimHit &hit, double tCorr, double &sigScale) const
Definition: SSDigitizerAlgorithm.cc:76
TrackerDigiGeometryRecord.h
edm::ParameterSet
Definition: ParameterSet.h:47
SSDigitizerAlgorithm::SampledOrLachedMode
Definition: SSDigitizerAlgorithm.h:21
Phase2TrackerDigitizerAlgorithm
Definition: Phase2TrackerDigitizerAlgorithm.h:54
SSDigitizerAlgorithm::LatchedMode
Definition: SSDigitizerAlgorithm.h:21
SSDigitizerAlgorithm::deadTime_
float deadTime_
Definition: SSDigitizerAlgorithm.h:32
SSDigitizerAlgorithm::select_hit
bool select_hit(const PSimHit &hit, double tCorr, double &sigScale) const override
Definition: SSDigitizerAlgorithm.cc:61
edm::EventSetup
Definition: EventSetup.h:58
edm::ESGetToken< SiPhase2OuterTrackerLorentzAngle, SiPhase2OuterTrackerLorentzAngleSimRcd >
SSDigitizerAlgorithm::select_hit_latchedMode
bool select_hit_latchedMode(const PSimHit &hit, double tCorr, double &sigScale) const
Definition: SSDigitizerAlgorithm.cc:90
DigitizerUtility::SimHitInfo
Definition: DigitizerUtility.h:14
SSDigitizerAlgorithm::SampledMode
Definition: SSDigitizerAlgorithm.h:21
SSDigitizerAlgorithm::init
void init(const edm::EventSetup &es) override
Definition: SSDigitizerAlgorithm.cc:28
SSDigitizerAlgorithm::hitDetectionMode_
int hitDetectionMode_
Definition: SSDigitizerAlgorithm.h:29
SSDigitizerAlgorithm::getSignalScale
double getSignalScale(double xval) const
Definition: SSDigitizerAlgorithm.cc:157
PSimHit
Definition: PSimHit.h:15
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
hit
Definition: SiStripHitEffFromCalibTree.cc:88