#include <LArCellMaskingTool.h>
Definition at line 21 of file LArCellMaskingTool.h.
◆ LArCellMaskingTool()
LArCellMaskingTool::LArCellMaskingTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ fillIncludedCellsMap()
Definition at line 67 of file LArCellMaskingTool.cxx.
72 bool haveFT=
false, haveSlot=
false, haveChannel=
false;
78 return StatusCode::FAILURE;
104 if (haveFT)
msg() <<
" FT=" <<
FT;
105 if (haveSlot)
msg() <<
" slot=" << slot;
106 if (haveChannel)
msg() <<
" channel=" <<
channel;
110 unsigned nDisconnected=0;
121 if (
cabling->isOnlineConnected(chanId)) {
124 m_includedCellsMap.reset(cellhash);
136 }
while (!haveChannel &&
channel<channelMax);
138 if (!haveSlot) slot++;
139 }
while (!haveSlot && slot<slotMax);
140 if (!haveSlot) slot=0;
142 }
while (!haveFT &&
FT<FTmax);
145 return StatusCode::SUCCESS;
◆ finalize()
StatusCode LArCellMaskingTool::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
StatusCode LArCellMaskingTool::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 44 of file LArCellMaskingTool.cxx.
58 m_includedCellsMap.set();
60 ATH_MSG_INFO (
" Will exclude " << m_includedCellsMap.size() - m_includedCellsMap.count() <<
" cells from CaloCellContainer");
63 return StatusCode::SUCCESS;
◆ process()
StatusCode LArCellMaskingTool::process |
( |
CaloCellContainer * |
theCellContainer, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
overridevirtual |
Definition at line 150 of file LArCellMaskingTool.cxx.
155 std::lock_guard<std::mutex> lock (
m_mutex);
168 while(
it!=theCont->end()) {
170 if (!m_includedCellsMap.test(
cellHash)) {
172 it=theCont->erase(
it);
179 return StatusCode::SUCCESS ;
◆ ATLAS_THREAD_SAFE
std::bitset<200000> m_includedCellsMap LArCellMaskingTool::ATLAS_THREAD_SAFE |
|
mutableprivate |
◆ m_cablingKey
◆ m_mapInitialized
std::atomic<bool> LArCellMaskingTool::m_mapInitialized |
|
mutableprivate |
◆ m_mutex
std::mutex LArCellMaskingTool::m_mutex |
|
mutableprivate |
◆ m_offlinehashMax
◆ m_offlineID
◆ m_onlinehashMax
◆ m_onlineID
◆ m_rejLArChannels
std::vector<std::string> LArCellMaskingTool::m_rejLArChannels |
|
private |
The documentation for this class was generated from the following files:
HWIdentifier channel_Id(int barrel_ec, int pos_neg, int feedthrough, int slot, int channel) const
create channel identifier from fields