ATLAS Offline Software
Loading...
Searching...
No Matches
SCT_StripVetoTestAlg.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
12
14
15// Athena includes
17
18// STL includes
19#include <vector>
20
21SCT_StripVetoTestAlg::SCT_StripVetoTestAlg(const std::string& name, ISvcLocator* pSvcLocator) :
22 AthReentrantAlgorithm(name, pSvcLocator) {
23}
24
25//Initialize
27 ATH_MSG_INFO("Calling initialize");
28
29 // Retrieve strip veto tool
30 if (m_stripVetoTool.retrieve().isFailure()) {
31 ATH_MSG_FATAL("Could not retrieve the link masking tool");
32 return StatusCode::FAILURE;
33 }
34
35 return StatusCode::SUCCESS;
36}
37
38//Execute
39StatusCode SCT_StripVetoTestAlg::execute(const EventContext& ctx) const {
40 std::vector<Identifier::value_type> stripIds{576522359582752768ULL,
41 576522475009998848ULL,
42 576522475278434304ULL,
43 576522475546869760ULL,
44 576522475815305216ULL,
45 576522475815305216ULL};
46
47 for (Identifier::value_type stripId : stripIds) {
48 ATH_MSG_INFO("Strip " << stripId << " " << (m_stripVetoTool->isGood(Identifier{stripId}, ctx, InDetConditions::SCT_STRIP) ? "not vetoed" : "vetoed"));
49 }
50
51 return StatusCode::SUCCESS;
52}
53
54//Finalize
56 ATH_MSG_INFO("Calling finalize");
57 return StatusCode::SUCCESS;
58}
#define ATH_MSG_FATAL(x)
#define ATH_MSG_INFO(x)
Header containing the InDetHierarchy enum, to avoid pulling in a class every time it is needed and na...
Class to test SCT_StripVetoTool (header)
An algorithm that can be simultaneously executed in multiple threads.
virtual StatusCode initialize() override
SCT_StripVetoTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode finalize() override
virtual StatusCode execute(const EventContext &ctx) const override
ToolHandle< ISCT_ConditionsTool > m_stripVetoTool