25 std::unordered_map<uint32_t,
double>& simhits_ee,
26 std::unordered_map<uint32_t,
double>& simhits_fh,
27 std::unordered_map<uint32_t,
double>& simhits_bh);
145 std::unordered_map<uint32_t, double> simhits_ee;
146 std::unordered_map<uint32_t, double> simhits_fh;
147 std::unordered_map<uint32_t, double> simhits_bh;
149 simhits(
e, simhits_ee, simhits_fh, simhits_bh);
188 for (
const auto& digi : ee_digis) {
198 vector<uint32_t> hgcdigi_data(digi.size());
199 vector<int> hgcdigi_isadc(digi.size());
200 for (
int i = 0;
i < digi.size();
i++) {
201 hgcdigi_data[
i] = digi[
i].data();
202 hgcdigi_isadc[
i] = !digi[
i].mode();
220 double hit_energy = 0;
221 auto itr = simhits_ee.find(
id);
222 if (
itr != simhits_ee.end())
223 hit_energy =
itr->second;
228 for (
const auto& digi : fh_digis) {
238 vector<uint32_t> hgcdigi_data(digi.size());
239 vector<int> hgcdigi_isadc(digi.size());
240 for (
int i = 0;
i < digi.size();
i++) {
241 hgcdigi_data[
i] = digi[
i].data();
242 hgcdigi_isadc[
i] = !digi[
i].mode();
260 double hit_energy = 0;
261 auto itr = simhits_fh.find(
id);
262 if (
itr != simhits_fh.end())
263 hit_energy =
itr->second;
268 for (
const auto& digi : bh_digis) {
279 vector<uint32_t> bhdigi_data(digi.size());
280 vector<int> bhdigi_isadc(digi.size());
281 for (
int i = 0;
i < digi.size();
i++) {
282 bhdigi_data[
i] = digi[
i].data();
283 bhdigi_isadc[
i] = !digi[
i].mode();
297 double hit_energy = 0;
298 auto itr = simhits_bh.find(
id);
299 if (
itr != simhits_bh.end())
300 hit_energy =
itr->second;
307 std::unordered_map<uint32_t, double>& simhits_ee,
308 std::unordered_map<uint32_t, double>& simhits_fh,
309 std::unordered_map<uint32_t, double>& simhits_bh) {
321 for (
const auto& simhit : ee_simhits) {
325 auto itr_insert = simhits_ee.emplace(
id, 0.);
326 itr_insert.first->second += simhit.energy();
329 for (
const auto& simhit : fh_simhits) {
333 auto itr_insert = simhits_fh.emplace(
id, 0.);
334 itr_insert.first->second += simhit.energy();
337 for (
const auto& simhit : bh_simhits) {
343 auto itr_insert = simhits_bh.emplace(
id, 0.);
344 itr_insert.first->second += simhit.energy();