19 : _properties(n_prop, NAN)
24 os <<
"---Jet v2-----------------------" << std::endl;
25 os <<
"jetid: " <<
get_id() << std::endl;
26 os <<
" (px,py,pz,e) = (" <<
get_px() <<
", " <<
get_py() <<
", ";
27 os <<
get_pz() <<
", " <<
get_e() <<
") GeV" << std::endl;
29 os <<
" Jet Properties:";
36 os <<
" Jet Components: " <<
_comp_ids.size() << std::endl;
45 os <<
" (" << iter->first <<
"->" <<
static_cast<int>(iter->second) <<
")";
46 if (!single_line) os << std::endl;
48 if (single_line) os << std::endl;
53 std::vector<Jet::SRC>
vec{};
56 if (iter == iter_end)
return vec;
57 while (iter != iter_end)
68 std::map<Jet::SRC, size_t> sizemap{};
71 if (iter == iter_end)
return sizemap;
72 while (iter != iter_end)
76 sizemap.insert(std::make_pair(src, static_cast<size_t>(iter_ub - iter)));
93 if (
_id == 0xFFFFFFFF)
return 0;
96 if (std::isnan(
i))
return 0;
98 if (std::isnan(
_e))
return 0;
140 return -1 * sqrt(std::fabs(mass2));
142 return std::sqrt(mass2);
160 _comp_ids.push_back(std::make_pair(iSRC, compid));
163 {
_comp_ids.push_back(std::make_pair(iSRC, compid)); }
197 std::cout <<
" warning: Method Jet::"<<fn_name <<
"() deprecated in Jetv2" << std::endl;