CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DeDxEstimatorProducerPixelTripplet.h
Go to the documentation of this file.
1 #ifndef TrackRecoDeDx_DeDxEstimatorProducerPixelTripplet_H
2 #define TrackRecoDeDx_DeDxEstimatorProducerPixelTripplet_H
3 // user include files
6 
9 
11 
14 
18 
19 #include <ext/hash_map>
20 
24 
25 #include "TFile.h"
26 #include "TChain.h"
27 
28 
29 //
30 // class declaration
31 //
32 
34 
35 public:
36 
39 
40 private:
41  virtual void beginRun(edm::Run & run, const edm::EventSetup&) ;
42  virtual void produce(edm::Event&, const edm::EventSetup&);
43  virtual void endJob() ;
44 
45  void MakeCalibrationMap();
46 
47 
48  // ----------member data ---------------------------
50 
53 
54  bool usePixel;
55  bool useStrip;
58 
59  unsigned int MaxNrStrips;
60  unsigned int MinTrackHits;
61 
62  std::string m_calibrationPath;
64  bool shapetest;
65 
66  private :
67  struct stModInfo{int DetId; float Thickness; float Distance; float Normalization; double Gain; GlobalVector Normal;};
68 
69  class isEqual{
70  public:
71  template <class T> bool operator () (const T& PseudoDetId1, const T& PseudoDetId2) { return PseudoDetId1==PseudoDetId2; }
72  };
73 
74  __gnu_cxx::hash_map<unsigned int, stModInfo*, __gnu_cxx::hash<unsigned int>, isEqual > MODsColl;
75 };
76 
77 #endif
78 
virtual void beginRun(edm::Run &run, const edm::EventSetup &)
virtual void produce(edm::Event &, const edm::EventSetup &)
__gnu_cxx::hash_map< unsigned int, stModInfo *, __gnu_cxx::hash< unsigned int >, isEqual > MODsColl
bool operator()(const T &PseudoDetId1, const T &PseudoDetId2)
long double T
Definition: Run.h:33