ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetValidation
InDetDefectsEmulation
src
StripDefectsEmulatorCondAlg.h
Go to the documentation of this file.
1
// -*- C++ -*-
2
3
/*
4
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
5
*/
6
#ifndef INDET_STRIPDEFECTSEMULATORCONDALG_H
7
#define INDET_STRIPDEFECTSEMULATORCONDALG_H
8
9
#include "
DefectsEmulatorCondAlgImpl.h
"
10
11
#include "
StripEmulatedDefects.h
"
12
#include "
StripModuleHelper.h
"
13
#include "
InDetReadoutGeometry/SiDetectorElement.h
"
14
#include "
SCT_ReadoutGeometry/SCT_ModuleSideDesign.h
"
15
#include "
SCT_ConditionsTools/ISCT_ConditionsTool.h
"
16
#include "
InDetIdentifier/SCT_ID.h
"
17
18
#include "
ConnectedModulesUtil.h
"
19
20
namespace
InDet
{
21
22
class
StripDefectsEmulatorCondAlg
;
23
namespace
detail
{
24
template
<>
25
struct
DetectorEmulatorCondAlgTraits
<
StripDefectsEmulatorCondAlg
> {
26
using
T_ID
=
SCT_ID
;
27
using
T_ModuleHelper
=
StripModuleHelper
;
28
using
T_EmulatedDefects
=
InDet::StripEmulatedDefects
;
29
using
T_DetectorElementCollection
=
InDetDD::SiDetectorElementCollection
;
30
using
T_ModuleDesign
=
InDetDD::SCT_ModuleSideDesign
;
31
};
32
}
33
38
class
StripDefectsEmulatorCondAlg
:
public
DefectsEmulatorCondAlgImpl
<StripDefectsEmulatorCondAlg>
39
{
40
public
:
41
friend
class
DefectsEmulatorCondAlgImpl
<
StripDefectsEmulatorCondAlg
>;
42
43
using
DefectsEmulatorCondAlgImpl
<
StripDefectsEmulatorCondAlg
>
::DefectsEmulatorCondAlgImpl
;
44
45
virtual
StatusCode
initialize
()
override
final
;
46
47
protected
:
48
ToolHandle<ISCT_ConditionsTool>
m_moduleVetoTool
49
{
this
,
"SCTConditionsTool"
,
""
,
"Optional SCT conditions tool to mark modules as defect (alternative to ModulePattern)"
};
50
53
static
std::string
IDName
() {
return
std::string(
"SCT_ID"
); }
54
57
std::unordered_multimap<unsigned int, unsigned int>
getModuleConnectionMap
(
const
InDetDD::SiDetectorElementCollection
&det_ele_coll)
const
{
58
return
ConnectedModulesUtil::createModuleConnectionMap
(*
m_idHelper
, det_ele_coll);
59
}
60
63
bool
isModuleDefect
(
const
EventContext &ctx,
unsigned
int
id_hash)
const
{
64
return
(
m_moduleVetoTool
.isEnabled() && !
m_moduleVetoTool
->isGood(id_hash, ctx));
65
}
66
};
67
}
68
#endif
ConnectedModulesUtil.h
DefectsEmulatorCondAlgImpl.h
ISCT_ConditionsTool.h
header file for baseclass of SCT conditions tools
SCT_ID.h
This is an Identifier helper class for the SCT subdetector.
SCT_ModuleSideDesign.h
SiDetectorElement.h
StripEmulatedDefects.h
StripModuleHelper.h
InDetDD::SCT_ModuleSideDesign
Base class for the SCT module side design, extended by the Forward and Barrel module design.
Definition
SCT_ModuleSideDesign.h:40
InDetDD::SiDetectorElementCollection
Class to hold the SiDetectorElement objects to be put in the detector store.
Definition
SiDetectorElementCollection.h:27
InDet::DefectsEmulatorCondAlgImpl
Conditions algorithms for emulating ITK pixel or strip defects.
Definition
DefectsEmulatorCondAlgImpl.h:35
InDet::DefectsEmulatorCondAlgImpl< StripDefectsEmulatorCondAlg >::m_idHelper
const T_ID * m_idHelper
Definition
DefectsEmulatorCondAlgImpl.h:60
InDet::StripDefectsEmulatorCondAlg
Conditions algorithms for emulating ITK strip defects.
Definition
StripDefectsEmulatorCondAlg.h:39
InDet::StripDefectsEmulatorCondAlg::IDName
static std::string IDName()
Name of the SCT_ID helper.
Definition
StripDefectsEmulatorCondAlg.h:53
InDet::StripDefectsEmulatorCondAlg::getModuleConnectionMap
std::unordered_multimap< unsigned int, unsigned int > getModuleConnectionMap(const InDetDD::SiDetectorElementCollection &det_ele_coll) const
Return the map which defines which modules are connected to the same sensor as a reference module.
Definition
StripDefectsEmulatorCondAlg.h:57
InDet::StripDefectsEmulatorCondAlg::isModuleDefect
bool isModuleDefect(const EventContext &ctx, unsigned int id_hash) const
Alternative method to declare strip modules as defect.
Definition
StripDefectsEmulatorCondAlg.h:63
InDet::StripDefectsEmulatorCondAlg::m_moduleVetoTool
ToolHandle< ISCT_ConditionsTool > m_moduleVetoTool
Definition
StripDefectsEmulatorCondAlg.h:49
InDet::StripDefectsEmulatorCondAlg::initialize
virtual StatusCode initialize() override final
Definition
StripDefectsEmulatorCondAlg.cxx:7
InDet::StripEmulatedDefects
Specialization of emulated defects conditions data for ITk strips Defect conditions data for defects ...
Definition
StripEmulatedDefects.h:15
InDet::StripModuleHelper
Helper class to convert between offline column, row and hardware chip, column, row coordinates.
Definition
StripModuleHelper.h:21
SCT_ID
This is an Identifier helper class for the SCT subdetector.
Definition
SCT_ID.h:68
InDet::ConnectedModulesUtil::createModuleConnectionMap
std::unordered_multimap< unsigned int, unsigned int > createModuleConnectionMap(const T_ID &id_helper, const InDetDD::SiDetectorElementCollection &det_ele_coll)
create a map between detector elements and all such elements connected the same sensor
Definition
ConnectedModulesUtil.h:28
InDet
Primary Vertex Finder.
Definition
VP1ErrorUtils.h:36
detail
Definition
extract_histogram_tag.cxx:14
InDet::detail::DetectorEmulatorCondAlgTraits< StripDefectsEmulatorCondAlg >::T_EmulatedDefects
InDet::StripEmulatedDefects T_EmulatedDefects
Definition
StripDefectsEmulatorCondAlg.h:28
InDet::detail::DetectorEmulatorCondAlgTraits< StripDefectsEmulatorCondAlg >::T_ModuleDesign
InDetDD::SCT_ModuleSideDesign T_ModuleDesign
Definition
StripDefectsEmulatorCondAlg.h:30
InDet::detail::DetectorEmulatorCondAlgTraits< StripDefectsEmulatorCondAlg >::T_ID
SCT_ID T_ID
Definition
StripDefectsEmulatorCondAlg.h:26
InDet::detail::DetectorEmulatorCondAlgTraits< StripDefectsEmulatorCondAlg >::T_ModuleHelper
StripModuleHelper T_ModuleHelper
Definition
StripDefectsEmulatorCondAlg.h:27
InDet::detail::DetectorEmulatorCondAlgTraits< StripDefectsEmulatorCondAlg >::T_DetectorElementCollection
InDetDD::SiDetectorElementCollection T_DetectorElementCollection
Definition
StripDefectsEmulatorCondAlg.h:29
InDet::detail::DetectorEmulatorCondAlgTraits
Definition
DefectsEmulatorCondAlgImpl.h:20
Generated on
for ATLAS Offline Software by
1.17.0