ATLAS Offline Software
Loading...
Searching...
No Matches
SCT_StripVetoTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
10
11#ifndef SCT_StripVetoTool_h
12#define SCT_StripVetoTool_h
13
14//Gaudi includes
16
17//Athena includes
20
21//STL includes
22#include <set>
23
24//forward declarations
25class IdentifierHash;
26class SCT_ID;
27
32class SCT_StripVetoTool: public extends<AthAlgTool, ISCT_ConditionsTool> {
33public:
34 //@name Tool methods
36 SCT_StripVetoTool(const std::string& type, const std::string& name, const IInterface* parent);
37 virtual ~SCT_StripVetoTool() = default;
38 virtual StatusCode initialize() override;
39 virtual StatusCode finalize() override;
41
43 virtual bool canReportAbout(InDetConditions::Hierarchy h) const override;
44
46 virtual bool isGood(const Identifier& elementId, InDetConditions::Hierarchy h=InDetConditions::SCT_STRIP) const override;
47 virtual bool isGood(const Identifier& elementId, const EventContext& ctx, InDetConditions::Hierarchy h=InDetConditions::SCT_STRIP) const override;
48
50 virtual bool isGood(const IdentifierHash& hashId) const override;
51 virtual bool isGood(const IdentifierHash& hashId, const EventContext& ctx) const override;
52 virtual void getDetectorElementStatus(const EventContext& ctx, InDet::SiDetectorElementStatus &element_status,
54
55private:
56 StatusCode fillData();
57
58 StringArrayProperty m_badElements{this, "BadStripIdentifiers", {}, "list of bad detector elements (= strips). Identifiers should be given as strings and decimal."};
59 std::set<Identifier> m_badIds;
60 const SCT_ID* m_pHelper{nullptr};
61
62};
63
64#endif // SCT_StripVetoTool_h
header file for baseclass of SCT conditions tools
Header containing the InDetHierarchy enum, to avoid pulling in a class every time it is needed and na...
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 bool canReportAbout(InDetConditions::Hierarchy h) const override
Can the service report about the given component? (chip, module...)
StringArrayProperty m_badElements
virtual bool isGood(const Identifier &elementId, InDetConditions::Hierarchy h=InDetConditions::SCT_STRIP) const override
Is the detector element good?
const SCT_ID * m_pHelper
virtual StatusCode initialize() override
virtual ~SCT_StripVetoTool()=default
std::set< Identifier > m_badIds
SCT_StripVetoTool(const std::string &type, const std::string &name, const IInterface *parent)
virtual void getDetectorElementStatus(const EventContext &ctx, InDet::SiDetectorElementStatus &element_status, SG::WriteCondHandle< InDet::SiDetectorElementStatus > *whandle) const override
virtual StatusCode finalize() override