#include <MdtRelativeTubeT0.h>
Definition at line 15 of file MdtRelativeTubeT0.h.
◆ TubeGroup
◆ MdtRelativeTubeT0()
MuonCalib::MdtRelativeTubeT0::MdtRelativeTubeT0 |
( |
| ) |
|
|
default |
◆ ~MdtRelativeTubeT0()
MuonCalib::MdtRelativeTubeT0::~MdtRelativeTubeT0 |
( |
| ) |
|
|
default |
◆ AddHit()
◆ calculate_relative_t0s()
void MuonCalib::MdtRelativeTubeT0::calculate_relative_t0s |
( |
const TubeGroup & |
grp | ) |
|
|
inlineprivate |
Definition at line 37 of file MdtRelativeTubeT0.cxx.
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;
◆ GetRelativeOffset()
Definition at line 25 of file MdtRelativeTubeT0.cxx.
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; }
◆ m_relative_offset
◆ m_tube_t0
std::map<MuonFixedId, double> MuonCalib::MdtRelativeTubeT0::m_tube_t0 |
|
private |
The documentation for this class was generated from the following files: