ATLAS Offline Software
Loading...
Searching...
No Matches
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
13
14#ifndef SCT_TDAQENABLEDCONDDATA_H
15#define SCT_TDAQENABLEDCONDDATA_H
16
17// Include Athena stuff
19
20#include <set>
21#include <vector>
22
28public:
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; }
64private:
65
66 std::set<unsigned int> m_goodRods;
67 std::set<IdentifierHash> m_goodIds;
70
71};
72
73// Class definition for StoreGate
75CLASS_DEF( SCT_TdaqEnabledCondData , 137549585 , 1 )
76
77// Condition container definition for CondInputLoader
78#include "AthenaKernel/CondCont.h"
80
81#endif // SCT_TDAQENABLEDDATA_H
#define CONDCONT_DEF(...)
Definition CondCont.h:1413
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
This is a "hash" representation of an Identifier.
Class for data object used in SCT_TdaqEnabledCondAlg and SCT_TdaqEnabledTool.
bool isGood(const IdentifierHash &hashId) const
Check if a module is good.
const std::set< unsigned int > & getGoodRods() const
Get good RODs.
bool isFilled() const
Get filled variable.
std::set< unsigned int > m_goodRods
void clear()
Clear m_goodRods, m_goodIds, m_noneBad, m_filled.
void setGoodModules(const std::vector< IdentifierHash > &idVec)
Set a list of good modules.
virtual ~SCT_TdaqEnabledCondData()=default
Destructor.
void setNoneBad(const bool noneBad)
Set noneBad value.
bool isNoneBad() const
Get noneBad value.
void setFilled(const bool filled)
Set filled variable.
std::set< IdentifierHash > m_goodIds
bool setGoodRod(const unsigned int rodNumber)
Set a good ROD.
const std::set< IdentifierHash > & goodIdHashes() const