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 
5 
7 public:
9  ~SSDigitizerAlgorithm() override;
10 
11  // initialization that cannot be done in the constructor
12  void init(const edm::EventSetup& es) override;
13 
14  bool select_hit(const PSimHit& hit, double tCorr, double& sigScale) const override;
15  bool isAboveThreshold(const DigitizerUtility::SimHitInfo* hitInfo, float charge, float thr) const override;
16 
17 private:
19  double cbc3PulsePolarExpansion(double x) const;
20  double signalShape(double x) const;
21  double getSignalScale(double xval) const;
22  void storeSignalShape();
23  bool select_hit_sampledMode(const PSimHit& hit, double tCorr, double& sigScale) const;
24  bool select_hit_latchedMode(const PSimHit& hit, double tCorr, double& sigScale) const;
25 
27  std::vector<double> pulseShapeVec_;
28  std::vector<double> pulseShapeParameters_;
29  float deadTime_;
30  static constexpr float bx_time{25};
31  static constexpr size_t interpolationPoints{1000};
32  static constexpr int interpolationStep{10};
33 };
34 #endif
SSDigitizerAlgorithm::storeSignalShape
void storeSignalShape()
Definition: SSDigitizerAlgorithm.cc:148
SSDigitizerAlgorithm::SSDigitizerAlgorithm
SSDigitizerAlgorithm(const edm::ParameterSet &conf)
Definition: SSDigitizerAlgorithm.cc:38
SSDigitizerAlgorithm::interpolationStep
static constexpr int interpolationStep
Definition: SSDigitizerAlgorithm.h:32
SSDigitizerAlgorithm::pulseShapeVec_
std::vector< double > pulseShapeVec_
Definition: SSDigitizerAlgorithm.h:27
SSDigitizerAlgorithm::isAboveThreshold
bool isAboveThreshold(const DigitizerUtility::SimHitInfo *hitInfo, float charge, float thr) const override
Definition: SSDigitizerAlgorithm.cc:176
SSDigitizerAlgorithm
Definition: SSDigitizerAlgorithm.h:6
SSDigitizerAlgorithm::interpolationPoints
static constexpr size_t interpolationPoints
Definition: SSDigitizerAlgorithm.h:31
SSDigitizerAlgorithm::bx_time
static constexpr float bx_time
Definition: SSDigitizerAlgorithm.h:30
Phase2TrackerDigitizerAlgorithm.h
SSDigitizerAlgorithm::~SSDigitizerAlgorithm
~SSDigitizerAlgorithm() override
Definition: SSDigitizerAlgorithm.cc:55
DDAxes::x
SSDigitizerAlgorithm::signalShape
double signalShape(double x) const
Definition: SSDigitizerAlgorithm.cc:140
SSDigitizerAlgorithm::pulseShapeParameters_
std::vector< double > pulseShapeParameters_
Definition: SSDigitizerAlgorithm.h:28
SSDigitizerAlgorithm::SquareWindow
Definition: SSDigitizerAlgorithm.h:18
ALCARECOTkAlJpsiMuMu_cff.charge
charge
Definition: ALCARECOTkAlJpsiMuMu_cff.py:47
SSDigitizerAlgorithm::cbc3PulsePolarExpansion
double cbc3PulsePolarExpansion(double x) const
Definition: SSDigitizerAlgorithm.cc:111
SSDigitizerAlgorithm::select_hit_sampledMode
bool select_hit_sampledMode(const PSimHit &hit, double tCorr, double &sigScale) const
Definition: SSDigitizerAlgorithm.cc:74
edm::ParameterSet
Definition: ParameterSet.h:47
Phase2TrackerDigitizerAlgorithm
Definition: Phase2TrackerDigitizerAlgorithm.h:59
SSDigitizerAlgorithm::deadTime_
float deadTime_
Definition: SSDigitizerAlgorithm.h:29
SSDigitizerAlgorithm::select_hit
bool select_hit(const PSimHit &hit, double tCorr, double &sigScale) const override
Definition: SSDigitizerAlgorithm.cc:59
edm::EventSetup
Definition: EventSetup.h:57
SSDigitizerAlgorithm::HIPFindingMode
Definition: SSDigitizerAlgorithm.h:18
SSDigitizerAlgorithm::select_hit_latchedMode
bool select_hit_latchedMode(const PSimHit &hit, double tCorr, double &sigScale) const
Definition: SSDigitizerAlgorithm.cc:88
DigitizerUtility::SimHitInfo
Definition: DigitizerUtility.h:14
SSDigitizerAlgorithm::init
void init(const edm::EventSetup &es) override
Definition: SSDigitizerAlgorithm.cc:30
SSDigitizerAlgorithm::hitDetectionMode_
int hitDetectionMode_
Definition: SSDigitizerAlgorithm.h:26
SSDigitizerAlgorithm::getSignalScale
double getSignalScale(double xval) const
Definition: SSDigitizerAlgorithm.cc:155
PSimHit
Definition: PSimHit.h:15
SSDigitizerAlgorithm::SampledMode
Definition: SSDigitizerAlgorithm.h:18
SSDigitizerAlgorithm::SampledOrLachedMode
Definition: SSDigitizerAlgorithm.h:18
SSDigitizerAlgorithm::LatchedMode
Definition: SSDigitizerAlgorithm.h:18
hit
Definition: SiStripHitEffFromCalibTree.cc:88