ATLAS Offline Software
CalibrationOracleFileIOTool.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 CalibrationOracleFileIOTool_H
6 #define CalibrationOracleFileIOTool_H
7 
8 // MuonCalibStandAloneBase
12 
13 namespace MuonCalib {
14 
15  class RtRelation;
16 
18  public:
20  CalibrationOracleFileIOTool(const std::string &t, const std::string &n, const IInterface *p);
23  StatusCode WriteT0(const MdtTubeFitContainer *t0_output, const NtupleStationId &station_id, int iov_start, int iov_end) override;
25  StatusCode WriteRt(const RtCalibrationOutput *rt_relation, std::shared_ptr<const IRtResolution> resolution,
26  const NtupleStationId &station_id, int iov_start, int iov_end, bool /*real_rt*/,
27  bool /*real_resolution*/) override;
28 
29  StatusCode LoadT0(std::map<NtupleStationId, MdtStationT0Container *> &, int) override { return StatusCode::FAILURE; }
30  StatusCode LoadRt(std::map<NtupleStationId, IRtRelation *> &, std::map<NtupleStationId, IRtResolution *> &, int) override {
31  return StatusCode::FAILURE;
32  }
33 
34  private:
36  std::string m_calib_dir;
38  inline bool fill_rt(std::unique_ptr<RtDataFromFile::RtRelation> &rt, const std::shared_ptr<const IRtRelation>& new_rt,
39  const std::shared_ptr<const MuonCalib::IRtResolution>& resolut);
40  };
41 
42 } // namespace MuonCalib
43 #endif
MuonCalib::RtCalibrationOutput
Definition: RtCalibrationOutput.h:21
MuonCalib::CalibrationOracleFileIOTool
Definition: CalibrationOracleFileIOTool.h:17
MuonCalib::CalibrationOracleFileIOTool::m_calib_dir
std::string m_calib_dir
path to calibration directory - job option
Definition: CalibrationOracleFileIOTool.h:36
MuonCalib::CalibrationOracleFileIOTool::fill_rt
bool fill_rt(std::unique_ptr< RtDataFromFile::RtRelation > &rt, const std::shared_ptr< const IRtRelation > &new_rt, const std::shared_ptr< const MuonCalib::IRtResolution > &resolut)
fill rt relation
Definition: CalibrationOracleFileIOTool.cxx:121
MuonCalib::CalibrationOracleFileIOTool::WriteRt
StatusCode WriteRt(const RtCalibrationOutput *rt_relation, std::shared_ptr< const IRtResolution > resolution, const NtupleStationId &station_id, int iov_start, int iov_end, bool, bool) override
write rt
Definition: CalibrationOracleFileIOTool.cxx:66
MuonCalib::NtupleStationId
Definition: NtupleStationId.h:36
ICalibrationIOTool.h
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
AthAlgTool.h
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::CalibrationOracleFileIOTool::WriteT0
StatusCode WriteT0(const MdtTubeFitContainer *t0_output, const NtupleStationId &station_id, int iov_start, int iov_end) override
initialisation
Definition: CalibrationOracleFileIOTool.cxx:46
MuonCalib::CalibrationOracleFileIOTool::LoadRt
StatusCode LoadRt(std::map< NtupleStationId, IRtRelation * > &, std::map< NtupleStationId, IRtResolution * > &, int) override
load rts for iov
Definition: CalibrationOracleFileIOTool.h:30
MuonCalib::CalibrationOracleFileIOTool::CalibrationOracleFileIOTool
CalibrationOracleFileIOTool(const std::string &t, const std::string &n, const IInterface *p)
constructor
Definition: CalibrationOracleFileIOTool.cxx:40
PixelModuleFeMask_create_db.iov_end
list iov_end
Definition: PixelModuleFeMask_create_db.py:75
MuonCalib::CalibrationOracleFileIOTool::LoadT0
StatusCode LoadT0(std::map< NtupleStationId, MdtStationT0Container * > &, int) override
load t0s for iov
Definition: CalibrationOracleFileIOTool.h:29
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
AthAlgTool
Definition: AthAlgTool.h:26
MuonCalib::ICalibrationIOTool
Definition: ICalibrationIOTool.h:30
RtDataFromFile.h