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 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
DeDxDiscriminatorLearner::algoMode
std::string algoMode
Definition: DeDxDiscriminatorLearner.h:66
DeDxDiscriminatorLearner::Charge_NBins
int Charge_NBins
Definition: DeDxDiscriminatorLearner.h:63
TrajectoryStateOnSurface.h
DeDxDiscriminatorLearner::m_calibrationPath
std::string m_calibrationPath
Definition: DeDxDiscriminatorLearner.h:71
DeDxDiscriminatorLearner::MaxTrackChiOverNdf
float MaxTrackChiOverNdf
Definition: DeDxDiscriminatorLearner.h:53
DeDxDiscriminatorLearner::shapetest
bool shapetest
Definition: DeDxDiscriminatorLearner.h:73
DeDxDiscriminatorLearner
Definition: DeDxDiscriminatorLearner.h:23
edm::EDGetTokenT
Definition: EDGetToken.h:33
DeDxDiscriminatorLearner::VInputFiles
std::vector< std::string > VInputFiles
Definition: DeDxDiscriminatorLearner.h:65
DeDxDiscriminatorLearner::MinTrackMomentum
float MinTrackMomentum
Definition: DeDxDiscriminatorLearner.h:47
DeDxDiscriminatorLearner::algoBeginJob
void algoBeginJob(const edm::EventSetup &) override
Definition: DeDxDiscriminatorLearner.cc:71
DeDxDiscriminatorLearner::Path_Max
float Path_Max
Definition: DeDxDiscriminatorLearner.h:59
Histogram3D.h
DeDxDiscriminatorLearner::Charge_Min
float Charge_Min
Definition: DeDxDiscriminatorLearner.h:61
DeDxDiscriminatorLearner::Charge_Vs_Path
TH3F * Charge_Vs_Path
Definition: DeDxDiscriminatorLearner.h:69
rpcPointValidation_cfi.recHit
recHit
Definition: rpcPointValidation_cfi.py:7
DeDxDiscriminatorLearner::Path_Min
float Path_Min
Definition: DeDxDiscriminatorLearner.h:58
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
MakerMacros.h
DeDxDiscriminatorLearner::m_trajTrackAssociationTag
edm::EDGetTokenT< TrajTrackAssociationCollection > m_trajTrackAssociationTag
Definition: DeDxDiscriminatorLearner.h:42
ConditionDBWriter
Definition: ConditionDBWriter.h:149
DeDxDiscriminatorLearner::m_tkGeomToken
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > m_tkGeomToken
Definition: DeDxDiscriminatorLearner.h:45
DeDxTools.h
DeDxDiscriminatorLearner::m_off
unsigned int m_off
Definition: DeDxDiscriminatorLearner.h:76
DeDxDiscriminatorLearner::MinTrackEta
float MinTrackEta
Definition: DeDxDiscriminatorLearner.h:49
reco::btau::trackMomentum
Definition: TaggingVariable.h:41
DeDxDiscriminatorLearner::MaxTrackMomentum
float MaxTrackMomentum
Definition: DeDxDiscriminatorLearner.h:48
TrajTrackAssociation.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DeDxDiscriminatorLearner::~DeDxDiscriminatorLearner
~DeDxDiscriminatorLearner() override
Definition: DeDxDiscriminatorLearner.cc:67
DeDxDiscriminatorLearner::DeDxDiscriminatorLearner
DeDxDiscriminatorLearner(const edm::ParameterSet &)
Definition: DeDxDiscriminatorLearner.cc:34
DeDxDiscriminatorLearner::algoAnalyze
void algoAnalyze(const edm::Event &, const edm::EventSetup &) override
Definition: DeDxDiscriminatorLearner.cc:120
edm::ParameterSet
Definition: ParameterSet.h:47
DeDxDiscriminatorLearner::useCalibration
bool useCalibration
Definition: DeDxDiscriminatorLearner.h:72
Event.h
DeDxDiscriminatorLearner::Path_NBins
int Path_NBins
Definition: DeDxDiscriminatorLearner.h:60
DeDxDiscriminatorLearner::P_NBins
int P_NBins
Definition: DeDxDiscriminatorLearner.h:57
DeDxDiscriminatorLearner::MaxNrStrips
unsigned int MaxNrStrips
Definition: DeDxDiscriminatorLearner.h:51
DeDxDiscriminatorLearner::algoAnalyzeTheTree
void algoAnalyzeTheTree(const edm::EventSetup &iSetup)
Definition: DeDxDiscriminatorLearner.cc:239
edm::EventSetup
Definition: EventSetup.h:57
DeDxDiscriminatorLearner::getNewObject
std::unique_ptr< PhysicsTools::Calibration::HistogramD3D > getNewObject() override
Definition: DeDxDiscriminatorLearner.cc:350
DeDxDiscriminatorLearner::P_Min
float P_Min
Definition: DeDxDiscriminatorLearner.h:55
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord >
ConditionDBWriter.h
DeDxDiscriminatorLearner::processHit
void processHit(const TrackingRecHit *recHit, float trackMomentum, float &cosine, const TrajectoryStateOnSurface &trajState)
Definition: DeDxDiscriminatorLearner.cc:161
TrackingRecHit
Definition: TrackingRecHit.h:21
DeDxDiscriminatorLearner::HistoFile
std::string HistoFile
Definition: DeDxDiscriminatorLearner.h:67
Trajectory.h
DeDxDiscriminatorLearner::m_tracksTag
edm::EDGetTokenT< reco::TrackCollection > m_tracksTag
Definition: DeDxDiscriminatorLearner.h:43
Frameworkfwd.h
DeDxDiscriminatorLearner::MaxTrackEta
float MaxTrackEta
Definition: DeDxDiscriminatorLearner.h:50
DeDxDiscriminatorLearner::algoEndJob
void algoEndJob() override
Definition: DeDxDiscriminatorLearner.cc:99
DeDxDiscriminatorLearner::Charge_Max
float Charge_Max
Definition: DeDxDiscriminatorLearner.h:62
DeDxDiscriminatorLearner::P_Max
float P_Max
Definition: DeDxDiscriminatorLearner.h:56
ParameterSet.h
DeDxDiscriminatorLearner::calibGains
std::vector< std::vector< float > > calibGains
Definition: DeDxDiscriminatorLearner.h:75
edm::Event
Definition: Event.h:73
DeDxDiscriminatorLearner::MinTrackHits
unsigned int MinTrackHits
Definition: DeDxDiscriminatorLearner.h:52