ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetValidation
InDetDefectsEmulation
src
DefectsEmulatorCondAlgImpl.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
7
#ifndef INDET_DEFECTSEMULATORCONDALGIMPL_H
8
#define INDET_DEFECTSEMULATORCONDALGIMPL_H
9
10
#include "
DefectsEmulatorCondAlgBase.h
"
11
#include "
StoreGate/WriteHandleKey.h
"
12
#include "
StoreGate/ReadCondHandleKey.h
"
13
14
#include "
InDetReadoutGeometry/SiDetectorElementCollection.h
"
15
16
namespace
InDet
{
17
18
namespace
detail
{
19
template
<
class
T_Derived>
20
struct
DetectorEmulatorCondAlgTraits
{
21
using
T_ID
= T_Derived::T_ID;
22
using
T_ModuleHelper
= T_Derived::T_ModuleHelper;
23
using
T_EmulatedDefects
= T_Derived::T_EmulatedDefects;
24
using
T_DetectorElementCollection
=
InDetDD::SiDetectorElementCollection
;
25
using
T_ModuleDesign
= T_Derived::T_ModuleDesign;
26
};
27
}
28
33
template
<
class
T_Derived>
34
class
DefectsEmulatorCondAlgImpl
:
public
DefectsEmulatorCondAlgBase
35
{
36
public
:
37
using
T_ID
=
detail::DetectorEmulatorCondAlgTraits<T_Derived>::T_ID
;
38
using
T_ModuleHelper
=
detail::DetectorEmulatorCondAlgTraits<T_Derived>::T_ModuleHelper
;
39
using
T_EmulatedDefects
=
detail::DetectorEmulatorCondAlgTraits<T_Derived>::T_EmulatedDefects
;
40
using
T_DetectorElementCollection
=
detail::DetectorEmulatorCondAlgTraits<T_Derived>::T_DetectorElementCollection
;
41
using
T_ModuleDesign
=
detail::DetectorEmulatorCondAlgTraits<T_Derived>::T_ModuleDesign
;
42
43
using
DefectsEmulatorCondAlgBase::DefectsEmulatorCondAlgBase
;
44
45
virtual
StatusCode
initialize
()
override
;
46
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
47
48
protected
:
49
const
T_Derived &
derived
()
const
{
return
*
static_cast<
const
T_Derived *
>
(
this
); }
50
51
SG::ReadCondHandleKey<T_DetectorElementCollection>
m_detEleCollKey
52
{
this
,
"DetEleCollKey"
,
""
,
"Key of SiDetectorElementCollection"
};
53
54
SG::WriteCondHandleKey<T_EmulatedDefects>
m_writeKey
55
{
this
,
"WriteKey"
,
""
,
"Key of output emulated defect conditions data"
};
56
57
Gaudi::Property<std::string>
m_idName
58
{
this
,
"IDName"
,
""
,
"Name of the ID tool to decode identifiers"
};
59
60
const
T_ID
*
m_idHelper
=
nullptr
;
61
62
};
63
}
64
65
#include "
DefectsEmulatorCondAlgImpl.icc
"
66
#endif
DefectsEmulatorCondAlgBase.h
DefectsEmulatorCondAlgImpl.icc
ReadCondHandleKey.h
SiDetectorElementCollection.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
InDetDD::SiDetectorElementCollection
Class to hold the SiDetectorElement objects to be put in the detector store.
Definition
SiDetectorElementCollection.h:27
InDet::DefectsEmulatorCondAlgBase::DefectsEmulatorCondAlgBase
DefectsEmulatorCondAlgBase(const std::string &name, ISvcLocator *pSvcLocator)
Definition
DefectsEmulatorCondAlgBase.cxx:23
InDet::DefectsEmulatorCondAlgImpl
Conditions algorithms for emulating ITK pixel or strip defects.
Definition
DefectsEmulatorCondAlgImpl.h:35
InDet::DefectsEmulatorCondAlgImpl::initialize
virtual StatusCode initialize() override
InDet::DefectsEmulatorCondAlgImpl::T_ID
detail::DetectorEmulatorCondAlgTraits< T_Derived >::T_ID T_ID
Definition
DefectsEmulatorCondAlgImpl.h:37
InDet::DefectsEmulatorCondAlgImpl::m_idHelper
const T_ID * m_idHelper
Definition
DefectsEmulatorCondAlgImpl.h:60
InDet::DefectsEmulatorCondAlgImpl::T_DetectorElementCollection
detail::DetectorEmulatorCondAlgTraits< T_Derived >::T_DetectorElementCollection T_DetectorElementCollection
Definition
DefectsEmulatorCondAlgImpl.h:40
InDet::DefectsEmulatorCondAlgImpl::DefectsEmulatorCondAlgBase
DefectsEmulatorCondAlgBase(const std::string &name, ISvcLocator *pSvcLocator)
Definition
DefectsEmulatorCondAlgBase.cxx:23
InDet::DefectsEmulatorCondAlgImpl::execute
virtual StatusCode execute(const EventContext &ctx) const override
InDet::DefectsEmulatorCondAlgImpl::T_ModuleDesign
detail::DetectorEmulatorCondAlgTraits< T_Derived >::T_ModuleDesign T_ModuleDesign
Definition
DefectsEmulatorCondAlgImpl.h:41
InDet::DefectsEmulatorCondAlgImpl::T_ModuleHelper
detail::DetectorEmulatorCondAlgTraits< T_Derived >::T_ModuleHelper T_ModuleHelper
Definition
DefectsEmulatorCondAlgImpl.h:38
InDet::DefectsEmulatorCondAlgImpl::m_writeKey
SG::WriteCondHandleKey< T_EmulatedDefects > m_writeKey
Definition
DefectsEmulatorCondAlgImpl.h:55
InDet::DefectsEmulatorCondAlgImpl::derived
const T_Derived & derived() const
Definition
DefectsEmulatorCondAlgImpl.h:49
InDet::DefectsEmulatorCondAlgImpl::T_EmulatedDefects
detail::DetectorEmulatorCondAlgTraits< T_Derived >::T_EmulatedDefects T_EmulatedDefects
Definition
DefectsEmulatorCondAlgImpl.h:39
InDet::DefectsEmulatorCondAlgImpl::m_detEleCollKey
SG::ReadCondHandleKey< T_DetectorElementCollection > m_detEleCollKey
Definition
DefectsEmulatorCondAlgImpl.h:52
InDet::DefectsEmulatorCondAlgImpl::m_idName
Gaudi::Property< std::string > m_idName
Definition
DefectsEmulatorCondAlgImpl.h:58
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
SG::WriteCondHandleKey
Definition
WriteCondHandleKey.h:22
InDet
Primary Vertex Finder.
Definition
VP1ErrorUtils.h:36
detail
Definition
extract_histogram_tag.cxx:14
InDet::detail::DetectorEmulatorCondAlgTraits
Definition
DefectsEmulatorCondAlgImpl.h:20
InDet::detail::DetectorEmulatorCondAlgTraits::T_EmulatedDefects
T_Derived::T_EmulatedDefects T_EmulatedDefects
Definition
DefectsEmulatorCondAlgImpl.h:23
InDet::detail::DetectorEmulatorCondAlgTraits::T_ModuleHelper
T_Derived::T_ModuleHelper T_ModuleHelper
Definition
DefectsEmulatorCondAlgImpl.h:22
InDet::detail::DetectorEmulatorCondAlgTraits::T_ModuleDesign
T_Derived::T_ModuleDesign T_ModuleDesign
Definition
DefectsEmulatorCondAlgImpl.h:25
InDet::detail::DetectorEmulatorCondAlgTraits::T_ID
T_Derived::T_ID T_ID
Definition
DefectsEmulatorCondAlgImpl.h:21
InDet::detail::DetectorEmulatorCondAlgTraits::T_DetectorElementCollection
InDetDD::SiDetectorElementCollection T_DetectorElementCollection
Definition
DefectsEmulatorCondAlgImpl.h:24
Generated on
for ATLAS Offline Software by
1.17.0