27 std::map<TubeGroup, std::map<MuonFixedId, double> >::const_iterator
it =
m_relative_offset.find(grp);
32 std::map<MuonFixedId, double>::const_iterator it2 =
it->second.find(
id);
33 if (it2 ==
it->second.end()) {
return 0; }
39 std::map<unsigned int, std::pair<double, int> > mean_t0;
42 std::map<unsigned int, std::pair<double, int> >
::iterator it2 = mean_t0.find(grp_id);
43 if (it2 == mean_t0.end()) {
44 mean_t0[grp_id] = std::pair<double, int>(
it->second, 1.);
46 it2->second.first +=
it->second;
50 for (
auto &
it : mean_t0) {
51 it.second.first /=
it.second.second;
59 offsets[
it->first] =
it->second - mean_t0[grp_id].first;