ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
SCT_TdaqEnabledCondData Class Reference

Class for data object used in SCT_TdaqEnabledCondAlg and SCT_TdaqEnabledTool. More...

#include <SCT_TdaqEnabledCondData.h>

Collaboration diagram for SCT_TdaqEnabledCondData:

Public Member Functions

 SCT_TdaqEnabledCondData ()
 Constructor. More...
 
virtual ~SCT_TdaqEnabledCondData ()=default
 Destructor. More...
 
bool setGoodRod (const unsigned int rodNumber)
 Set a good ROD. More...
 
const std::set< unsigned int > & getGoodRods () const
 Get good RODs. More...
 
void setGoodModules (const std::vector< IdentifierHash > &idVec)
 Set a list of good modules. More...
 
void setFilled (const bool filled)
 Set filled variable. More...
 
bool isFilled () const
 Get filled variable. More...
 
void setNoneBad (const bool noneBad)
 Set noneBad value. More...
 
bool isNoneBad () const
 Get noneBad value. More...
 
bool isGood (const IdentifierHash &hashId) const
 Check if a module is good. More...
 
void clear ()
 Clear m_goodRods, m_goodIds, m_noneBad, m_filled. More...
 
const std::set< IdentifierHash > & goodIdHashes () const
 

Private Attributes

std::set< unsigned int > m_goodRods
 
std::set< IdentifierHashm_goodIds
 
bool m_noneBad
 
bool m_filled
 

Detailed Description

Class for data object used in SCT_TdaqEnabledCondAlg and SCT_TdaqEnabledTool.

Definition at line 27 of file SCT_TdaqEnabledCondData.h.

Constructor & Destructor Documentation

◆ SCT_TdaqEnabledCondData()

SCT_TdaqEnabledCondData::SCT_TdaqEnabledCondData ( )

Constructor.

Definition at line 16 of file SCT_TdaqEnabledCondData.cxx.

16  :
17  m_goodRods{},
18  m_goodIds{},
19  m_noneBad{false},
20  m_filled{false}
21 {}

◆ ~SCT_TdaqEnabledCondData()

virtual SCT_TdaqEnabledCondData::~SCT_TdaqEnabledCondData ( )
virtualdefault

Destructor.

Member Function Documentation

◆ clear()

void SCT_TdaqEnabledCondData::clear ( )

Clear m_goodRods, m_goodIds, m_noneBad, m_filled.

Definition at line 82 of file SCT_TdaqEnabledCondData.cxx.

82  {
83  m_goodRods.clear();
84  m_goodIds.clear();
85  m_noneBad = false;
86  m_filled = false;
87 }

◆ getGoodRods()

const std::set< unsigned int > & SCT_TdaqEnabledCondData::getGoodRods ( ) const

Get good RODs.

Definition at line 32 of file SCT_TdaqEnabledCondData.cxx.

33 {
34  return m_goodRods;
35 }

◆ goodIdHashes()

const std::set<IdentifierHash>& SCT_TdaqEnabledCondData::goodIdHashes ( ) const
inline

Definition at line 63 of file SCT_TdaqEnabledCondData.h.

63 { return m_goodIds; }

◆ isFilled()

bool SCT_TdaqEnabledCondData::isFilled ( ) const

Get filled variable.

Definition at line 53 of file SCT_TdaqEnabledCondData.cxx.

54 {
55  return m_filled;
56 }

◆ isGood()

bool SCT_TdaqEnabledCondData::isGood ( const IdentifierHash hashId) const

Check if a module is good.

Definition at line 74 of file SCT_TdaqEnabledCondData.cxx.

75 {
76  if (m_noneBad) return true;
77  return (m_goodIds.find(hashId)!=m_goodIds.end());
78 }

◆ isNoneBad()

bool SCT_TdaqEnabledCondData::isNoneBad ( ) const

Get noneBad value.

Definition at line 67 of file SCT_TdaqEnabledCondData.cxx.

68 {
69  return m_noneBad;
70 }

◆ setFilled()

void SCT_TdaqEnabledCondData::setFilled ( const bool  filled)

Set filled variable.

Definition at line 46 of file SCT_TdaqEnabledCondData.cxx.

47 {
48  m_filled = filled;
49 }

◆ setGoodModules()

void SCT_TdaqEnabledCondData::setGoodModules ( const std::vector< IdentifierHash > &  idVec)

Set a list of good modules.

Definition at line 39 of file SCT_TdaqEnabledCondData.cxx.

40 {
41  std::copy(idVec.begin(), idVec.end(), std::inserter(m_goodIds, m_goodIds.end()));
42 }

◆ setGoodRod()

bool SCT_TdaqEnabledCondData::setGoodRod ( const unsigned int  rodNumber)

Set a good ROD.

Definition at line 25 of file SCT_TdaqEnabledCondData.cxx.

26 {
27  return m_goodRods.insert(rodNumber).second;
28 }

◆ setNoneBad()

void SCT_TdaqEnabledCondData::setNoneBad ( const bool  noneBad)

Set noneBad value.

Definition at line 60 of file SCT_TdaqEnabledCondData.cxx.

61 {
62  m_noneBad = noneBad;
63 }

Member Data Documentation

◆ m_filled

bool SCT_TdaqEnabledCondData::m_filled
private

Definition at line 69 of file SCT_TdaqEnabledCondData.h.

◆ m_goodIds

std::set<IdentifierHash> SCT_TdaqEnabledCondData::m_goodIds
private

Definition at line 67 of file SCT_TdaqEnabledCondData.h.

◆ m_goodRods

std::set<unsigned int> SCT_TdaqEnabledCondData::m_goodRods
private

Definition at line 66 of file SCT_TdaqEnabledCondData.h.

◆ m_noneBad

bool SCT_TdaqEnabledCondData::m_noneBad
private

Definition at line 68 of file SCT_TdaqEnabledCondData.h.


The documentation for this class was generated from the following files:
SCT_TdaqEnabledCondData::m_goodIds
std::set< IdentifierHash > m_goodIds
Definition: SCT_TdaqEnabledCondData.h:67
Merge_LAr_blobs.filled
list filled
Definition: Merge_LAr_blobs.py:43
SCT_TdaqEnabledCondData::m_goodRods
std::set< unsigned int > m_goodRods
Definition: SCT_TdaqEnabledCondData.h:66
SCT_TdaqEnabledCondData::m_noneBad
bool m_noneBad
Definition: SCT_TdaqEnabledCondData.h:68
SCT_TdaqEnabledCondData::m_filled
bool m_filled
Definition: SCT_TdaqEnabledCondData.h:69
calibdata.copy
bool copy
Definition: calibdata.py:27