ATLAS Offline Software
CalibrationTeeIOTool.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 namespace MuonCalib {
8 
9  CalibrationTeeIOTool::CalibrationTeeIOTool(const std::string &t, const std::string &n, const IInterface *p) : AthAlgTool(t, n, p) {
10  declareInterface<ICalibrationIOTool>(this);
11  }
12 
14  ATH_CHECK(m_tool1.retrieve());
15  ATH_CHECK(m_tool2.retrieve());
16  return StatusCode::SUCCESS;
17  }
18 
20  int iov_end) {
21  ATH_MSG_INFO("Writing to tool 1");
22  ATH_CHECK(m_tool1->WriteT0(t0_output, station_id, iov_start, iov_end));
23 
24  ATH_MSG_INFO("Writing to tool 2");
25  return m_tool2->WriteT0(t0_output, station_id, iov_start, iov_end);
26  }
27 
28  StatusCode CalibrationTeeIOTool::WriteRt(const RtCalibrationOutput *rt_relation, std::shared_ptr<const IRtResolution> resolution,
29  const NtupleStationId &station_id, int iov_start, int iov_end, bool real_rt,
30  bool real_resolution) {
31  ATH_CHECK(m_tool1->WriteRt(rt_relation, resolution, station_id, iov_start, iov_end, real_rt, real_resolution));
32  return m_tool2->WriteRt(rt_relation, resolution, station_id, iov_start, iov_end, real_rt, real_resolution);
33  }
34 
35  StatusCode CalibrationTeeIOTool::LoadT0(std::map<NtupleStationId, MdtStationT0Container *> &t0s, int iov_id) {
36  return m_tool1->LoadT0(t0s, iov_id);
37  }
38 
39  StatusCode CalibrationTeeIOTool::LoadRt(std::map<NtupleStationId, IRtRelation *> &rts, std::map<NtupleStationId, IRtResolution *> &res,
40  int iov_id) {
41  return m_tool1->LoadRt(rts, res, iov_id);
42  }
43 
44 } // namespace MuonCalib
MuonCalib::RtCalibrationOutput
Definition: RtCalibrationOutput.h:21
MuonCalib::CalibrationTeeIOTool::initialize
StatusCode initialize() override
initialize function
Definition: CalibrationTeeIOTool.cxx:13
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
MuonCalib::CalibrationTeeIOTool::LoadT0
StatusCode LoadT0(std::map< NtupleStationId, MdtStationT0Container * > &t0s, int iov_id) override
load t0s for iov
Definition: CalibrationTeeIOTool.cxx:35
TRTCalib_Extractor.rts
dictionary rts
Definition: TRTCalib_Extractor.py:15
TRTCalib_cfilter.t0s
list t0s
Definition: TRTCalib_cfilter.py:110
MuonCalib::NtupleStationId
Definition: NtupleStationId.h:36
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
Dedxcorrection::resolution
double resolution[nGasTypes][nParametersResolution]
Definition: TRT_ToT_Corrections.h:46
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
res
std::pair< std::vector< unsigned int >, bool > res
Definition: JetGroupProductTest.cxx:14
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
MuonCalib::CalibrationTeeIOTool::WriteT0
StatusCode WriteT0(const MdtTubeFitContainer *t0_output, const NtupleStationId &station_id, int iov_start, int iov_end) override
interface functions
Definition: CalibrationTeeIOTool.cxx:19
PixelModuleFeMask_create_db.iov_end
list iov_end
Definition: PixelModuleFeMask_create_db.py:75
MuonCalib::MdtTubeFitContainer
Holds single-tube full calibration information of one chamber.
Definition: MdtTubeFitContainer.h:16
MuonCalib::CalibrationTeeIOTool::WriteRt
StatusCode WriteRt(const RtCalibrationOutput *rt_relation, std::shared_ptr< const IRtResolution > resolution, const NtupleStationId &station_id, int iov_start, int iov_end, bool real_rt, bool real_resolution) override
write out rt relation
Definition: CalibrationTeeIOTool.cxx:28
MuonCalib::CalibrationTeeIOTool::m_tool2
ToolHandle< ICalibrationIOTool > m_tool2
Definition: CalibrationTeeIOTool.h:35
MuonCalib::CalibrationTeeIOTool::LoadRt
StatusCode LoadRt(std::map< NtupleStationId, IRtRelation * > &rts, std::map< NtupleStationId, IRtResolution * > &res, int iov_id) override
load rts for iov
Definition: CalibrationTeeIOTool.cxx:39
PixelModuleFeMask_create_db.iov_start
list iov_start
Definition: PixelModuleFeMask_create_db.py:74
AthAlgTool
Definition: AthAlgTool.h:26
CalibrationTeeIOTool.h
MuonCalib::CalibrationTeeIOTool::CalibrationTeeIOTool
CalibrationTeeIOTool(const std::string &t, const std::string &n, const IInterface *p)
constructor
Definition: CalibrationTeeIOTool.cxx:9
MuonCalib::CalibrationTeeIOTool::m_tool1
ToolHandle< ICalibrationIOTool > m_tool1
two calibration IO Tools
Definition: CalibrationTeeIOTool.h:34