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  virtual void endJob() ;
45 
46  int getCharge(const SiStripCluster* Cluster, int& Saturating_Strips,const uint32_t &);
47 // int getCharge(const SiStripRecHit2D* sistripsimplehit, int& Saturating_Strips);
48  void MakeCalibrationMap();
49 
50 
51  // ----------member data ---------------------------
53 
56 
57  bool usePixel;
58  bool useStrip;
61 
62  unsigned int MaxNrStrips;
63  unsigned int MinTrackHits;
64 
67  bool shapetest;
68 
69  private :
70  struct stModInfo{int DetId; float Thickness; float Distance; float Normalization; double Gain;};
71 
72  class isEqual{
73  public:
74  template <class T> bool operator () (const T& PseudoDetId1, const T& PseudoDetId2) { return PseudoDetId1==PseudoDetId2; }
75  };
76 
77  __gnu_cxx::hash_map<unsigned int, stModInfo*, __gnu_cxx::hash<unsigned int>, isEqual > MODsColl;
78 };
79 
80 #endif
81 
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 &)