ATLAS Offline Software
SCT_ModuleVetoCondData.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
8 // constructor
10  m_badWaferId{},
11  m_isFilled{false}
12 {
13 }
14 
16 // set a bad wafer ID
18  return m_badWaferId.insert(waferId).second;
19 }
20 
22 // check if a wafer ID is bad or not
24  std::set<Identifier>::const_iterator it{m_badWaferId.find(waferId)};
25  return (it!=m_badWaferId.end());
26 }
27 
29 // clear
31  m_badWaferId.clear();
32  m_isFilled = false;
33 }
34 
36 // set data filled
38  m_isFilled = true;
39 }
40 
42 // check the data are filled or not
44  return m_isFilled;
45 }
46 
48 // get the number of bad wafers
49 long unsigned int SCT_ModuleVetoCondData::size() const {
50  return m_badWaferId.size();
51 }
SCT_ModuleVetoCondData::setFilled
void setFilled()
Set data filled.
Definition: SCT_ModuleVetoCondData.cxx:37
skel.it
it
Definition: skel.GENtoEVGEN.py:423
SCT_ModuleVetoCondData::filled
bool filled() const
Check the data are filled or not.
Definition: SCT_ModuleVetoCondData.cxx:43
SCT_ModuleVetoCondData::clear
void clear()
Clear.
Definition: SCT_ModuleVetoCondData.cxx:30
SCT_ModuleVetoCondData.h
header file for data object for SCT_ModuleVetoCondAlg, SCT_LinkMaskingCondAlg, SCT_ModuleVetoTool,...
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
SCT_ModuleVetoCondData::size
long unsigned int size() const
Get the number of bad wafers.
Definition: SCT_ModuleVetoCondData.cxx:49
SCT_ModuleVetoCondData::m_isFilled
bool m_isFilled
Definition: SCT_ModuleVetoCondData.h:50
SCT_ModuleVetoCondData::isBadWaferId
bool isBadWaferId(const Identifier waferId) const
Check if a wafer ID is bad or not.
Definition: SCT_ModuleVetoCondData.cxx:23
SCT_ModuleVetoCondData::SCT_ModuleVetoCondData
SCT_ModuleVetoCondData()
Constructor.
Definition: SCT_ModuleVetoCondData.cxx:9
SCT_ModuleVetoCondData::m_badWaferId
std::set< Identifier > m_badWaferId
Definition: SCT_ModuleVetoCondData.h:49
SCT_ModuleVetoCondData::setBadWaferId
bool setBadWaferId(const Identifier waferId)
Set a bad wafer ID.
Definition: SCT_ModuleVetoCondData.cxx:17