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
MTDTrackQualityMVA::operator()
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
Definition: MTDTrackQualityMVA.cc:15
MTDTrackQualityMVA::spec_vars_
std::vector< std::string > spec_vars_
Definition: MTDTrackQualityMVA.h:51
MTDTrackQualityMVA::vars_
std::vector< std::string > vars_
Definition: MTDTrackQualityMVA.h:51
edm::Ref< TrackCollection >
MTDTrackQualityMVA
Definition: MTDTrackQualityMVA.h:31
Track.h
TrackFwd.h
MTDBDTVAR_ENUM
#define MTDBDTVAR_ENUM(ENUM)
Definition: MTDTrackQualityMVA.h:28
TMVAEvaluator.h
MTDTRACKQUALITYMVA_VARS
#define MTDTRACKQUALITYMVA_VARS(MTDBDTVAR)
Definition: MTDTrackQualityMVA.h:12
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ValueMap.h
VertexFwd.h
MTDTrackQualityMVA::mva_
std::unique_ptr< TMVAEvaluator > mva_
Definition: MTDTrackQualityMVA.h:52
Vertex.h
edm::ValueMap< int >
MTDTrackQualityMVA::MTDTrackQualityMVA
MTDTrackQualityMVA(std::string weights_file)
Definition: MTDTrackQualityMVA.cc:3
MTDTrackQualityMVA::VarID
VarID
Definition: MTDTrackQualityMVA.h:36