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 
47  float MinTrackEta;
48  float MaxTrackEta;
49  unsigned int MaxNrStrips;
50  unsigned int MinTrackHits;
52 
53  float P_Min;
54  float P_Max;
55  int P_NBins;
56  float Path_Min;
57  float Path_Max;
59  float Charge_Min;
60  float Charge_Max;
62 
63  std::vector<std::string> VInputFiles;
66 
68 
71  bool shapetest;
72 
73  std::vector<std::vector<float> > calibGains;
74  unsigned int m_off;
75 };
76 
77 #endif
DeDxDiscriminatorLearner::algoMode
std::string algoMode
Definition: DeDxDiscriminatorLearner.h:64
DeDxDiscriminatorLearner::Charge_NBins
int Charge_NBins
Definition: DeDxDiscriminatorLearner.h:61
TrajectoryStateOnSurface.h
DeDxDiscriminatorLearner::m_calibrationPath
std::string m_calibrationPath
Definition: DeDxDiscriminatorLearner.h:69
DeDxDiscriminatorLearner::MaxTrackChiOverNdf
float MaxTrackChiOverNdf
Definition: DeDxDiscriminatorLearner.h:51
DeDxDiscriminatorLearner::shapetest
bool shapetest
Definition: DeDxDiscriminatorLearner.h:71
DeDxDiscriminatorLearner
Definition: DeDxDiscriminatorLearner.h:23
edm::EDGetTokenT
Definition: EDGetToken.h:33
DeDxDiscriminatorLearner::VInputFiles
std::vector< std::string > VInputFiles
Definition: DeDxDiscriminatorLearner.h:63
DeDxDiscriminatorLearner::MinTrackMomentum
float MinTrackMomentum
Definition: DeDxDiscriminatorLearner.h:45
DeDxDiscriminatorLearner::algoBeginJob
void algoBeginJob(const edm::EventSetup &) override
Definition: DeDxDiscriminatorLearner.cc:71
DeDxDiscriminatorLearner::Path_Max
float Path_Max
Definition: DeDxDiscriminatorLearner.h:57
Histogram3D.h
DeDxDiscriminatorLearner::Charge_Min
float Charge_Min
Definition: DeDxDiscriminatorLearner.h:59
DeDxDiscriminatorLearner::Charge_Vs_Path
TH3F * Charge_Vs_Path
Definition: DeDxDiscriminatorLearner.h:67
rpcPointValidation_cfi.recHit
recHit
Definition: rpcPointValidation_cfi.py:7
DeDxDiscriminatorLearner::Path_Min
float Path_Min
Definition: DeDxDiscriminatorLearner.h:56
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
MakerMacros.h
DeDxDiscriminatorLearner::m_trajTrackAssociationTag
edm::EDGetTokenT< TrajTrackAssociationCollection > m_trajTrackAssociationTag
Definition: DeDxDiscriminatorLearner.h:42
ConditionDBWriter
Definition: ConditionDBWriter.h:149
DeDxTools.h
DeDxDiscriminatorLearner::m_off
unsigned int m_off
Definition: DeDxDiscriminatorLearner.h:74
DeDxDiscriminatorLearner::MinTrackEta
float MinTrackEta
Definition: DeDxDiscriminatorLearner.h:47
reco::btau::trackMomentum
Definition: TaggingVariable.h:41
DeDxDiscriminatorLearner::MaxTrackMomentum
float MaxTrackMomentum
Definition: DeDxDiscriminatorLearner.h:46
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:35
DeDxDiscriminatorLearner::algoAnalyze
void algoAnalyze(const edm::Event &, const edm::EventSetup &) override
Definition: DeDxDiscriminatorLearner.cc:120
edm::ParameterSet
Definition: ParameterSet.h:36
DeDxDiscriminatorLearner::useCalibration
bool useCalibration
Definition: DeDxDiscriminatorLearner.h:70
Event.h
DeDxDiscriminatorLearner::Path_NBins
int Path_NBins
Definition: DeDxDiscriminatorLearner.h:58
DeDxDiscriminatorLearner::P_NBins
int P_NBins
Definition: DeDxDiscriminatorLearner.h:55
DeDxDiscriminatorLearner::MaxNrStrips
unsigned int MaxNrStrips
Definition: DeDxDiscriminatorLearner.h:49
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:351
DeDxDiscriminatorLearner::P_Min
float P_Min
Definition: DeDxDiscriminatorLearner.h:53
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:65
Trajectory.h
DeDxDiscriminatorLearner::m_tracksTag
edm::EDGetTokenT< reco::TrackCollection > m_tracksTag
Definition: DeDxDiscriminatorLearner.h:43
Frameworkfwd.h
DeDxDiscriminatorLearner::MaxTrackEta
float MaxTrackEta
Definition: DeDxDiscriminatorLearner.h:48
DeDxDiscriminatorLearner::algoEndJob
void algoEndJob() override
Definition: DeDxDiscriminatorLearner.cc:99
DeDxDiscriminatorLearner::Charge_Max
float Charge_Max
Definition: DeDxDiscriminatorLearner.h:60
DeDxDiscriminatorLearner::P_Max
float P_Max
Definition: DeDxDiscriminatorLearner.h:54
ParameterSet.h
DeDxDiscriminatorLearner::calibGains
std::vector< std::vector< float > > calibGains
Definition: DeDxDiscriminatorLearner.h:73
edm::Event
Definition: Event.h:73
DeDxDiscriminatorLearner::MinTrackHits
unsigned int MinTrackHits
Definition: DeDxDiscriminatorLearner.h:50