55 auto withPrefix([&
prefix, &bname](
char const* vname) ->
char const* {
56 bname =
prefix +
"_" + vname;
92 std::unordered_map<uint32_t, l1t::HGCalMulticlusterBxCollection::const_iterator> cluster2multicluster;
93 for (
auto mcl_itr = multiclusters.
begin(0); mcl_itr != multiclusters.
end(0); mcl_itr++) {
95 for (
const auto& cl_ptr : mcl_itr->constituents()) {
96 cluster2multicluster.emplace(cl_ptr.second->detId(), mcl_itr);
101 for (
auto cl_itr =
clusters.begin(0); cl_itr !=
clusters.end(0); cl_itr++) {
102 auto mcl_itr = cluster2multicluster.find(cl_itr->detId());
103 uint32_t mcl_id = (mcl_itr != cluster2multicluster.end() ? mcl_itr->second->detId() : 0);
104 float mcl_pt = (mcl_itr != cluster2multicluster.end() ? mcl_itr->second->pt() : 0.);
110 cl_pt_.emplace_back(cl_itr->pt());
112 cl_eta_.emplace_back(cl_itr->eta());
113 cl_phi_.emplace_back(cl_itr->phi());
115 cl_id_.emplace_back(cl_itr->detId());
118 cl_cells_n_.emplace_back(cl_itr->constituents().size());
120 cl_cells_id_.emplace_back(cl_itr->constituents().size());
122 cl_itr->constituents_begin(),
123 cl_itr->constituents_end(),
125 [](
const std::pair<uint32_t, edm::Ptr<l1t::HGCalTriggerCell>>& id_tc) {
return id_tc.second->detId(); });