CMS 3D CMS Logo

DeDxDiscriminatorLearner.h
Go to the documentation of this file.
1 #ifndef TrackRecoDeDx_DeDxDiscriminatorLearner_H
2 #define TrackRecoDeDx_DeDxDiscriminatorLearner_H
3 
8 
11 
15 
17 
18 #include "TFile.h"
19 #include "TH3F.h"
20 
21 #include <memory>
22 
23 class DeDxDiscriminatorLearner : public ConditionDBWriter<PhysicsTools::Calibration::HistogramD3D> {
24 
25 public:
26 
28  ~DeDxDiscriminatorLearner() override;
29 
30 private:
31  void algoBeginJob(const edm::EventSetup&) override ;
32  void algoAnalyze(const edm::Event&, const edm::EventSetup&) override;
33  void algoEndJob() override;
34 
35  void processHit(const TrackingRecHit* recHit, float trackMomentum, float& cosine, const TrajectoryStateOnSurface& trajState);
36  void algoAnalyzeTheTree(const edm::EventSetup& iSetup);
37 
38  std::unique_ptr<PhysicsTools::Calibration::HistogramD3D> getNewObject() override;
39 
40  // ----------member data ---------------------------
43 
46  float MinTrackEta;
47  float MaxTrackEta;
48  unsigned int MaxNrStrips;
49  unsigned int MinTrackHits;
51 
52  float P_Min;
53  float P_Max;
54  int P_NBins;
55  float Path_Min;
56  float Path_Max;
58  float Charge_Min;
59  float Charge_Max;
61 
62  std::vector<std::string> VInputFiles;
65 
67 
68 
71  bool shapetest;
72 
73  std::vector< std::vector<float> > calibGains;
74  unsigned int m_off;
75 
76 };
77 
78 #endif
79 
void algoAnalyze(const edm::Event &, const edm::EventSetup &) override
void algoAnalyzeTheTree(const edm::EventSetup &iSetup)
std::unique_ptr< PhysicsTools::Calibration::HistogramD3D > getNewObject() override
void processHit(const TrackingRecHit *recHit, float trackMomentum, float &cosine, const TrajectoryStateOnSurface &trajState)
std::vector< std::string > VInputFiles
void algoBeginJob(const edm::EventSetup &) override
edm::EDGetTokenT< TrajTrackAssociationCollection > m_trajTrackAssociationTag
edm::EDGetTokenT< reco::TrackCollection > m_tracksTag
std::vector< std::vector< float > > calibGains
DeDxDiscriminatorLearner(const edm::ParameterSet &)