ATLAS Offline Software
StrawStatusSummary.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 STRAWSTATUSSUMMARY_H
6 #define STRAWSTATUSSUMMARY_H
7 
10 
11 #include <vector>
12 
13 namespace TRTCond
14 {
15 
17 {
18 public:
19  StrawStatusSummary(size_t nstraws);
20 
21  void setStatus(const IdentifierHash& hashID, bool status);
22  bool findStatus(const IdentifierHash& hashID) const;
23  size_t size() const { return m_status.size(); }
24 
25 private:
26  std::vector<bool> m_status;
27 };
28 
29 } // namespace TRTCond
30 
32 #include "AthenaKernel/CondCont.h"
34 
35 #endif // STRAWSTATUSSUMMARY_H
36 
TRTCond::StrawStatusSummary
Definition: StrawStatusSummary.h:17
CONDCONT_DEF
CONDCONT_DEF(TRTCond::StrawStatusSummary, 37831938)
TRTCond::StrawStatusSummary::findStatus
bool findStatus(const IdentifierHash &hashID) const
Definition: StrawStatusSummary.cxx:20
TRTCond::StrawStatusSummary::size
size_t size() const
Definition: StrawStatusSummary.h:23
TRTCond::StrawStatusSummary::setStatus
void setStatus(const IdentifierHash &hashID, bool status)
Definition: StrawStatusSummary.cxx:15
IdentifierHash.h
TRTCond::StrawStatusSummary::StrawStatusSummary
StrawStatusSummary(size_t nstraws)
Definition: StrawStatusSummary.cxx:10
TRTCond
Definition: BasicRtRelation.cxx:8
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::StrawStatusSummary::m_status
std::vector< bool > m_status
Definition: StrawStatusSummary.h:26