ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetValidation
InDetDefectsEmulation
src
DefectsEmulatorAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef INDET_DEFECTSEMULATOR_H
5
#define INDET_DEFECTSEMULATOR_H
6
7
#include "
DefectsEmulatorBase.h
"
8
#include "
StoreGate/ReadHandleKey.h
"
9
#include "
StoreGate/WriteHandleKey.h
"
10
#include "
StoreGate/ReadCondHandleKey.h
"
11
12
13
namespace
InDet
{
14
template
<
class
T_RDO_Container>
15
struct
DefectsEmulatorTraits
;
16
22
template
<
class
T_RDO_Container>
23
class
DefectsEmulatorAlg
:
public
DefectsEmulatorBase
{
24
public
:
25
using
T_ID_Helper
=
DefectsEmulatorTraits<T_RDO_Container>::ID_Helper
;
36
using
T_ID_Adapter
=
DefectsEmulatorTraits<T_RDO_Container>::IDAdapter
;
37
using
T_DefectsData
=
DefectsEmulatorTraits<T_RDO_Container>::DefectsData
;
38
using
T_RDORawData
=
DefectsEmulatorTraits<T_RDO_Container>::RDORawData
;
39
using
T_ModuleHelper
=
DefectsEmulatorTraits<T_RDO_Container>::ModuleHelper
;
40
using
T_ModuleDesign
=
DefectsEmulatorTraits<T_RDO_Container>::ModuleDesign
;
41
42
static
constexpr
ActsTrk::DetectorType
DETECTOR_TYPE
=
DefectsEmulatorTraits<T_RDO_Container>::DETECTOR_TYPE
;
43
44
using
DefectsEmulatorBase::DefectsEmulatorBase
;
45
DefectsEmulatorAlg
&
operator=
(
const
DefectsEmulatorAlg
&) =
delete
;
46
47
virtual
StatusCode
initialize
()
override
;
48
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
49
50
protected
:
51
virtual
bool
setModuleData
(
const
ActsDetectorElement
&acts_detector_element,
52
ModuleIdentifierMatchUtil::ModuleData_t
&module_data)
const override
;
53
54
private
:
55
SG::ReadCondHandleKey<T_DefectsData>
m_emulatedDefects
56
{
this
,
"EmulatedDefectsKey"
,
""
};
57
SG::ReadHandleKey<T_RDO_Container>
m_origRdoContainerKey
58
{
this
,
"InputKey"
,
""
};
59
SG::WriteHandleKey<T_RDO_Container>
m_rdoOutContainerKey
60
{
this
,
"OutputKey"
,
""
};
61
Gaudi::Property<std::string>
m_idHelperName
62
{
this
,
"IDHelper"
,
""
};
63
64
T_ID_Helper
m_idHelper
{};
65
};
66
67
}
68
69
#include "
DefectsEmulatorAlg.icc
"
70
71
#endif
DefectsEmulatorAlg.icc
DefectsEmulatorBase.h
ReadCondHandleKey.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
ActsDetectorElement
Definition
ActsDetectorElement.h:58
InDet::DefectsEmulatorAlg
Algorithm template to selectivly copy RDOs from an InDetRawDataCollection.
Definition
DefectsEmulatorAlg.h:23
InDet::DefectsEmulatorAlg::T_ID_Adapter
DefectsEmulatorTraits< T_RDO_Container >::IDAdapter T_ID_Adapter
Adapter to support different types of RDO collections, and ID helpers.
Definition
DefectsEmulatorAlg.h:36
InDet::DefectsEmulatorAlg::DETECTOR_TYPE
static constexpr ActsTrk::DetectorType DETECTOR_TYPE
Definition
DefectsEmulatorAlg.h:42
InDet::DefectsEmulatorAlg::initialize
virtual StatusCode initialize() override
InDet::DefectsEmulatorAlg::m_idHelper
T_ID_Helper m_idHelper
Definition
DefectsEmulatorAlg.h:64
InDet::DefectsEmulatorAlg::T_DefectsData
DefectsEmulatorTraits< T_RDO_Container >::DefectsData T_DefectsData
Definition
DefectsEmulatorAlg.h:37
InDet::DefectsEmulatorAlg::setModuleData
virtual bool setModuleData(const ActsDetectorElement &acts_detector_element, ModuleIdentifierMatchUtil::ModuleData_t &module_data) const override
Set the module data for matching for the given detector element.
InDet::DefectsEmulatorAlg::T_ModuleDesign
DefectsEmulatorTraits< T_RDO_Container >::ModuleDesign T_ModuleDesign
Definition
DefectsEmulatorAlg.h:40
InDet::DefectsEmulatorAlg::T_ModuleHelper
DefectsEmulatorTraits< T_RDO_Container >::ModuleHelper T_ModuleHelper
Definition
DefectsEmulatorAlg.h:39
InDet::DefectsEmulatorAlg::T_ID_Helper
DefectsEmulatorTraits< T_RDO_Container >::ID_Helper T_ID_Helper
Definition
DefectsEmulatorAlg.h:25
InDet::DefectsEmulatorAlg::m_rdoOutContainerKey
SG::WriteHandleKey< T_RDO_Container > m_rdoOutContainerKey
Definition
DefectsEmulatorAlg.h:60
InDet::DefectsEmulatorAlg::T_RDORawData
DefectsEmulatorTraits< T_RDO_Container >::RDORawData T_RDORawData
Definition
DefectsEmulatorAlg.h:38
InDet::DefectsEmulatorAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
InDet::DefectsEmulatorAlg::m_origRdoContainerKey
SG::ReadHandleKey< T_RDO_Container > m_origRdoContainerKey
Definition
DefectsEmulatorAlg.h:58
InDet::DefectsEmulatorAlg::m_emulatedDefects
SG::ReadCondHandleKey< T_DefectsData > m_emulatedDefects
Definition
DefectsEmulatorAlg.h:56
InDet::DefectsEmulatorAlg::m_idHelperName
Gaudi::Property< std::string > m_idHelperName
Definition
DefectsEmulatorAlg.h:62
InDet::DefectsEmulatorAlg::operator=
DefectsEmulatorAlg & operator=(const DefectsEmulatorAlg &)=delete
InDet::DefectsEmulatorAlg::DefectsEmulatorBase
DefectsEmulatorBase(const std::string &name, ISvcLocator *pSvcLocator)
Definition
DefectsEmulatorBase.cxx:21
InDet::DefectsEmulatorBase::DefectsEmulatorBase
DefectsEmulatorBase(const std::string &name, ISvcLocator *pSvcLocator)
Definition
DefectsEmulatorBase.cxx:21
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
ActsTrk::DetectorType
DetectorType
Simple enum to Identify the Type of the ACTS sub detector.
Definition
GeometryDefs.h:25
InDet::ModuleIdentifierMatchUtil::ModuleData_t
std::array< int, ModuleIdentifierMatchUtil::kAllRows/2 > ModuleData_t
Definition
ModuleIdentifierMatchUtil.h:67
InDet
Primary Vertex Finder.
Definition
VP1ErrorUtils.h:36
InDet::DefectsEmulatorTraits
Definition
DefectsEmulatorAlg.h:15
Generated on
for ATLAS Offline Software by
1.17.0