1 #ifndef DataFormats_BTauReco_DeepBoostedJetFeatures_h 2 #define DataFormats_BTauReco_DeepBoostedJetFeatures_h 6 #include <unordered_map> 26 <<
"[DeepBoostedJetFeatures::fill()] Feature " <<
name <<
" has not been registered";
35 const auto ref_len =
get(
names.front()).
size();
36 for (
unsigned i = 1;
i <
names.size(); ++
i) {
37 if (
get(
names[
i]).size() != ref_len) {
39 <<
"[DeepBoostedJetFeatures::check_consistency()] Inconsistent variable length " <<
get(
names[
i]).
size()
40 <<
" for " <<
names[
i] <<
", should be " << ref_len;
51 <<
"[DeepBoostedJetFeatures::get()] Feature " <<
name <<
" does not exist!";
62 #endif // DataFormats_BTauReco_DeepBoostedJetFeatures_h
const std::string names[nVars_]
void reserve(const std::string &name, unsigned capacity)
void check_consistency(const std::vector< std::string > &names) const
std::unordered_map< std::string, std::vector< float > > feature_map_
void add(const std::string &name)
void fill(const std::string &name, float value)
size d for d tracks hist hist capacity()