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

Class for data object used in SCT_ModuleVetoCondAlg, SCT_LinkMaskingCondAlg, SCT_ModuleVetoTool, SCT_LinkMaskingTool. More...

#include <SCT_ModuleVetoCondData.h>

Collaboration diagram for SCT_ModuleVetoCondData:

Public Member Functions

 SCT_ModuleVetoCondData ()
 Constructor. More...
 
virtual ~SCT_ModuleVetoCondData ()=default
 Destructor. More...
 
bool setBadWaferId (const Identifier waferId)
 Set a bad wafer ID. More...
 
bool isBadWaferId (const Identifier waferId) const
 Check if a wafer ID is bad or not. More...
 
void clear ()
 Clear. More...
 
void setFilled ()
 Set data filled. More...
 
bool filled () const
 Check the data are filled or not. More...
 
long unsigned int size () const
 Get the number of bad wafers. More...
 
const std::set< Identifier > & badWaferIds () const
 

Private Attributes

std::set< Identifierm_badWaferId
 
bool m_isFilled
 

Detailed Description

Class for data object used in SCT_ModuleVetoCondAlg, SCT_LinkMaskingCondAlg, SCT_ModuleVetoTool, SCT_LinkMaskingTool.

Definition at line 27 of file SCT_ModuleVetoCondData.h.

Constructor & Destructor Documentation

◆ SCT_ModuleVetoCondData()

SCT_ModuleVetoCondData::SCT_ModuleVetoCondData ( )

Constructor.

Definition at line 9 of file SCT_ModuleVetoCondData.cxx.

9  :
10  m_badWaferId{},
11  m_isFilled{false}
12 {
13 }

◆ ~SCT_ModuleVetoCondData()

virtual SCT_ModuleVetoCondData::~SCT_ModuleVetoCondData ( )
virtualdefault

Destructor.

Member Function Documentation

◆ badWaferIds()

const std::set<Identifier>& SCT_ModuleVetoCondData::badWaferIds ( ) const
inline

Definition at line 46 of file SCT_ModuleVetoCondData.h.

46 { return m_badWaferId; }

◆ clear()

void SCT_ModuleVetoCondData::clear ( )

Clear.

Definition at line 30 of file SCT_ModuleVetoCondData.cxx.

30  {
31  m_badWaferId.clear();
32  m_isFilled = false;
33 }

◆ filled()

bool SCT_ModuleVetoCondData::filled ( ) const

Check the data are filled or not.

Definition at line 43 of file SCT_ModuleVetoCondData.cxx.

43  {
44  return m_isFilled;
45 }

◆ isBadWaferId()

bool SCT_ModuleVetoCondData::isBadWaferId ( const Identifier  waferId) const

Check if a wafer ID is bad or not.

Definition at line 23 of file SCT_ModuleVetoCondData.cxx.

23  {
24  std::set<Identifier>::const_iterator it{m_badWaferId.find(waferId)};
25  return (it!=m_badWaferId.end());
26 }

◆ setBadWaferId()

bool SCT_ModuleVetoCondData::setBadWaferId ( const Identifier  waferId)

Set a bad wafer ID.

Definition at line 17 of file SCT_ModuleVetoCondData.cxx.

17  {
18  return m_badWaferId.insert(waferId).second;
19 }

◆ setFilled()

void SCT_ModuleVetoCondData::setFilled ( )

Set data filled.

Definition at line 37 of file SCT_ModuleVetoCondData.cxx.

37  {
38  m_isFilled = true;
39 }

◆ size()

long unsigned int SCT_ModuleVetoCondData::size ( ) const

Get the number of bad wafers.

Definition at line 49 of file SCT_ModuleVetoCondData.cxx.

49  {
50  return m_badWaferId.size();
51 }

Member Data Documentation

◆ m_badWaferId

std::set<Identifier> SCT_ModuleVetoCondData::m_badWaferId
private

Definition at line 49 of file SCT_ModuleVetoCondData.h.

◆ m_isFilled

bool SCT_ModuleVetoCondData::m_isFilled
private

Definition at line 50 of file SCT_ModuleVetoCondData.h.


The documentation for this class was generated from the following files:
skel.it
it
Definition: skel.GENtoEVGEN.py:396
SCT_ModuleVetoCondData::m_isFilled
bool m_isFilled
Definition: SCT_ModuleVetoCondData.h:50
SCT_ModuleVetoCondData::m_badWaferId
std::set< Identifier > m_badWaferId
Definition: SCT_ModuleVetoCondData.h:49