ATLAS Offline Software
Loading...
Searching...
No Matches
SCT_LinkMaskingTool.h
Go to the documentation of this file.
1// -*- C++ -*-
2
3/*
4 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5*/
6
12
13#ifndef SCT_LinkMaskingTool_h
14#define SCT_LinkMaskingTool_h
15
16// Athena includes
20
21// Gaudi includes
22#include "GaudiKernel/EventContext.h"
23
24// Forward declarations
25class SCT_ID;
26
32
33class SCT_LinkMaskingTool: public extends<AthAlgTool, ISCT_ConditionsTool> {
34public:
35
36 //@name Tool methods
38 SCT_LinkMaskingTool(const std::string& type, const std::string& name, const IInterface* parent);
39 virtual ~SCT_LinkMaskingTool() = default;
40 virtual StatusCode initialize() override;
42
44 virtual bool canReportAbout(InDetConditions::Hierarchy h) const override;
45
47 virtual bool isGood(const Identifier& elementId, InDetConditions::Hierarchy h=InDetConditions::DEFAULT) const override;
48 virtual bool isGood(const Identifier& elementId, const EventContext& ctx, InDetConditions::Hierarchy h=InDetConditions::DEFAULT) const override;
49
51 virtual bool isGood(const IdentifierHash& hashId) const override;
52 virtual bool isGood(const IdentifierHash& hashId, const EventContext& ctx) const override;
53 virtual void getDetectorElementStatus(const EventContext& ctx, InDet::SiDetectorElementStatus &element_status,
55
56private:
57 const SCT_ID* m_sctHelper{nullptr};
58
59 // ReadCondHandleKey
60 SG::ReadCondHandleKey<SCT_ModuleVetoCondData> m_condKey{this, "CondKey", "SCT_LinkMaskingCondData", "SCT Front End olinks to be masked"};
61 // Provides SCT_ModuleVetoCondData pointer
62 const SCT_ModuleVetoCondData* getCondData(const EventContext& ctx) const;
63
64};
65#endif // SCT_LinkMaskingTool_h
header file for baseclass of SCT conditions tools
header file for data object for SCT_ModuleVetoCondAlg, SCT_LinkMaskingCondAlg, SCT_ModuleVetoTool,...
Header file for AthHistogramAlgorithm.
This is a "hash" representation of an Identifier.
This is an Identifier helper class for the SCT subdetector.
Definition SCT_ID.h:68
virtual void getDetectorElementStatus(const EventContext &ctx, InDet::SiDetectorElementStatus &element_status, SG::WriteCondHandle< InDet::SiDetectorElementStatus > *whandle) const override
const SCT_ModuleVetoCondData * getCondData(const EventContext &ctx) const
SG::ReadCondHandleKey< SCT_ModuleVetoCondData > m_condKey
virtual ~SCT_LinkMaskingTool()=default
virtual bool isGood(const Identifier &elementId, InDetConditions::Hierarchy h=InDetConditions::DEFAULT) const override
Is the detector element good?
const SCT_ID * m_sctHelper
ID helper for SCT.
virtual bool canReportAbout(InDetConditions::Hierarchy h) const override
Can the service report about the given component?
virtual StatusCode initialize() override
SCT_LinkMaskingTool(const std::string &type, const std::string &name, const IInterface *parent)
Class for data object used in SCT_ModuleVetoCondAlg, SCT_LinkMaskingCondAlg, SCT_ModuleVetoTool,...