CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
35 
37 
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 
66 
67  bool usePixel;
68  bool useStrip;
71 
72  unsigned int MaxNrStrips;
73 
76  bool shapetest;
77 
78  std::vector<std::vector<float> > calibGains;
79  unsigned int m_off;
80 
82  const TrackerGeometry* tkGeom = nullptr;
83 };
84 
85 #endif
DeDxEstimatorProducer(const edm::ParameterSet &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::EDGetTokenT< reco::TrackCollection > m_tracksTag
std::vector< DeDxHit > DeDxHitCollection
Definition: DeDxHit.h:41
std::unique_ptr< BaseDeDxEstimator > m_estimator
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