CMS 3D CMS Logo

DeDxEstimatorProducer.h
Go to the documentation of this file.
1 #ifndef TrackRecoDeDx_DeDxEstimatorProducer_H
2 #define TrackRecoDeDx_DeDxEstimatorProducer_H
3 // user include files
4 
5 #include <memory>
6 
13 
18 
24 
36 
38 
40 
41 //
42 // class declaration
43 //
44 
46 public:
48  ~DeDxEstimatorProducer() override;
49  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
50 
51 private:
52  void beginRun(edm::Run const& run, const edm::EventSetup&) override;
53  void produce(edm::Event&, const edm::EventSetup&) override;
54 
56  void processHit(const TrackingRecHit* recHit,
57  float trackMomentum,
58  float& cosine,
59  reco::DeDxHitCollection& dedxHits,
60  int& NClusterSaturating);
61 
62  // ----------member data ---------------------------
63  std::unique_ptr<BaseDeDxEstimator> m_estimator;
64 
68 
70  bool usePixel;
71  bool useStrip;
74 
75  unsigned int MaxNrStrips;
76 
79  bool shapetest;
80 
81  std::vector<std::vector<float> > calibGains;
82  unsigned int m_off;
83 
85  const TrackerGeometry* tkGeom = nullptr;
86 };
87 
88 #endif
DeDxEstimatorProducer(const edm::ParameterSet &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::EDGetTokenT< reco::TrackCollection > m_tracksTag
std::vector< DeDxHit > DeDxHitCollection
Definition: DeDxHit.h:45
edm::EDGetTokenT< reco::TrackDeDxHitsCollection > m_stripDeDxHitsTag
std::unique_ptr< BaseDeDxEstimator > m_estimator
edm::EDGetTokenT< reco::TrackDeDxHitsCollection > m_pixelDeDxHitsTag
void beginRun(edm::Run const &run, const edm::EventSetup &) override
void processHit(const TrackingRecHit *recHit, float trackMomentum, float &cosine, reco::DeDxHitCollection &dedxHits, int &NClusterSaturating)
const TrackerGeometry * tkGeom
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > tkGeomToken
void produce(edm::Event &, const edm::EventSetup &) override
void makeCalibrationMap(const TrackerGeometry &tkGeom)
Definition: Run.h:45
std::vector< std::vector< float > > calibGains