8 int nvars =
sizeof(vars_array) /
sizeof(vars_array[0]);
9 vars_.assign(vars_array, vars_array + nvars);
11 mva_ = std::make_unique<TMVAEvaluator>();
24 std::map<std::string, float>
vars;
28 if (trk->pt() < minPtForMVA)
47 return 1. / (1 +
sqrt(2 / (1 +
mva_->evaluate(
vars,
false)) - 1));
#define MTDBDTVAR_STRING(STRING)
#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_
bool contains(ProductID id) const