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 edm::ValueMap<int>& npixBarrels,
42  const edm::ValueMap<int>& npixEndcaps,
43  const edm::ValueMap<float>& btl_chi2s,
44  const edm::ValueMap<float>& btl_time_chi2s,
45  const edm::ValueMap<float>& etl_chi2s,
46  const edm::ValueMap<float>& etl_time_chi2s,
47  const edm::ValueMap<float>& tmtds,
48  const edm::ValueMap<float>& trk_lengths) const;
49 
50 private:
51  std::vector<std::string> vars_, spec_vars_;
52  std::unique_ptr<TMVAEvaluator> mva_;
53 };
54 
55 #endif
#define MTDBDTVAR_ENUM(ENUM)
#define MTDTRACKQUALITYMVA_VARS(MTDBDTVAR)
std::vector< std::string > spec_vars_
MTDTrackQualityMVA(std::string weights_file)
float operator()(const reco::TrackRef &trk, const edm::ValueMap< int > &npixBarrels, const edm::ValueMap< int > &npixEndcaps, 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
std::vector< std::string > vars_
std::unique_ptr< TMVAEvaluator > mva_