ATLAS Offline Software
Loading...
Searching...
No Matches
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
10
11#ifndef ISCT_ConfigurationConditionsTool_h
12#define ISCT_ConfigurationConditionsTool_h
13
14#include <set>
15#include <map>
16
19
20class Identifier;
21class IdentifierHash;
22
27
29
30 public:
31 //@name Service methods
33
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
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...
Base class for SCT conditions tools so they can be used in the summary tool.
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)
DeclareInterfaceID(ISCT_ConfigurationConditionsTool, 1, 0)
Creates the InterfaceID and interfaceID() method.
virtual const std::set< Identifier > * badModules(const EventContext &ctx) const =0
Set of bad module Identifiers.
virtual void badStrips(std::set< Identifier > &strips, const EventContext &ctx, bool ignoreBadModules=false, bool ignoreBadChips=false) const =0
Set of bad strip Identifiers.
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.
virtual std::pair< bool, bool > badLinks(const IdentifierHash &hash) const =0
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)
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...
virtual const std::map< Identifier, unsigned int > * badChips() const =0
virtual unsigned int badChips(const Identifier &moduleId) const =0
virtual int getChip(const Identifier &stripId) const =0
virtual const std::map< IdentifierHash, std::pair< bool, bool > > * badLinks() const =0
virtual int getChip(const Identifier &stripId, const EventContext &ctx) const =0
Get the chip number containing a particular strip.
virtual void badStrips(std::set< Identifier > &strips, bool ignoreBadModules=false, bool ignoreBadChips=false) const =0
virtual const std::set< Identifier > * badModules() const =0
virtual ~ISCT_ConfigurationConditionsTool()=default
virtual void badStrips(const Identifier &moduleId, std::set< Identifier > &strips, bool ignoreBadModules=false, bool ignoreBadChips=false) const =0
virtual std::pair< bool, bool > badLinks(const IdentifierHash &hash, const EventContext &ctx) const =0
Link status for a particluar module (true = good, false = bad)
This is a "hash" representation of an Identifier.