Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
SCT_RODVetoTestAlg.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
14 #include "SCT_RODVetoTestAlg.h"
15 
16 // Athena include
18 
20  ISvcLocator* pSvcLocator) :
21  AthReentrantAlgorithm( name, pSvcLocator ) {
22  //nop
23 }
24 
25 //Initialize
28  ATH_MSG_INFO("Calling initialize");
29  ATH_CHECK(m_pRODVetoTool.retrieve());
30  return StatusCode::SUCCESS;
31 }
32 
33 //Execute
35 SCT_RODVetoTestAlg::execute(const EventContext& ctx) const {
36  //This method is only used to test the summary service, and only used within this package,
37  // so the INFO level messages have no impact on performance of these services when used by clients
38  ATH_MSG_INFO("Calling execute");
39  for (unsigned int hash{0}; hash<8176; hash+=2) {
40  bool result{m_pRODVetoTool->isGood(IdentifierHash{hash}, ctx)};//invented, no idea what this is
41  ATH_MSG_INFO("Call to module in ROD : Module (hash=" << hash << ") is " << (result?"good":"bad"));
42  }
43 
44  return StatusCode::SUCCESS;
45 }
46 
47 
48 //Finalize
51  ATH_MSG_INFO("Calling finalize");
52  return StatusCode::SUCCESS;
53 }
get_generator_info.result
result
Definition: get_generator_info.py:21
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
SCT_RODVetoTestAlg.h
Header file for the SCT_RODVetoTestAlg class in package SCT_ConditionsAlgorithms.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:74
SCT_RODVetoTestAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: SCT_RODVetoTestAlg.cxx:35
SCT_RODVetoTestAlg::finalize
virtual StatusCode finalize() override
Definition: SCT_RODVetoTestAlg.cxx:50
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
IdentifierHash.h
SCT_RODVetoTestAlg::SCT_RODVetoTestAlg
SCT_RODVetoTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: SCT_RODVetoTestAlg.cxx:19
CaloCondBlobAlgs_fillNoiseFromASCII.hash
dictionary hash
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:109
SCT_RODVetoTestAlg::initialize
virtual StatusCode initialize() override
Definition: SCT_RODVetoTestAlg.cxx:27
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
SCT_RODVetoTestAlg::m_pRODVetoTool
ToolHandle< ISCT_ConditionsTool > m_pRODVetoTool
Definition: SCT_RODVetoTestAlg.h:42