ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetConditions
SCT_ConditionsTools
src
SCT_RODVetoTool.h
Go to the documentation of this file.
1
// -*- C++ -*-
2
3
/*
4
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
5
*/
6
12
13
#ifndef SCT_RODVetoTool_h
14
#define SCT_RODVetoTool_h
15
16
//Athena includes
17
#include "
AthenaBaseComps/AthAlgTool.h
"
18
#include "
SCT_ConditionsTools/ISCT_ConditionsTool.h
"
19
20
#include "Identifier/Identifier.h"
21
#include "
InDetConditionsSummaryService/InDetHierarchy.h
"
22
#include "
SCT_ConditionsData/IdentifierSet.h
"
23
#include "
StoreGate/ReadHandleKey.h
"
24
25
//STL includes
26
#include <string>
27
28
//forward declarations
29
class
IdentifierHash
;
30
class
SCT_ID
;
31
class
SCT_RODVetoTool_test;
32
37
class
SCT_RODVetoTool
:
public
extends<AthAlgTool, ISCT_ConditionsTool> {
39
friend
class
SCT_RODVetoTool_test
;
40
41
public
:
42
//@name Tool methods
44
SCT_RODVetoTool
(
const
std::string&
type
,
const
std::string& name,
const
IInterface* parent);
45
virtual
~SCT_RODVetoTool
() =
default
;
46
virtual
StatusCode
initialize
()
override
;
47
virtual
StatusCode
finalize
()
override
;
49
51
virtual
bool
canReportAbout
(
InDetConditions::Hierarchy
h
)
const override
;
52
54
virtual
bool
isGood
(
const
Identifier
& elementId,
const
EventContext& ctx,
InDetConditions::Hierarchy
h
=
InDetConditions::DEFAULT
)
const override
;
55
57
virtual
bool
isGood
(
const
IdentifierHash
& hashId,
const
EventContext& ctx)
const override
;
58
virtual
void
getDetectorElementStatus
(
const
EventContext& ctx,
InDet::SiDetectorElementStatus
&element_status,
59
SG::WriteCondHandle<InDet::SiDetectorElementStatus>
* whandle)
const override
;
60
61
private
:
62
63
const
IdentifierSet
*
getCondData
(
const
EventContext& ctx)
const
;
64
65
// The vector of bad rods should be kept in a threadsafe way so it can
66
// be called and read safely.
67
SG::ReadCondHandleKey<IdentifierSet>
m_badModuleIds
{
this
,
"BadModuleIds"
,
"BadSCTModuleIds_RODVeto"
,
"Read key for bad module identifiers"
};
68
69
const
SCT_ID
*
m_pHelper
{
nullptr
};
70
};
71
72
#endif
// SCT_RODVetoTool_h
AthAlgTool.h
ISCT_ConditionsTool.h
header file for baseclass of SCT conditions tools
IdentifierSet.h
IdentifierSet
std::set< Identifier > IdentifierSet
IdentifierSet is std::set of Identifier and used in SCT_RODVetoCondAlg and SCT_RODVetoTool.
Definition
IdentifierSet.h:18
InDetHierarchy.h
Header containing the InDetHierarchy enum, to avoid pulling in a class every time it is needed and na...
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
h
Header file for AthHistogramAlgorithm.
IdentifierHash
This is a "hash" representation of an Identifier.
Definition
IdentifierHash.h:25
InDet::SiDetectorElementStatus
Definition
SiDetectorElementStatus.h:62
SCT_ID
This is an Identifier helper class for the SCT subdetector.
Definition
SCT_ID.h:68
SCT_RODVetoTool::getCondData
const IdentifierSet * getCondData(const EventContext &ctx) const
Definition
SCT_RODVetoTool.cxx:109
SCT_RODVetoTool::initialize
virtual StatusCode initialize() override
Definition
SCT_RODVetoTool.cxx:35
SCT_RODVetoTool::canReportAbout
virtual bool canReportAbout(InDetConditions::Hierarchy h) const override
Can the service report about the given component? (chip, module...).
Definition
SCT_RODVetoTool.cxx:49
SCT_RODVetoTool::isGood
virtual bool isGood(const Identifier &elementId, const EventContext &ctx, InDetConditions::Hierarchy h=InDetConditions::DEFAULT) const override
Is the detector element good?
Definition
SCT_RODVetoTool.cxx:56
SCT_RODVetoTool::finalize
virtual StatusCode finalize() override
Definition
SCT_RODVetoTool.cxx:44
SCT_RODVetoTool::m_badModuleIds
SG::ReadCondHandleKey< IdentifierSet > m_badModuleIds
Definition
SCT_RODVetoTool.h:67
SCT_RODVetoTool::m_pHelper
const SCT_ID * m_pHelper
Definition
SCT_RODVetoTool.h:69
SCT_RODVetoTool::getDetectorElementStatus
virtual void getDetectorElementStatus(const EventContext &ctx, InDet::SiDetectorElementStatus &element_status, SG::WriteCondHandle< InDet::SiDetectorElementStatus > *whandle) const override
Definition
SCT_RODVetoTool.cxx:77
SCT_RODVetoTool::SCT_RODVetoTool_test
friend class SCT_RODVetoTool_test
Allow the test class access to all methods.
Definition
SCT_RODVetoTool.h:39
SCT_RODVetoTool::~SCT_RODVetoTool
virtual ~SCT_RODVetoTool()=default
SCT_RODVetoTool::SCT_RODVetoTool
SCT_RODVetoTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
SCT_RODVetoTool.cxx:28
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
SG::WriteCondHandle
Definition
WriteCondHandle.h:26
Identifier
Definition
IdentifierFieldParser.cxx:14
InDetConditions::Hierarchy
Hierarchy
Definition
InDetHierarchy.h:14
InDetConditions::DEFAULT
@ DEFAULT
Definition
InDetHierarchy.h:14
type
Generated on
for ATLAS Offline Software by
1.17.0