Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-01-16 23:37:27

0001 #ifndef SimTracker_SiPhase2Digitizer_PSPDigitizerAlgorithm_h
0002 #define SimTracker_SiPhase2Digitizer_PSPDigitizerAlgorithm_h
0003 
0004 #include "CondFormats/DataRecord/interface/SiPhase2OuterTrackerLorentzAngleRcd.h"
0005 #include "FWCore/Utilities/interface/ESGetToken.h"
0006 #include "Geometry/Records/interface/TrackerDigiGeometryRecord.h"
0007 #include "SimTracker/SiPhase2Digitizer/plugins/Phase2TrackerDigitizerAlgorithm.h"
0008 
0009 class PSPDigitizerAlgorithm : public Phase2TrackerDigitizerAlgorithm {
0010 public:
0011   PSPDigitizerAlgorithm(const edm::ParameterSet& conf, edm::ConsumesCollector iC);
0012   ~PSPDigitizerAlgorithm() override;
0013 
0014   // initialization that cannot be done in the constructor
0015   void init(const edm::EventSetup& es) override;
0016 
0017   bool select_hit(const PSimHit& hit, double tCorr, double& sigScale) const override;
0018   bool isAboveThreshold(const digitizerUtility::SimHitInfo* hitInfo, float charge, float thr) const override;
0019   bool isInBiasRailRegion(const PSimHit& hit) const;
0020   void module_killing_DB(const Phase2TrackerGeomDetUnit* pixdet) override;
0021 
0022 private:
0023   edm::ESGetToken<SiPhase2OuterTrackerLorentzAngle, SiPhase2OuterTrackerLorentzAngleSimRcd> siPhase2OTLorentzAngleToken_;
0024   const edm::ESGetToken<TrackerGeometry, TrackerDigiGeometryRecord> geomToken_;
0025   const int biasRailInefficiencyFlag_{0};
0026 };
0027 #endif