ATLAS Offline Software
ISCT_FlaggedConditionTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /*
6  * @file ISCT_FlaggedConditionTool.h
7  * interface file for tool allowing one to flag modules as 'bad' with a reason
8  * @author gwilliam@mail.cern.ch
9  */
10 
11 #ifndef ISCT_FlaggedConditionTool_h
12 #define ISCT_FlaggedConditionTool_h
13 
14 // Athena
15 #include "Identifier/Identifier.h"
17 
18 // Local
23 
24 // Forward declarations
25 class Identifier;
26 
27 /*
28  * @class SCT_FlaggedConditionTool
29  * Tool allowing one to flag detector elements as 'bad' with a reason
30  */
31 
33 
34  public:
35  //@name Service methods
37  virtual ~ISCT_FlaggedConditionTool() = default;
38 
42 
44  virtual const std::string& details(const Identifier& id) const =0;
45  virtual const std::string& details(const Identifier& id, const EventContext& ctx) const =0;
47  virtual const std::string& details(const IdentifierHash& id) const =0;
48  virtual const std::string& details(const IdentifierHash& id, const EventContext& ctx) const =0;
49 
51  virtual int numBadIds() const =0;
52  virtual int numBadIds(const EventContext& ctx) const =0;
53 
55  virtual const IDCInDetBSErrContainer* getBadIds() const =0;
56  virtual const IDCInDetBSErrContainer* getBadIds(const EventContext& ctx) const =0;
57 
58  private:
59 };
60 
61 #endif // ISCT_FlaggedConditionTool_h
SCT_FlaggedCondEnum.h
header file for enum for SCT_Clusterization and SCT_FlaggedConditionTool.
ISCT_FlaggedConditionTool::details
virtual const std::string & details(const IdentifierHash &id, const EventContext &ctx) const =0
ISCT_FlaggedConditionTool::details
virtual const std::string & details(const Identifier &id) const =0
Get the reason why the wafer is bad (by Identifier)
ISCT_FlaggedConditionTool::details
virtual const std::string & details(const IdentifierHash &id) const =0
Get the reason why the wafer is bad (by IdentifierHash)
ISCT_ConditionsTool.h
ISCT_FlaggedConditionTool::numBadIds
virtual int numBadIds() const =0
Get number flagged as bad (per event)
IDCInDetBSErrContainer
IDC like storage for BS errors, TODO, customise implementation further so that we store int rather th...
Definition: IDCInDetBSErrContainer.h:19
ISCT_FlaggedConditionTool::~ISCT_FlaggedConditionTool
virtual ~ISCT_FlaggedConditionTool()=default
ISCT_FlaggedConditionTool::getBadIds
virtual const IDCInDetBSErrContainer * getBadIds(const EventContext &ctx) const =0
ISCT_FlaggedConditionTool::getBadIds
virtual const IDCInDetBSErrContainer * getBadIds() const =0
Get IdentifierHashs ofwafers flagged as bad + reason (per event)
ISCT_FlaggedConditionTool::numBadIds
virtual int numBadIds(const EventContext &ctx) const =0
InDetHierarchy.h
ISCT_FlaggedConditionTool::details
virtual const std::string & details(const Identifier &id, const EventContext &ctx) const =0
IdentifierHash.h
IDCInDetBSErrContainer.h
ISCT_FlaggedConditionTool
Definition: ISCT_FlaggedConditionTool.h:32
ISCT_FlaggedConditionTool::DeclareInterfaceID
DeclareInterfaceID(ISCT_FlaggedConditionTool, 1, 0)
Creates the InterfaceID and interfaceID() method.
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
ISCT_ConditionsTool
Definition: ISCT_ConditionsTool.h:34
Identifier
Definition: IdentifierFieldParser.cxx:14