CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DeDxEstimatorProducer.h
Go to the documentation of this file.
1 #ifndef TrackRecoDeDx_DeDxEstimatorProducer_H
2 #define TrackRecoDeDx_DeDxEstimatorProducer_H
3 // user include files
6 
9 
11 
14 
18 
19 #include <ext/hash_map>
20 
25 
26 #include "TFile.h"
27 #include "TChain.h"
28 
29 
30 //
31 // class declaration
32 //
33 
35 
36 public:
37 
40 
41 private:
42  virtual void beginRun(edm::Run const& run, const edm::EventSetup&) override;
43  virtual void produce(edm::Event&, const edm::EventSetup&) override;
44 
45  int getCharge(const SiStripCluster* Cluster, int& Saturating_Strips,const uint32_t &);
46 // int getCharge(const SiStripRecHit2D* sistripsimplehit, int& Saturating_Strips);
47  void MakeCalibrationMap();
48 
49 
50  // ----------member data ---------------------------
52 
55 
56  bool usePixel;
57  bool useStrip;
60 
61  unsigned int MaxNrStrips;
62  unsigned int MinTrackHits;
63 
66  bool shapetest;
67 
68  private :
69  struct stModInfo{int DetId; float Thickness; float Distance; float Normalization; double Gain;};
70 
71  class isEqual{
72  public:
73  template <class T> bool operator () (const T& PseudoDetId1, const T& PseudoDetId2) { return PseudoDetId1==PseudoDetId2; }
74  };
75 
76  __gnu_cxx::hash_map<unsigned int, stModInfo*, __gnu_cxx::hash<unsigned int>, isEqual > MODsColl;
77 };
78 
79 #endif
80 
DeDxEstimatorProducer(const edm::ParameterSet &)
edm::EDGetTokenT< TrajTrackAssociationCollection > m_trajTrackAssociationTag
edm::EDGetTokenT< reco::TrackCollection > m_tracksTag
bool operator()(const T &PseudoDetId1, const T &PseudoDetId2)
virtual void beginRun(edm::Run const &run, const edm::EventSetup &) override
BaseDeDxEstimator * m_estimator
virtual void produce(edm::Event &, const edm::EventSetup &) override
__gnu_cxx::hash_map< unsigned int, stModInfo *, __gnu_cxx::hash< unsigned int >, isEqual > MODsColl
long double T
Definition: Run.h:41
int getCharge(const SiStripCluster *Cluster, int &Saturating_Strips, const uint32_t &)