|
ATLAS Offline Software
|
#include <MdtCalibInputSvc.h>
Athena service which read calibration from text files and sorts them by station id
- Author
- rausc.nosp@m.her@.nosp@m.cern..nosp@m.ch
Definition at line 30 of file MdtCalibInputSvc.h.
◆ MdtCalibInputSvc()
MdtCalibInputSvc::MdtCalibInputSvc |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
svc_locator |
|
) |
| |
◆ ~MdtCalibInputSvc()
MdtCalibInputSvc::~MdtCalibInputSvc |
( |
| ) |
|
|
virtual |
◆ create_b_field_correction()
create the b-field correction
Definition at line 114 of file MdtCalibInputSvc.cxx.
115 std::map<MuonCalib::NtupleStationId, MuonCalib::IRtRelation *>::const_iterator
it(
m_rt_relation.find(
id));
117 ATH_MSG_INFO(
"Initiailizing B-Field correction for " <<
id.regionId());
120 std::vector<double> corr_params(2);
121 corr_params[0] = 3080.0;
122 corr_params[1] = 0.11;
◆ create_mean_rts()
void MdtCalibInputSvc::create_mean_rts |
( |
| ) |
|
|
private |
create mean rt relations, and resolutions for the selected calibration region
Definition at line 127 of file MdtCalibInputSvc.cxx.
129 std::list<const MuonCalib::IRtRelation *> matching_relations;
130 std::list<MuonCalib::NtupleStationId> matching_ids;
132 for (std::map<MuonCalib::NtupleStationId, MuonCalib::IRtRelation *>::const_iterator
it =
m_rt_relation.begin();
136 if (
it->first.GetMl() == 0) {
138 for (
int i = 1;
i <= 2;
i++) {
139 id.setStationName(
it->first.GetStation());
140 id.setStationEta(
it->first.GetEta());
141 id.setStationPhi(
it->first.GetPhi());
142 id.setMdtMultilayer(
i);
144 matching_relations.push_back(
it->second);
145 matching_ids.push_back(
it->first);
150 id.setStationName(
it->first.GetStation());
151 id.setStationEta(
it->first.GetEta());
152 id.setStationPhi(
it->first.GetPhi());
153 id.setMdtMultilayer(
it->first.GetMl());
155 matching_relations.push_back(
it->second);
156 matching_ids.push_back(
it->first);
161 ATH_MSG_INFO(
"Found " << matching_relations.size() <<
" rt-relations for calibration region");
162 if (matching_relations.empty())
return;
164 if (matching_relations.size() > 1) {
ATH_MSG_WARNING(
"More than one rt relation for this region loaded! Taking first!"); }
◆ findbfieldfun()
◆ GetBCorr() [1/2]
◆ GetBCorr() [2/2]
◆ GetResolution() [1/2]
◆ GetResolution() [2/2]
Get Resolution.
Definition at line 91 of file MdtCalibInputSvc.cxx.
92 std::map<MuonCalib::NtupleStationId, MuonCalib::IRtResolution *>::const_iterator
it;
97 if (m_rt_warned.find(
chamber_id) == m_rt_warned.end()) {
◆ GetRtRelation() [1/2]
◆ GetRtRelation() [2/2]
Get rt relation container.
Definition at line 65 of file MdtCalibInputSvc.cxx.
67 std::map<MuonCalib::NtupleStationId, MuonCalib::IRtRelation *>::const_iterator
it;
72 std::lock_guard<std::mutex> guard(warn_mutex);
73 if (m_rt_warned.find(
chamber_id) == m_rt_warned.end()) {
◆ GetT0()
Get t0 container for Station.
Definition at line 47 of file MdtCalibInputSvc.cxx.
49 std::map<MuonCalib::NtupleStationId, MuonCalib::MdtStationT0Container *>::const_iterator
it;
54 std::lock_guard<std::mutex> guard(warn_mutex);
55 if (m_t0_warned.find(
chamber_id) == m_t0_warned.end()) {
◆ initialize()
StatusCode MdtCalibInputSvc::initialize |
( |
| ) |
|
|
overridevirtual |
service initalizer - reads files
Definition at line 38 of file MdtCalibInputSvc.cxx.
44 return StatusCode::SUCCESS;
◆ interfaceID()
static const InterfaceID& MdtCalibInputSvc::interfaceID |
( |
| ) |
|
|
inlinestatic |
Definition at line 37 of file MdtCalibInputSvc.h.
39 static const InterfaceID IID_IMdtCalibInputSvc(
"MdtCalibInputSvc", 1, 0);
40 return IID_IMdtCalibInputSvc;
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ read_calib_input()
StatusCode MdtCalibInputSvc::read_calib_input |
( |
| ) |
|
|
private |
◆ ATLAS_THREAD_SAFE [1/2]
give warnings about missing calibration only once per chamber
Definition at line 86 of file MdtCalibInputSvc.h.
◆ ATLAS_THREAD_SAFE [2/2]
◆ m_B_corr
◆ m_calib_input_tool
ToolHandle<MuonCalib::ICalibrationIOTool> MdtCalibInputSvc::m_calib_input_tool {this, "CalibrationInputTool", "MuonCalib::CalibrationDummyIOTool"} |
|
private |
◆ m_mean_station_id
◆ m_reg_sel_svc
◆ m_rt_relation
◆ m_sel_region_b
◆ m_sel_region_res
◆ m_sel_region_rt
rt relation - resolution - and correction function for the selected region - is average of all matching rt relations
Definition at line 80 of file MdtCalibInputSvc.h.
◆ m_spat_res
◆ m_t0
The documentation for this class was generated from the following files:
JetConstituentVector::iterator iterator
std::vector< HWIdentifier >::iterator it1
#define ATH_MSG_WARNING(x)
generic interface for a rt-relation