ATLAS Offline Software
MdtCalibDataContainer.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef MUONCALIB_MDTCALIBDATACONTAINER_H
5 #define MUONCALIB_MDTCALIBDATACONTAINER_H
6 
7 
10 #include <GaudiKernel/MsgStream.h>
11 
14 
15 #include <memory>
16 #include <optional>
17 
18 namespace MuonCalib{
19 
21  public:
25 
29 
32  const MdtFullCalibData* getCalibData(const Identifier& measId,
33  MsgStream& msg) const;
35  bool hasDataForChannel(const Identifier& measId, MsgStream& msg) const;
36 
37 
38  bool storeData(const Identifier& mlID, CorrectionPtr corrFuncSet, MsgStream& msg);
39  bool storeData(const Identifier& mlID, RtRelationPtr rtRelation, MsgStream& msg);
40  bool storeData(const Identifier& mlID, TubeContainerPtr tubeContainer, MsgStream& msg);
41 
43  private:
44  std::optional<unsigned int> containerIndex(const Identifier& measId,
45  MsgStream& msg) const;
46 
50  std::vector<MdtFullCalibData> m_dataCache{};
51 
52  };
53 
54 }
55 
58 
59 #endif
MuonCalib::MdtCalibDataContainer::m_granularity
const RegionGranularity m_granularity
Definition: MdtCalibDataContainer.h:48
GeoModel::TransientConstSharedPtr< MdtCorFuncSet >
CondCont.h
Hold mappings of ranges to condition objects.
MuonCalib::MdtCalibDataContainer::RegionGranularity
RegionGranularity
Definition: MdtCalibDataContainer.h:26
MuonCalib::MdtCalibDataContainer::storeData
bool storeData(const Identifier &mlID, CorrectionPtr corrFuncSet, MsgStream &msg)
Definition: MdtCalibDataContainer.cxx:49
MuonCalib::MdtFullCalibData::CorrectionPtr
GeoModel::TransientConstSharedPtr< MdtCorFuncSet > CorrectionPtr
Definition: MdtFullCalibData.h:16
MuonCalib::MdtCalibDataContainer::m_dataCache
std::vector< MdtFullCalibData > m_dataCache
Definition: MdtCalibDataContainer.h:50
MuonCalib::MdtCalibDataContainer::~MdtCalibDataContainer
~MdtCalibDataContainer()=default
MuonCalib::MdtFullCalibData
class which holds the full set of calibration constants for a given tube
Definition: MdtFullCalibData.h:15
CONDCONT_MIXED_DEF
CONDCONT_MIXED_DEF(MuonCalib::MdtCalibDataContainer, 1267664791)
MuonCalib::MdtCalibDataContainer::m_idHelperSvc
const Muon::IMuonIdHelperSvc * m_idHelperSvc
Definition: MdtCalibDataContainer.h:47
MuonCalib::MdtCalibDataContainer::granularity
RegionGranularity granularity() const
Definition: MdtCalibDataContainer.cxx:13
CLASS_DEF
CLASS_DEF(MuonCalib::MdtCalibDataContainer, 1228248101, 1)
MuonCalib::MdtCalibDataContainer::RegionGranularity::OnePerChamber
@ OnePerChamber
MdtIdHelper
Definition: MdtIdHelper.h:61
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
RegionGranularity
MdtCalibDataContainer::RegionGranularity RegionGranularity
Definition: MuonConditions/MuonCondGeneral/MuonCondAlg/src/MdtCalibDbAlg.cxx:47
MuonCalib::MdtCalibDataContainer::RegionGranularity::OnePerMultiLayer
@ OnePerMultiLayer
Muon::IMuonIdHelperSvc::mdtIdHelper
virtual const MdtIdHelper & mdtIdHelper() const =0
access to MdtIdHelper
MuonCalib::MdtCalibDataContainer::getCalibData
const MdtFullCalibData * getCalibData(const Identifier &measId, MsgStream &msg) const
Returns the calibration data associated with this station
Definition: MdtCalibDataContainer.cxx:38
MuonCalib::MdtCalibDataContainer
Definition: MdtCalibDataContainer.h:20
MuonCalib::MdtCalibDataContainer::RegionGranularity::OneRt
@ OneRt
MdtFullCalibData.h
MuonCalib::MdtFullCalibData::TubeContainerPtr
GeoModel::TransientConstSharedPtr< MdtTubeCalibContainer > TubeContainerPtr
Definition: MdtFullCalibData.h:18
MuonCalib::MdtFullCalibData::RtRelationPtr
GeoModel::TransientConstSharedPtr< MdtRtRelation > RtRelationPtr
Definition: MdtFullCalibData.h:17
MuonCalib::MdtCalibDataContainer::containerIndex
std::optional< unsigned int > containerIndex(const Identifier &measId, MsgStream &msg) const
Definition: MdtCalibDataContainer.cxx:14
Muon::IMuonIdHelperSvc
Interface for Helper service that creates muon Identifiers and can be used to print Identifiers.
Definition: IMuonIdHelperSvc.h:27
MuonCalib::MdtCalibDataContainer::hasDataForChannel
bool hasDataForChannel(const Identifier &measId, MsgStream &msg) const
Checks whether a calibration data object is already present.
Definition: MdtCalibDataContainer.cxx:33
MuonCalib::MdtCalibDataContainer::m_idHelper
const MdtIdHelper & m_idHelper
Definition: MdtCalibDataContainer.h:49
MuonCalib::MdtCalibDataContainer::MdtCalibDataContainer
MdtCalibDataContainer(const Muon::IMuonIdHelperSvc *idHelprSvc, const RegionGranularity granularity)
Definition: MdtCalibDataContainer.cxx:8
CLASS_DEF.h
macros to associate a CLID to a type
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7
IMuonIdHelperSvc.h
Identifier
Definition: IdentifierFieldParser.cxx:14