ATLAS Offline Software
ISCT_ConfigurationConditionsTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
11 #ifndef ISCT_ConfigurationConditionsTool_h
12 #define ISCT_ConfigurationConditionsTool_h
13 
14 #include <set>
15 #include <map>
16 
19 
20 class Identifier;
21 class IdentifierHash;
22 
29 
30  public:
31  //@name Service methods
33 
34  virtual ~ISCT_ConfigurationConditionsTool() = default;
35 
38 
40 
42  virtual const std::set<Identifier>* badModules(const EventContext& ctx) const =0;
43  virtual const std::set<Identifier>* badModules() const =0;
44 
46  virtual const std::map<IdentifierHash, std::pair<bool, bool> >* badLinks(const EventContext& ctx) const =0;
47  virtual const std::map<IdentifierHash, std::pair<bool, bool> >* badLinks() const =0;
49  virtual std::pair<bool, bool> badLinks(const IdentifierHash& hash, const EventContext& ctx) const =0;
50  virtual std::pair<bool, bool> badLinks(const IdentifierHash& hash) const =0;
51 
53  virtual const std::map<Identifier, unsigned int>* badChips(const EventContext& ctx) const =0;
54  virtual const std::map<Identifier, unsigned int>* badChips() const =0;
56  virtual unsigned int badChips(const Identifier& moduleId, const EventContext& ctx) const =0;
57  virtual unsigned int badChips(const Identifier& moduleId) const =0;
58 
60  virtual void badStrips(std::set<Identifier>& strips, const EventContext& ctx, bool ignoreBadModules=false, bool ignoreBadChips=false) const =0;
61  virtual void badStrips(std::set<Identifier>& strips, bool ignoreBadModules=false, bool ignoreBadChips=false) const =0;
63  virtual void badStrips(const Identifier& moduleId, std::set<Identifier>& strips, const EventContext& ctx, bool ignoreBadModules=false, bool ignoreBadChips=false) const =0;
64  virtual void badStrips(const Identifier& moduleId, std::set<Identifier>& strips, bool ignoreBadModules=false, bool ignoreBadChips=false) const =0;
65 
67  virtual int getChip(const Identifier& stripId, const EventContext& ctx) const =0;
68  virtual int getChip(const Identifier& stripId) const =0;
69 
70  private:
71 };
72 
73 #endif // ISCT_ConfigurationConditionsTool_h
ISCT_ConfigurationConditionsTool::badLinks
virtual const std::map< IdentifierHash, std::pair< bool, bool > > * badLinks(const EventContext &ctx) const =0
Map of link status for all modules with at least one bad link (true = good, false = bad)
ISCT_ConfigurationConditionsTool::badStrips
virtual void badStrips(const Identifier &moduleId, std::set< Identifier > &strips, bool ignoreBadModules=false, bool ignoreBadChips=false) const =0
ISCT_ConditionsTool.h
ISCT_ConfigurationConditionsTool::badModules
virtual const std::set< Identifier > * badModules() const =0
ISCT_ConfigurationConditionsTool::badChips
virtual unsigned int badChips(const Identifier &moduleId, const EventContext &ctx) const =0
Chips status for a particular module (packed as 1st 12 bits of unsigned int)
ISCT_ConfigurationConditionsTool::badChips
virtual unsigned int badChips(const Identifier &moduleId) const =0
ISCT_ConfigurationConditionsTool::badLinks
virtual std::pair< bool, bool > badLinks(const IdentifierHash &hash) const =0
ISCT_ConfigurationConditionsTool::badLinks
virtual const std::map< IdentifierHash, std::pair< bool, bool > > * badLinks() const =0
ISCT_ConfigurationConditionsTool::badStrips
virtual void badStrips(std::set< Identifier > &strips, const EventContext &ctx, bool ignoreBadModules=false, bool ignoreBadChips=false) const =0
Set of bad strip Identifiers.
ISCT_ConfigurationConditionsTool::badStrips
virtual void badStrips(const Identifier &moduleId, std::set< Identifier > &strips, const EventContext &ctx, bool ignoreBadModules=false, bool ignoreBadChips=false) const =0
Set of bad strip Identifiers for a particular module.
ISCT_ConfigurationConditionsTool::~ISCT_ConfigurationConditionsTool
virtual ~ISCT_ConfigurationConditionsTool()=default
ISCT_ConfigurationConditionsTool::badChips
virtual const std::map< Identifier, unsigned int > * badChips() const =0
ISCT_ConfigurationConditionsTool::DeclareInterfaceID
DeclareInterfaceID(ISCT_ConfigurationConditionsTool, 1, 0)
Creates the InterfaceID and interfaceID() method.
InDetHierarchy.h
ISCT_ConfigurationConditionsTool
Definition: ISCT_ConfigurationConditionsTool.h:28
ISCT_ConfigurationConditionsTool::badLinks
virtual std::pair< bool, bool > badLinks(const IdentifierHash &hash, const EventContext &ctx) const =0
Link status for a particluar module (true = good, false = bad)
ISCT_ConfigurationConditionsTool::getChip
virtual int getChip(const Identifier &stripId, const EventContext &ctx) const =0
Get the chip number containing a particular strip.
CaloCondBlobAlgs_fillNoiseFromASCII.hash
dictionary hash
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:109
ISCT_ConfigurationConditionsTool::getChip
virtual int getChip(const Identifier &stripId) const =0
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_ConfigurationConditionsTool::badStrips
virtual void badStrips(std::set< Identifier > &strips, bool ignoreBadModules=false, bool ignoreBadChips=false) const =0
ISCT_ConfigurationConditionsTool::badModules
virtual const std::set< Identifier > * badModules(const EventContext &ctx) const =0
Set of bad module Identifiers.
ISCT_ConditionsTool
Definition: ISCT_ConditionsTool.h:34
ISCT_ConfigurationConditionsTool::badChips
virtual const std::map< Identifier, unsigned int > * badChips(const EventContext &ctx) const =0
Map of chips status for all modules with at least one bad chip (packed as 1st 12 bits of unsigned int...
Identifier
Definition: IdentifierFieldParser.cxx:14