ATLAS Offline Software
ISCT_ConditionsTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
11 #ifndef ISCT_ConditionsTool_h
12 #define ISCT_ConditionsTool_h
13 
14 //Athena includes
15 #include "Identifier/Identifier.h"
19 
20 //Gaudi Includes
21 #include "GaudiKernel/IAlgTool.h"
22 #include "GaudiKernel/EventContext.h"
23 #include "GaudiKernel/EventIDRange.h"
24 
25 namespace InDet {
26  class SiDetectorElementStatus;
27 }
28 
34 class ISCT_ConditionsTool: virtual public IAlgTool {
35  public:
36  virtual ~ISCT_ConditionsTool() = default;
37 
40 
43 
45  virtual bool isGood(const Identifier& elementId, InDetConditions::Hierarchy h=InDetConditions::DEFAULT) const =0;
46  virtual bool isGood(const Identifier& elementId, const EventContext& ctx, InDetConditions::Hierarchy h=InDetConditions::DEFAULT) const =0;
47  virtual void getDetectorElementStatus(const EventContext& ctx, InDet::SiDetectorElementStatus &element_status,
49 
50  //@todo introduce hash identifier method
51  virtual bool isGood(const IdentifierHash& hashId) const =0;
52  virtual bool isGood(const IdentifierHash& hashId, const EventContext& ctx) const =0;
53 };
54 
55 #endif // ISCT_ConditionsTool_h
InDet
Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
ISCT_ConditionsTool::~ISCT_ConditionsTool
virtual ~ISCT_ConditionsTool()=default
InDetConditions::Hierarchy
Hierarchy
Definition: InDetHierarchy.h:14
ISCT_ConditionsTool::isGood
virtual bool isGood(const IdentifierHash &hashId) const =0
ISCT_ConditionsTool::isGood
virtual bool isGood(const IdentifierHash &hashId, const EventContext &ctx) const =0
InDet::SiDetectorElementStatus
Definition: SiDetectorElementStatus.h:62
WriteCondHandle.h
InDetHierarchy.h
ISCT_ConditionsTool::canReportAbout
virtual bool canReportAbout(InDetConditions::Hierarchy h) const =0
Return whether this service can report on the hierarchy level (e.g. module, chip.....
ISCT_ConditionsTool::getDetectorElementStatus
virtual void getDetectorElementStatus(const EventContext &ctx, InDet::SiDetectorElementStatus &element_status, SG::WriteCondHandle< InDet::SiDetectorElementStatus > *whandle) const =0
ISCT_ConditionsTool::isGood
virtual bool isGood(const Identifier &elementId, InDetConditions::Hierarchy h=InDetConditions::DEFAULT) const =0
Summarise the result from the service as good/bad.
IdentifierHash.h
ISCT_ConditionsTool::DeclareInterfaceID
DeclareInterfaceID(ISCT_ConditionsTool, 1, 0)
Creates the InterfaceID and interfaceID() method.
ISCT_ConditionsTool::isGood
virtual bool isGood(const Identifier &elementId, const EventContext &ctx, InDetConditions::Hierarchy h=InDetConditions::DEFAULT) const =0
h
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
InDetConditions::DEFAULT
@ DEFAULT
Definition: InDetHierarchy.h:14
SG::WriteCondHandle
Definition: WriteCondHandle.h:26
ISCT_ConditionsTool
Definition: ISCT_ConditionsTool.h:34
Identifier
Definition: IdentifierFieldParser.cxx:14