ATLAS Offline Software
Loading...
Searching...
No Matches
MdtCalibDataContainer.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 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
12
14
15#include <memory>
16#include <optional>
17#include <vector>
18
19namespace Muon{
20 class IMuonIdHelperSvc;
21}
22class Identifier;
23
24
25namespace MuonCalib{
26
28 public:
32
36
39 const MdtFullCalibData* getCalibData(const Identifier& measId,
40 MsgStream& msg) const;
42 bool hasDataForChannel(const Identifier& measId, MsgStream& msg) const;
43
44
45 bool storeData(const Identifier& mlID, CorrectionPtr corrFuncSet, MsgStream& msg);
46 bool storeData(const Identifier& mlID, RtRelationPtr rtRelation, MsgStream& msg);
47 bool storeData(const Identifier& mlID, TubeContainerPtr tubeContainer, MsgStream& msg);
48
50
51 void setInversePropSpeed(const float speed);
52 float inversePropSpeed() const;
53 private:
54 std::optional<unsigned int> containerIndex(const Identifier& measId,
55 MsgStream& msg) const;
56
58 const RegionGranularity m_granularity{RegionGranularity::OneRt};
59 const MdtIdHelper& m_idHelper{m_idHelperSvc->mdtIdHelper()};
60 std::vector<MdtFullCalibData> m_dataCache{};
61 float m_invPropSpeed{0.f};
62
63 };
64
65}
66
69
70#endif
Hold mappings of ranges to condition objects.
#define CONDCONT_MIXED_DEF(...)
Definition CondCont.h:1446
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
MdtCalibDataContainer::RegionGranularity RegionGranularity
std::optional< unsigned int > containerIndex(const Identifier &measId, MsgStream &msg) const
bool storeData(const Identifier &mlID, CorrectionPtr corrFuncSet, MsgStream &msg)
std::vector< MdtFullCalibData > m_dataCache
MdtFullCalibData::TubeContainerPtr TubeContainerPtr
MdtCalibDataContainer(const Muon::IMuonIdHelperSvc *idHelprSvc, const RegionGranularity granularity)
MdtFullCalibData::CorrectionPtr CorrectionPtr
const Muon::IMuonIdHelperSvc * m_idHelperSvc
MdtFullCalibData::RtRelationPtr RtRelationPtr
bool hasDataForChannel(const Identifier &measId, MsgStream &msg) const
Checks whether a calibration data object is already present.
void setInversePropSpeed(const float speed)
const MdtFullCalibData * getCalibData(const Identifier &measId, MsgStream &msg) const
Returns the calibration data associated with this station.
Interface for Helper service that creates muon Identifiers and can be used to print Identifiers.
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
class which holds the full set of calibration constants for a given tube
GeoModel::TransientConstSharedPtr< MdtTubeCalibContainer > TubeContainerPtr
GeoModel::TransientConstSharedPtr< MdtCorFuncSet > CorrectionPtr
GeoModel::TransientConstSharedPtr< MdtRtRelation > RtRelationPtr
MsgStream & msg
Definition testRead.cxx:32