ATLAS Offline Software
ICalibrationIOTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef _CalibrationIOTool_H
6 #define _CalibrationIOTool_H
7 
8 // Gaudi
9 #include "GaudiKernel/IAlgTool.h"
10 
11 // c - c++
12 #include "map"
13 
14 // this
16 
17 namespace MuonCalib {
18 
19  class T0CalibrationOutput;
20  class RtCalibrationOutput;
21  class IRtResolution;
23  class IRtRelation;
24  class MdtTubeFitContainer;
25 
30  class ICalibrationIOTool : virtual public IAlgTool {
31  public:
33  virtual ~ICalibrationIOTool() = default;
35  static const InterfaceID &interfaceID() {
36  static const InterfaceID IID_CalibrationIOTool("MuonCalib::ICalibrationIOTool", 1, 0);
37  return IID_CalibrationIOTool;
38  }
45  virtual StatusCode WriteT0(const MdtTubeFitContainer *t0_output, const NtupleStationId &station_id, int iov_start, int iov_end) = 0;
53  virtual StatusCode WriteRt(const RtCalibrationOutput *rt_relation, std::shared_ptr<const IRtResolution> resolution,
54  const NtupleStationId &station_id, int iov_start, int iov_end, bool real_rt, bool real_resolution) = 0;
60  virtual StatusCode LoadT0(std::map<NtupleStationId, MdtStationT0Container *> &t0s, int iov_id) = 0;
61 
68  virtual StatusCode LoadRt(std::map<NtupleStationId, IRtRelation *> &rts, std::map<NtupleStationId, IRtResolution *> &res,
69  int iov_id) = 0;
70  };
71 
72 } // namespace MuonCalib
73 
74 #endif
MuonCalib::ICalibrationIOTool::WriteRt
virtual 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)=0
write out rt relation
MuonCalib::RtCalibrationOutput
Definition: RtCalibrationOutput.h:21
MuonCalib::ICalibrationIOTool::WriteT0
virtual StatusCode WriteT0(const MdtTubeFitContainer *t0_output, const NtupleStationId &station_id, int iov_start, int iov_end)=0
write out t0
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
Dedxcorrection::resolution
double resolution[nGasTypes][nParametersResolution]
Definition: TRT_ToT_Corrections.h:46
NtupleStationId.h
MuonCalib::ICalibrationIOTool::LoadRt
virtual StatusCode LoadRt(std::map< NtupleStationId, IRtRelation * > &rts, std::map< NtupleStationId, IRtResolution * > &res, int iov_id)=0
load rts for iov
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
MuonCalib::ICalibrationIOTool::~ICalibrationIOTool
virtual ~ICalibrationIOTool()=default
destructor
MuonCalib::ICalibrationIOTool::interfaceID
static const InterfaceID & interfaceID()
interface method
Definition: ICalibrationIOTool.h:35
MuonCalib::ICalibrationIOTool::LoadT0
virtual StatusCode LoadT0(std::map< NtupleStationId, MdtStationT0Container * > &t0s, int iov_id)=0
load t0s for iov
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
PixelModuleFeMask_create_db.iov_start
list iov_start
Definition: PixelModuleFeMask_create_db.py:74
MuonCalib::ICalibrationIOTool
Definition: ICalibrationIOTool.h:30
MdtStationT0Container