CMS 3D CMS Logo

MTDTrackQualityMVA.h
Go to the documentation of this file.
1 #ifndef RECOMTD_TIMINGIDTOOLS_MTDTRACKQUALITYMVA
2 #define RECOMTD_TIMINGIDTOOLS_MTDTRACKQUALITYMVA
3 
9 
11 
12 #define MTDTRACKQUALITYMVA_VARS(MTDBDTVAR) \
13  MTDBDTVAR(pt) \
14  MTDBDTVAR(eta) \
15  MTDBDTVAR(phi) \
16  MTDBDTVAR(chi2) \
17  MTDBDTVAR(ndof) \
18  MTDBDTVAR(numberOfValidHits) \
19  MTDBDTVAR(numberOfValidPixelBarrelHits) \
20  MTDBDTVAR(numberOfValidPixelEndcapHits) \
21  MTDBDTVAR(btlMatchChi2) \
22  MTDBDTVAR(btlMatchTimeChi2) \
23  MTDBDTVAR(etlMatchChi2) \
24  MTDBDTVAR(etlMatchTimeChi2) \
25  MTDBDTVAR(mtdt) \
26  MTDBDTVAR(path_len)
27 
28 #define MTDBDTVAR_ENUM(ENUM) ENUM,
29 #define MTDBDTVAR_STRING(STRING) #STRING,
30 
32 public:
33  //---ctors---
34  MTDTrackQualityMVA(std::string weights_file);
35 
37 
38  //---getters---
39  // 4D
40  float operator()(const reco::TrackRef& trk,
41  const reco::TrackRef& ext_trk,
42  const edm::ValueMap<float>& btl_chi2s,
43  const edm::ValueMap<float>& btl_time_chi2s,
44  const edm::ValueMap<float>& etl_chi2s,
45  const edm::ValueMap<float>& etl_time_chi2s,
46  const edm::ValueMap<float>& tmtds,
47  const edm::ValueMap<float>& trk_lengths) const;
48 
49 private:
50  std::vector<std::string> vars_, spec_vars_;
51  std::unique_ptr<TMVAEvaluator> mva_;
52 };
53 
54 #endif
MTDTrackQualityMVA::operator()
float operator()(const reco::TrackRef &trk, const reco::TrackRef &ext_trk, const edm::ValueMap< float > &btl_chi2s, const edm::ValueMap< float > &btl_time_chi2s, const edm::ValueMap< float > &etl_chi2s, const edm::ValueMap< float > &etl_time_chi2s, const edm::ValueMap< float > &tmtds, const edm::ValueMap< float > &trk_lengths) const
Definition: MTDTrackQualityMVA.cc:15
MTDTrackQualityMVA::spec_vars_
std::vector< std::string > spec_vars_
Definition: MTDTrackQualityMVA.h:50
MTDTrackQualityMVA::vars_
std::vector< std::string > vars_
Definition: MTDTrackQualityMVA.h:50
edm::Ref< TrackCollection >
MTDTrackQualityMVA
Definition: MTDTrackQualityMVA.h:31
Track.h
TrackFwd.h
MTDBDTVAR_ENUM
#define MTDBDTVAR_ENUM(ENUM)
Definition: MTDTrackQualityMVA.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
Vertex.h
TMVAEvaluator.h
MTDTRACKQUALITYMVA_VARS
#define MTDTRACKQUALITYMVA_VARS(MTDBDTVAR)
Definition: MTDTrackQualityMVA.h:12
ValueMap.h
VertexFwd.h
MTDTrackQualityMVA::mva_
std::unique_ptr< TMVAEvaluator > mva_
Definition: MTDTrackQualityMVA.h:51
edm::ValueMap< float >
MTDTrackQualityMVA::MTDTrackQualityMVA
MTDTrackQualityMVA(std::string weights_file)
Definition: MTDTrackQualityMVA.cc:3
MTDTrackQualityMVA::VarID
VarID
Definition: MTDTrackQualityMVA.h:36