ATLAS Offline Software
NswT0Data.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUONCONDDATA_NSWT0DATA_H
6 #define MUONCONDDATA_NSWT0DATA_H
7 
8 // STL includes
9 #include <vector>
10 
11 // Athena includes
12 #include "AthenaKernel/CondCont.h"
13 #include "AthenaKernel/BaseInfo.h"
15 
16 class NswT0Data {
17 
18 
19 public:
20  NswT0Data(const Muon::IMuonIdHelperSvc* idHelperSvc);
21  ~NswT0Data() = default;
22 
23  // setting functions
24  void setData(const Identifier& channelId, const float channelT0);
25 
26  // retrieval functions
27  bool getT0 (const Identifier& channelId, float& channelT0) const;
28 
29 private:
30  unsigned int identToModuleIdx(const Identifier& chan_id) const;
31 
32  // ID helpers
34  // containers
35  using ChannelArray = std::vector<std::vector<float>>;
38 
39 
40 };
41 
42 CLASS_DEF( NswT0Data ,148122593 , 1 )
43 CLASS_DEF( CondCont<NswT0Data> , 69140433 , 1 )
44 
45 #endif
NswT0Data::getT0
bool getT0(const Identifier &channelId, float &channelT0) const
Definition: NswT0Data.cxx:55
CondCont.h
Hold mappings of ranges to condition objects.
NswT0Data::m_data_stg
ChannelArray m_data_stg
Definition: NswT0Data.h:37
NswT0Data::~NswT0Data
~NswT0Data()=default
NswT0Data::m_data_mmg
ChannelArray m_data_mmg
Definition: NswT0Data.h:36
BaseInfo.h
Provide an interface for finding inheritance information at run time.
NswT0Data::ChannelArray
std::vector< std::vector< float > > ChannelArray
Definition: NswT0Data.h:35
NswT0Data
Definition: NswT0Data.h:16
CaloCondBlobAlgs_fillNoiseFromASCII.channelId
channelId
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:122
NswT0Data::identToModuleIdx
unsigned int identToModuleIdx(const Identifier &chan_id) const
Definition: NswT0Data.cxx:25
NswT0Data::NswT0Data
NswT0Data(const Muon::IMuonIdHelperSvc *idHelperSvc)
Definition: NswT0Data.cxx:12
CondCont
Hold mapping of ranges to condition objects.
Definition: CondCont.h:811
NswT0Data::setData
void setData(const Identifier &channelId, const float channelT0)
Definition: NswT0Data.cxx:39
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
Muon::IMuonIdHelperSvc
Interface for Helper service that creates muon Identifiers and can be used to print Identifiers.
Definition: IMuonIdHelperSvc.h:27
NswT0Data::m_idHelperSvc
const Muon::IMuonIdHelperSvc * m_idHelperSvc
Definition: NswT0Data.h:33
IMuonIdHelperSvc.h
Identifier
Definition: IdentifierFieldParser.cxx:14