|
ATLAS Offline Software
|
Go to the documentation of this file.
24 ISvcLocator* pSvcLocator) :
34 return StatusCode::SUCCESS;
40 std::vector<unsigned int> allRods;
44 if (badIds.isValid()) {
45 return StatusCode::SUCCESS;
48 std::unique_ptr<IdentifierSet> bad_id_set = std::make_unique<IdentifierSet>();
51 ATH_MSG_DEBUG(
"This rod is " << std::hex <<
"0x" << thisRod << std::dec);
54 if (
std::find(allRods.begin(), allRods.end(), thisRod)==allRods.end()) {
55 ATH_MSG_WARNING(
"Your vetoed selection " << std::hex <<
"0x" << thisRod <<
" does not exist." << std::dec);
59 std::vector<IdentifierHash> listOfHashes;
60 m_cabling->getHashesForRod(listOfHashes, thisRod, ctx);
67 const bool alreadyInserted{modId==previousId};
69 if (alreadyInserted)
continue;
71 const bool thisInsertionOk{bad_id_set->insert(modId).second};
72 if (not thisInsertionOk) {
73 ATH_MSG_WARNING(
"Insertion failed for rod " << std::hex <<
"0x" << thisRod << std::dec <<
" and module (hash,id): " << thisHash <<
", " << modId);
79 return StatusCode::SUCCESS;
83 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
This is an Identifier helper class for the SCT subdetector. This class is a factory for creating comp...
std::string find(const std::string &s)
return a remapped string
virtual StatusCode initialize() override final
#define ATH_MSG_VERBOSE(x)
SCT_RODVetoCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
SG::WriteCondHandleKey< IdentifierSet > m_badIds
Identifier module_id(int barrel_ec, int layer_disk, int phi_module, int eta_module) const
For a single crystal.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
An algorithm that can be simultaneously executed in multiple threads.
ToolHandle< ISCT_CablingTool > m_cabling
virtual StatusCode execute(const EventContext &ctx) const override final
::StatusCode StatusCode
StatusCode definition for legacy code.
static EventIDRange infiniteRunLB()
Produces an EventIDRange that is infinite in RunLumi and invalid in Time.
virtual StatusCode finalize() override final
Header file for the SCT_RODVetoCondAlg class in package SCT_ConditionsAlgorithms.
StatusCode initialize(bool used=true)
#define ATH_MSG_WARNING(x)
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module, int side) const
For a single side of module.
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
UnsignedIntegerArrayProperty m_badRODElementsInput