CMS 3D CMS Logo

DeDxHitInfoProducer.h
Go to the documentation of this file.
1 #ifndef TrackRecoDeDx_DeDxHitInfoProducer_H
2 #define TrackRecoDeDx_DeDxHitInfoProducer_H
3 // user include files
4 
5 #include <memory>
6 
13 
17 
23 
26 
28 
29 //
30 // class declaration
31 //
32 
34 public:
35  explicit DeDxHitInfoProducer(const edm::ParameterSet&);
37 
38 private:
39  virtual void beginRun(edm::Run const& run, const edm::EventSetup&) override;
40  virtual void produce(edm::Event&, const edm::EventSetup&) override;
41 
42  void makeCalibrationMap(const TrackerGeometry& tkGeom);
43  void processHit(const TrackingRecHit* recHit, const float trackMomentum, const float cosine, reco::DeDxHitInfo& hitDeDxInfo, const LocalPoint& hitLocalPos);
44 
45  // ----------member data ---------------------------
46 
48 
49  const bool usePixel;
50  const bool useStrip;
51  const float MeVperADCPixel;
52  const float MeVperADCStrip;
53 
54  const unsigned int minTrackHits;
55  const float minTrackPt;
56  const float maxTrackEta;
57 
59  const bool useCalibration;
60  const bool shapetest;
61 
62  std::vector< std::vector<float> > calibGains;
63  unsigned int m_off;
64 };
65 
66 #endif
edm::EDGetTokenT< reco::TrackCollection > m_tracksTag
std::vector< std::vector< float > > calibGains
virtual void produce(edm::Event &, const edm::EventSetup &) override
DeDxHitInfoProducer(const edm::ParameterSet &)
void processHit(const TrackingRecHit *recHit, const float trackMomentum, const float cosine, reco::DeDxHitInfo &hitDeDxInfo, const LocalPoint &hitLocalPos)
const std::string m_calibrationPath
const unsigned int minTrackHits
virtual void beginRun(edm::Run const &run, const edm::EventSetup &) override
Definition: Run.h:42
void makeCalibrationMap(const TrackerGeometry &tkGeom)