ATLAS Offline Software
Loading...
Searching...
No Matches
NswT0Data.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MUONCONDDATA_NSWT0DATA_H
6#define MUONCONDDATA_NSWT0DATA_H
7
8
9
10// Athena includes
13// STL includes
14#include <vector>
15#include <optional>
16
17class Identifier;
18
19namespace Muon{
20 class IMuonIdHelperSvc;
21}
22
23
26class NswT0Data {
27
28
29public:
30 NswT0Data(const Muon::IMuonIdHelperSvc* idHelperSvc);
31 ~NswT0Data() = default;
32
36 void setData(const Identifier& channelId, const float channelT0);
40 std::optional<float> getT0 (const Identifier& channelId) const;
41
42private:
49 std::size_t identToModuleIdx(const Identifier& channelId) const;
50
51 // ID helpers
53 // containers
54 using ChannelArray = std::vector<std::vector<std::optional<float>>>;
57
58
59};
60
61CLASS_DEF( NswT0Data ,148122593 , 1 )
62CLASS_DEF( CondCont<NswT0Data> , 69140433 , 1 )
63
64#endif
Hold mappings of ranges to condition objects.
Provide an interface for finding inheritance information at run time.
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Hold mapping of ranges to condition objects.
Definition CondCont.h:889
Interface for Helper service that creates muon Identifiers and can be used to print Identifiers.
Conditions data object to calibrate the timeoff set of each individual channel in the NSW.
Definition NswT0Data.h:26
const Muon::IMuonIdHelperSvc * m_idHelperSvc
Definition NswT0Data.h:52
NswT0Data(const Muon::IMuonIdHelperSvc *idHelperSvc)
Definition NswT0Data.cxx:15
std::size_t identToModuleIdx(const Identifier &channelId) const
The calibration data is internally stored as two jagged vectors, one for MM the other for sTGC.
Definition NswT0Data.cxx:28
ChannelArray m_data_mmg
Definition NswT0Data.h:55
void setData(const Identifier &channelId, const float channelT0)
Set the t0 calibration constant for a given nsw channel.
Definition NswT0Data.cxx:42
std::vector< std::vector< std::optional< float > > > ChannelArray
Definition NswT0Data.h:54
ChannelArray m_data_stg
Definition NswT0Data.h:56
std::optional< float > getT0(const Identifier &channelId) const
Retrieve the t0 calibration constant for a given NSW channel.
Definition NswT0Data.cxx:62
~NswT0Data()=default
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.