CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
14 
18 
24 
27 
30 
31 //
32 // class declaration
33 //
34 
36 public:
37  explicit DeDxHitInfoProducer(const edm::ParameterSet&);
38  ~DeDxHitInfoProducer() override;
39 
40 private:
41  void beginRun(edm::Run const& run, const edm::EventSetup&) override;
42  void produce(edm::Event&, const edm::EventSetup&) override;
43 
45  void processHit(const TrackingRecHit* recHit,
46  const float trackMomentum,
47  const float cosine,
48  reco::DeDxHitInfo& hitDeDxInfo,
49  const LocalPoint& hitLocalPos);
50 
51  // ----------member data ---------------------------
52 
54 
55  const bool usePixel;
56  const bool useStrip;
57  const float MeVperADCPixel;
58  const float MeVperADCStrip;
59 
60  const unsigned int minTrackHits;
61  const float minTrackPt;
62  const float minTrackPtPrescale;
63  const float maxTrackEta;
64 
66  const bool useCalibration;
67  const bool shapetest;
68 
72 
73  std::vector<std::vector<float> > calibGains;
74  unsigned int m_off;
75 
78 
80  uint64_t x = state[0];
81  uint64_t const y = state[1];
82  state[0] = y;
83  x ^= x << 23; // a
84  state[1] = x ^ y ^ (x >> 17) ^ (y >> 26); // b, c
85  return state[1] + y;
86  }
87 };
88 
89 #endif
edm::EDGetTokenT< reco::TrackCollection > m_tracksTag
GenericTruncatedAverageDeDxEstimator lowPtTracksEstimator
std::vector< std::vector< float > > calibGains
void produce(edm::Event &, const edm::EventSetup &) override
const unsigned int lowPtTracksPrescalePass
const float lowPtTracksDeDxThreshold
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
const unsigned int lowPtTracksPrescaleFail
uint64_t xorshift128p(uint64_t state[2])
unsigned long long uint64_t
Definition: Time.h:13
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > m_tkGeomToken
void beginRun(edm::Run const &run, const edm::EventSetup &) override
edm::ESHandle< TrackerGeometry > tkGeom
const float minTrackPtPrescale
Definition: Run.h:45
void makeCalibrationMap(const TrackerGeometry &tkGeom)