ATLAS Offline Software
StrawStatusData.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 STRAWSTATUSDATA_H
6 #define STRAWSTATUSDATA_H
7 
10 
11 #include <vector>
12 
13 namespace TRTCond
14 {
15 
17 {
18 public:
19  StrawStatusData(size_t nstraws);
20 
21  void setStatus(const IdentifierHash& hashID, unsigned int status);
22  unsigned int findStatus(const IdentifierHash& hashID) const;
23  size_t size() const { return m_status.size(); }
24 
25 private:
26  std::vector<unsigned int> m_status;
27 };
28 
29 } // namespace TRTCond
30 
31 CLASS_DEF( TRTCond::StrawStatusData, 102360873, 1 )
32 #include "AthenaKernel/CondCont.h"
34 
35 #endif // STRAWSTATUSDATA_H
36 
TRTCond::StrawStatusData
Definition: StrawStatusData.h:17
TRTCond::StrawStatusData::m_status
std::vector< unsigned int > m_status
Definition: StrawStatusData.h:26
TRTCond::StrawStatusData::setStatus
void setStatus(const IdentifierHash &hashID, unsigned int status)
Definition: StrawStatusData.cxx:15
TRTCond::StrawStatusData::StrawStatusData
StrawStatusData(size_t nstraws)
Definition: StrawStatusData.cxx:10
IdentifierHash.h
TRTCond
Definition: BasicRtRelation.cxx:8
TRTCond::StrawStatusData::findStatus
unsigned int findStatus(const IdentifierHash &hashID) const
Definition: StrawStatusData.cxx:20
CONDCONT_DEF
CONDCONT_DEF(TRTCond::StrawStatusData, 178673451)
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
merge.status
status
Definition: merge.py:17
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
CLASS_DEF.h
macros to associate a CLID to a type
TRTCond::StrawStatusData::size
size_t size() const
Definition: StrawStatusData.h:23