ATLAS Offline Software
SCT_TdaqEnabledCondData.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 
3 /*
4  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5 */
6 
14 #ifndef SCT_TDAQENABLEDCONDDATA_H
15 #define SCT_TDAQENABLEDCONDDATA_H
16 
17 // Include Athena stuff
19 
20 #include <set>
21 #include <vector>
22 
28 public:
29 
32 
34  virtual ~SCT_TdaqEnabledCondData() = default;
35 
37  bool setGoodRod(const unsigned int rodNumber);
38 
40  const std::set<unsigned int>& getGoodRods() const;
41 
43  void setGoodModules(const std::vector<IdentifierHash>& idVec);
44 
46  void setFilled(const bool filled);
47 
49  bool isFilled() const;
50 
52  void setNoneBad(const bool noneBad);
53 
55  bool isNoneBad() const;
56 
58  bool isGood(const IdentifierHash& hashId) const;
59 
61  void clear();
62 
63  const std::set<IdentifierHash> &goodIdHashes() const { return m_goodIds; }
64 private:
65 
66  std::set<unsigned int> m_goodRods;
67  std::set<IdentifierHash> m_goodIds;
68  bool m_noneBad;
69  bool m_filled;
70 
71 };
72 
73 // Class definition for StoreGate
74 #include "AthenaKernel/CLASS_DEF.h"
75 CLASS_DEF( SCT_TdaqEnabledCondData , 137549585 , 1 )
76 
77 // Condition container definition for CondInputLoader
78 #include "AthenaKernel/CondCont.h"
80 
81 #endif // SCT_TDAQENABLEDDATA_H
CONDCONT_DEF
CONDCONT_DEF(SCT_TdaqEnabledCondData, 31730865)
SCT_TdaqEnabledCondData::m_goodIds
std::set< IdentifierHash > m_goodIds
Definition: SCT_TdaqEnabledCondData.h:67
SCT_TdaqEnabledCondData::setNoneBad
void setNoneBad(const bool noneBad)
Set noneBad value.
Definition: SCT_TdaqEnabledCondData.cxx:60
SCT_TdaqEnabledCondData::isGood
bool isGood(const IdentifierHash &hashId) const
Check if a module is good.
Definition: SCT_TdaqEnabledCondData.cxx:74
SCT_TdaqEnabledCondData::setFilled
void setFilled(const bool filled)
Set filled variable.
Definition: SCT_TdaqEnabledCondData.cxx:46
SCT_TdaqEnabledCondData::m_goodRods
std::set< unsigned int > m_goodRods
Definition: SCT_TdaqEnabledCondData.h:66
SCT_TdaqEnabledCondData::isNoneBad
bool isNoneBad() const
Get noneBad value.
Definition: SCT_TdaqEnabledCondData.cxx:67
SCT_TdaqEnabledCondData::setGoodModules
void setGoodModules(const std::vector< IdentifierHash > &idVec)
Set a list of good modules.
Definition: SCT_TdaqEnabledCondData.cxx:39
SCT_TdaqEnabledCondData::isFilled
bool isFilled() const
Get filled variable.
Definition: SCT_TdaqEnabledCondData.cxx:53
SCT_TdaqEnabledCondData::~SCT_TdaqEnabledCondData
virtual ~SCT_TdaqEnabledCondData()=default
Destructor.
SCT_TdaqEnabledCondData::getGoodRods
const std::set< unsigned int > & getGoodRods() const
Get good RODs.
Definition: SCT_TdaqEnabledCondData.cxx:32
SCT_TdaqEnabledCondData
Class for data object used in SCT_TdaqEnabledCondAlg and SCT_TdaqEnabledTool.
Definition: SCT_TdaqEnabledCondData.h:27
SCT_TdaqEnabledCondData::m_noneBad
bool m_noneBad
Definition: SCT_TdaqEnabledCondData.h:68
SCT_TdaqEnabledCondData::goodIdHashes
const std::set< IdentifierHash > & goodIdHashes() const
Definition: SCT_TdaqEnabledCondData.h:63
IdentifierHash.h
SCT_TdaqEnabledCondData::m_filled
bool m_filled
Definition: SCT_TdaqEnabledCondData.h:69
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
SCT_TdaqEnabledCondData::clear
void clear()
Clear m_goodRods, m_goodIds, m_noneBad, m_filled.
Definition: SCT_TdaqEnabledCondData.cxx:82
IdentifierHash
Definition: IdentifierHash.h:38
SCT_TdaqEnabledCondData::SCT_TdaqEnabledCondData
SCT_TdaqEnabledCondData()
Constructor.
Definition: SCT_TdaqEnabledCondData.cxx:16
SCT_TdaqEnabledCondData::setGoodRod
bool setGoodRod(const unsigned int rodNumber)
Set a good ROD.
Definition: SCT_TdaqEnabledCondData.cxx:25
CLASS_DEF.h
macros to associate a CLID to a type