ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
Acts
ActsPatternRecognition
src
GenericSeedingAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef ACTSPATTERNRECOGNITION_GENERICSEEDINGALG_H
6
#define ACTSPATTERNRECOGNITION_GENERICSEEDINGALG_H
7
8
// Base Class
9
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
10
11
// Gaudi includes
12
#include "GaudiKernel/ToolHandle.h"
13
14
// Tools
15
#include "
ActsToolInterfaces/ITrackConverterTool.h
"
16
#include "
ActsToolInterfaces/ISeedingTool.h
"
17
18
// Athena
19
#include "
AthenaMonitoringKernel/GenericMonitoringTool.h
"
20
#include "
BeamSpotConditionsData/BeamSpotData.h
"
21
#include "
InDetReadoutGeometry/SiDetectorElementCollection.h
"
22
#include "
MagFieldConditions/AtlasFieldCacheCondObj.h
"
23
#include "
MagFieldElements/AtlasFieldCache.h
"
24
#include "
TrkSpacePoint/SpacePointContainer.h
"
25
26
// Handle Keys
27
#include "
ActsEvent/TrackParametersContainer.h
"
28
#include "
StoreGate/ReadCondHandleKey.h
"
29
#include "
StoreGate/ReadHandleKey.h
"
30
#include "
StoreGate/ReadHandleKeyArray.h
"
31
#include "
StoreGate/WriteHandleKey.h
"
32
33
namespace
ActsTrk
{
34
35
class
GenericSeedingAlg
:
public
AthReentrantAlgorithm
{
36
37
public
:
38
GenericSeedingAlg
(
const
std::string &name, ISvcLocator *pSvcLocator);
39
40
virtual
StatusCode
initialize
()
override
;
41
virtual
StatusCode
finalize
()
override
;
42
virtual
StatusCode
execute
(
const
EventContext &ctx)
const override
;
43
44
private
:
45
// Tool Handles
46
ToolHandle<ActsTrk::ISeedingTool>
m_seedsTool
{
this
,
"SeedTool"
,
""
,
47
"Seed Tool"
};
48
ToolHandle<GenericMonitoringTool>
m_monTool
{
this
,
"MonTool"
,
""
,
49
"Monitoring tool"
};
50
51
// Handle Keys
52
SG::ReadCondHandleKey<InDet::BeamSpotData>
m_beamSpotKey
{
53
this
,
"BeamSpotKey"
,
"BeamSpotData"
,
"SG key for beam spot"
};
54
SG::ReadCondHandleKey<AtlasFieldCacheCondObj>
m_fieldCondObjInputKey
{
55
this
,
"AtlasFieldCacheCondObj"
,
"fieldCondObj"
,
56
"Name of the Magnetic Field conditions object key"
};
57
58
SG::ReadHandleKeyArray<xAOD::SpacePointContainer>
m_spacePointKey
{
59
this
,
"InputSpacePoints"
, {},
"Input Space Points"
};
60
SG::WriteHandleKey<ActsTrk::SeedContainer>
m_seedKey
{
this
,
"OutputSeeds"
,
""
,
61
"Output Seeds"
};
62
63
Gaudi::Property<bool>
m_fastTracking
{
this
,
"useFastTracking"
,
false
};
64
Gaudi::Property<bool>
m_usePixel
{
this
,
"UsePixel"
,
true
};
65
66
public
:
67
enum
EStat
{
kNSpacepoints
,
kNSeeds
,
kNStat
};
68
69
private
:
70
mutable
std::array<std::atomic<unsigned int>,
kNStat
> m_stat
71
ATLAS_THREAD_SAFE
{};
72
};
73
74
}
// namespace ActsTrk
75
76
#endif
AthReentrantAlgorithm.h
AtlasFieldCacheCondObj.h
AtlasFieldCache.h
BeamSpotData.h
GenericMonitoringTool.h
ISeedingTool.h
ITrackConverterTool.h
ReadCondHandleKey.h
SiDetectorElementCollection.h
ReadHandleKeyArray.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.
TrackParametersContainer.h
SpacePointContainer.h
ActsTrk::GenericSeedingAlg::GenericSeedingAlg
GenericSeedingAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
GenericSeedingAlg.cxx:26
ActsTrk::GenericSeedingAlg::m_fieldCondObjInputKey
SG::ReadCondHandleKey< AtlasFieldCacheCondObj > m_fieldCondObjInputKey
Definition
GenericSeedingAlg.h:54
ActsTrk::GenericSeedingAlg::m_usePixel
Gaudi::Property< bool > m_usePixel
Definition
GenericSeedingAlg.h:64
ActsTrk::GenericSeedingAlg::finalize
virtual StatusCode finalize() override
Definition
GenericSeedingAlg.cxx:51
ActsTrk::GenericSeedingAlg::m_spacePointKey
SG::ReadHandleKeyArray< xAOD::SpacePointContainer > m_spacePointKey
Definition
GenericSeedingAlg.h:58
ActsTrk::GenericSeedingAlg::m_seedKey
SG::WriteHandleKey< ActsTrk::SeedContainer > m_seedKey
Definition
GenericSeedingAlg.h:60
ActsTrk::GenericSeedingAlg::m_monTool
ToolHandle< GenericMonitoringTool > m_monTool
Definition
GenericSeedingAlg.h:48
ActsTrk::GenericSeedingAlg::m_beamSpotKey
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey
Definition
GenericSeedingAlg.h:52
ActsTrk::GenericSeedingAlg::initialize
virtual StatusCode initialize() override
Definition
GenericSeedingAlg.cxx:30
ActsTrk::GenericSeedingAlg::EStat
EStat
Definition
GenericSeedingAlg.h:67
ActsTrk::GenericSeedingAlg::kNStat
@ kNStat
Definition
GenericSeedingAlg.h:67
ActsTrk::GenericSeedingAlg::kNSeeds
@ kNSeeds
Definition
GenericSeedingAlg.h:67
ActsTrk::GenericSeedingAlg::kNSpacepoints
@ kNSpacepoints
Definition
GenericSeedingAlg.h:67
ActsTrk::GenericSeedingAlg::ATLAS_THREAD_SAFE
std::array< std::atomic< unsigned int >, kNStat > m_stat ATLAS_THREAD_SAFE
Definition
GenericSeedingAlg.h:71
ActsTrk::GenericSeedingAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
GenericSeedingAlg.cxx:60
ActsTrk::GenericSeedingAlg::m_fastTracking
Gaudi::Property< bool > m_fastTracking
Definition
GenericSeedingAlg.h:63
ActsTrk::GenericSeedingAlg::m_seedsTool
ToolHandle< ActsTrk::ISeedingTool > m_seedsTool
Definition
GenericSeedingAlg.h:46
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition
MdtCalibInput.h:31
SG::ReadHandleKeyArray
HandleKeyArray< ReadHandle< T >, ReadHandleKey< T >, Gaudi::DataHandle::Reader > ReadHandleKeyArray
Definition
StoreGate/StoreGate/ReadHandleKeyArray.h:32
Generated on
for ATLAS Offline Software by
1.17.0