CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 public:
26  ~DeDxDiscriminatorLearner() override;
27 
28 private:
29  void algoBeginJob(const edm::EventSetup&) override;
30  void algoAnalyze(const edm::Event&, const edm::EventSetup&) override;
31  void algoEndJob() override;
32 
33  void processHit(const TrackingRecHit* recHit,
34  float trackMomentum,
35  float& cosine,
36  const TrajectoryStateOnSurface& trajState);
37  void algoAnalyzeTheTree(const edm::EventSetup& iSetup);
38 
39  std::unique_ptr<PhysicsTools::Calibration::HistogramD3D> getNewObject() override;
40 
41  // ----------member data ---------------------------
44 
46 
49  float MinTrackEta;
50  float MaxTrackEta;
51  unsigned int MaxNrStrips;
52  unsigned int MinTrackHits;
54 
55  float P_Min;
56  float P_Max;
57  int P_NBins;
58  float Path_Min;
59  float Path_Max;
61  float Charge_Min;
62  float Charge_Max;
64 
65  std::vector<std::string> VInputFiles;
68 
70 
73  bool shapetest;
74 
75  std::vector<std::vector<float> > calibGains;
76  unsigned int m_off;
77 };
78 
79 #endif
void algoAnalyze(const edm::Event &, const edm::EventSetup &) override
std::vector< std::vector< float > > calibGains
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)
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > m_tkGeomToken
std::vector< std::string > VInputFiles
void algoBeginJob(const edm::EventSetup &) override
edm::EDGetTokenT< TrajTrackAssociationCollection > m_trajTrackAssociationTag
edm::EDGetTokenT< reco::TrackCollection > m_tracksTag
DeDxDiscriminatorLearner(const edm::ParameterSet &)