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 
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 const& run, const edm::EventSetup&) override;
42  virtual void produce(edm::Event&, const edm::EventSetup&) override;
43  virtual void endJob() ;
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::InputTag m_trajTrackAssociationTag
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:36
int getCharge(const SiStripCluster *Cluster, int &Saturating_Strips, const uint32_t &)