ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
Acts
ActsMonitoring
src
SeedAnalysisAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef ACTSTRKANALYSIS_SEEDANALYSISALG_H
6
#define ACTSTRKANALYSIS_SEEDANALYSISALG_H
7
8
#include "
AthenaMonitoring/AthMonitorAlgorithm.h
"
9
#include "
TrkTruthData/PRD_MultiTruthCollection.h
"
10
11
#include "
InDetReadoutGeometry/SiDetectorElementCollection.h
"
12
#include "
xAODInDetMeasurement/PixelClusterContainer.h
"
13
#include "
xAODInDetMeasurement/StripClusterContainer.h
"
14
15
#include "
InDetPrepRawData/PixelClusterContainer.h
"
16
#include "
InDetPrepRawData/SCT_ClusterContainer.h
"
17
18
#include "
StoreGate/ReadCondHandleKey.h
"
19
#include "
StoreGate/ReadHandleKey.h
"
20
#include "
ActsEvent/SeedContainer.h
"
21
22
#include "
BeamSpotConditionsData/BeamSpotData.h
"
23
#include "
MagFieldConditions/AtlasFieldCacheCondObj.h
"
24
#include "
MagFieldElements/AtlasFieldCache.h
"
25
26
#include "GaudiKernel/ToolHandle.h"
27
#include "
ActsToolInterfaces/ITrackParamsEstimationTool.h
"
28
#include "
ActsGeometryInterfaces/ITrackingGeometrySvc.h
"
29
#include "
ActsGeometryInterfaces/IGeometryRealmConvTool.h
"
30
#include "
ActsEvent/ContextUtility.h
"
31
32
#include "
xAODEventInfo/EventInfo.h
"
33
34
namespace
ActsTrk
{
35
36
class
SeedAnalysisAlg
final :
37
public
AthMonitorAlgorithm
{
38
public
:
39
SeedAnalysisAlg
(
const
std::string& name, ISvcLocator* pSvcLocator);
40
virtual
~SeedAnalysisAlg
()
override
=
default
;
41
42
virtual
StatusCode
initialize
()
override
;
43
virtual
StatusCode
fillHistograms
(
const
EventContext& ctx)
const override
;
44
45
private
:
46
StatusCode
fillTruthHistograms
(
const
EventContext& ctx,
47
const
ActsTrk::SeedContainer
& seed_container,
48
std::vector<int>&,
49
std::vector<double>&)
const
;
50
51
const
Identifier
identify
(
const
xAOD::PixelCluster
&)
const
;
52
const
Identifier
identify
(
const
xAOD::StripCluster
&)
const
;
53
54
private
:
55
void
matchParticleToSeedClusters
(
const
PRD_MultiTruthCollection
* prdTruth,
56
const
Identifier
&
id
,
57
std::map<int, int>& countMap)
const
;
58
std::pair<int, double>
findSeedMajorityTruthParticle
(
const
std::map<int, int>& countMap)
const
;
59
60
std::array<float, 7>
estimateParameters
(
const
ActsTrk::Seed
& seed,
61
float
pTPerHelixRadius)
const
;
62
63
private
:
64
ToolHandle< ActsTrk::ITrackParamsEstimationTool >
m_paramEstimationTool
{
this
,
"TrackParamsEstimationTool"
,
""
,
"Track Param Estimation from Seeds"
};
65
66
PublicToolHandle<IGeometryRealmConvTool>
m_geometryConvTool
{
this
,
"GeometryRealmConvTool"
,
""
};
67
68
SG::ReadHandleKey< ActsTrk::SeedContainer >
m_inputSeedColletionKey
{
this
,
"InputSeedCollection"
,
""
,
""
};
69
ServiceHandle<ActsTrk::ITrackingGeometrySvc>
m_trackingGeometrySvc
{
this
,
"TrackingGeometrySvc"
,
"ActsTrackingGeometrySvc"
};
70
71
SG::ReadHandleKey< PRD_MultiTruthCollection >
m_prdTruth
{
this
,
"ITkClustersTruth"
,
""
,
""
};
72
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection >
m_detEleCollKey
{
this
,
"DetectorElements"
,
""
,
"Key of input SiDetectorElementCollection"
};
73
74
SG::ReadCondHandleKey< InDet::BeamSpotData >
m_beamSpotKey
{
this
,
"BeamSpotKey"
,
"BeamSpotData"
,
"SG key for beam spot"
};
75
SG::ReadCondHandleKey< AtlasFieldCacheCondObj >
m_fieldCondObjInputKey
{
this
,
"AtlasFieldCacheCondObj"
,
"fieldCondObj"
,
76
"Name of the Magnetic Field conditions object key"
};
77
78
Gaudi::Property< std::string >
m_monGroupName
79
{
this
,
"MonGroupName"
,
"ActsSeedAnalysisAlg"
};
80
81
Gaudi::Property< bool >
m_useTopSp
{
this
,
"useTopSp"
,
false
,
"Use top SP. By default, use bottom SP."
};
82
Gaudi::Property< bool >
m_usePixel
{
this
,
"UsePixel"
,
true
,
""
};
83
86
ContextUtility
m_ctxProvider
{
this
};
87
};
88
89
}
90
91
#endif
ITrackingGeometrySvc.h
AthMonitorAlgorithm.h
AtlasFieldCacheCondObj.h
AtlasFieldCache.h
BeamSpotData.h
ContextUtility.h
PixelClusterContainer.h
IGeometryRealmConvTool.h
ITrackParamsEstimationTool.h
PixelClusterContainer.h
PRD_MultiTruthCollection.h
ReadCondHandleKey.h
SCT_ClusterContainer.h
SeedContainer.h
SiDetectorElementCollection.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
StripClusterContainer.h
ActsTrk::ContextUtility
Utility class to handle the three contexts neeeded in an ACTS reconstruction job 1) GeometryContext -...
Definition
ContextUtility.h:27
ActsTrk::SeedAnalysisAlg::fillHistograms
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
Definition
SeedAnalysisAlg.cxx:48
ActsTrk::SeedAnalysisAlg::findSeedMajorityTruthParticle
std::pair< int, double > findSeedMajorityTruthParticle(const std::map< int, int > &countMap) const
Definition
SeedAnalysisAlg.cxx:361
ActsTrk::SeedAnalysisAlg::SeedAnalysisAlg
SeedAnalysisAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
SeedAnalysisAlg.cxx:20
ActsTrk::SeedAnalysisAlg::m_usePixel
Gaudi::Property< bool > m_usePixel
Definition
SeedAnalysisAlg.h:82
ActsTrk::SeedAnalysisAlg::fillTruthHistograms
StatusCode fillTruthHistograms(const EventContext &ctx, const ActsTrk::SeedContainer &seed_container, std::vector< int > &, std::vector< double > &) const
Definition
SeedAnalysisAlg.cxx:208
ActsTrk::SeedAnalysisAlg::m_paramEstimationTool
ToolHandle< ActsTrk::ITrackParamsEstimationTool > m_paramEstimationTool
Definition
SeedAnalysisAlg.h:64
ActsTrk::SeedAnalysisAlg::identify
const Identifier identify(const xAOD::PixelCluster &) const
Definition
SeedAnalysisAlg.cxx:305
ActsTrk::SeedAnalysisAlg::~SeedAnalysisAlg
virtual ~SeedAnalysisAlg() override=default
ActsTrk::SeedAnalysisAlg::matchParticleToSeedClusters
void matchParticleToSeedClusters(const PRD_MultiTruthCollection *prdTruth, const Identifier &id, std::map< int, int > &countMap) const
Definition
SeedAnalysisAlg.cxx:332
ActsTrk::SeedAnalysisAlg::estimateParameters
std::array< float, 7 > estimateParameters(const ActsTrk::Seed &seed, float pTPerHelixRadius) const
Definition
SeedAnalysisAlg.cxx:379
ActsTrk::SeedAnalysisAlg::m_prdTruth
SG::ReadHandleKey< PRD_MultiTruthCollection > m_prdTruth
Definition
SeedAnalysisAlg.h:71
ActsTrk::SeedAnalysisAlg::initialize
virtual StatusCode initialize() override
initialize
Definition
SeedAnalysisAlg.cxx:24
ActsTrk::SeedAnalysisAlg::m_trackingGeometrySvc
ServiceHandle< ActsTrk::ITrackingGeometrySvc > m_trackingGeometrySvc
Definition
SeedAnalysisAlg.h:69
ActsTrk::SeedAnalysisAlg::m_monGroupName
Gaudi::Property< std::string > m_monGroupName
Definition
SeedAnalysisAlg.h:79
ActsTrk::SeedAnalysisAlg::m_geometryConvTool
PublicToolHandle< IGeometryRealmConvTool > m_geometryConvTool
Definition
SeedAnalysisAlg.h:66
ActsTrk::SeedAnalysisAlg::m_fieldCondObjInputKey
SG::ReadCondHandleKey< AtlasFieldCacheCondObj > m_fieldCondObjInputKey
Definition
SeedAnalysisAlg.h:75
ActsTrk::SeedAnalysisAlg::m_inputSeedColletionKey
SG::ReadHandleKey< ActsTrk::SeedContainer > m_inputSeedColletionKey
Definition
SeedAnalysisAlg.h:68
ActsTrk::SeedAnalysisAlg::m_ctxProvider
ContextUtility m_ctxProvider
Auxiliary class to access the calibration context.
Definition
SeedAnalysisAlg.h:86
ActsTrk::SeedAnalysisAlg::m_beamSpotKey
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey
Definition
SeedAnalysisAlg.h:74
ActsTrk::SeedAnalysisAlg::m_detEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_detEleCollKey
Definition
SeedAnalysisAlg.h:72
ActsTrk::SeedAnalysisAlg::m_useTopSp
Gaudi::Property< bool > m_useTopSp
Definition
SeedAnalysisAlg.h:81
AthMonitorAlgorithm::AthMonitorAlgorithm
AthMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthMonitorAlgorithm.cxx:8
PRD_MultiTruthCollection
A PRD is mapped onto all contributing particles.
Definition
PRD_MultiTruthCollection.h:24
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection >
SG::ReadHandleKey< ActsTrk::SeedContainer >
ServiceHandle
Definition
ClusterMakerTool.h:36
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition
MdtCalibInput.h:31
Identifier
Definition
IdentifierFieldParser.cxx:14
xAOD::StripCluster
StripCluster_v1 StripCluster
Define the version of the strip cluster class.
Definition
StripCluster.h:13
xAOD::PixelCluster
PixelCluster_v1 PixelCluster
Define the version of the pixel cluster class.
Definition
Event/xAOD/xAODInDetMeasurement/xAODInDetMeasurement/PixelCluster.h:13
ActsTrk::SeedContainer
Definition
SeedContainer.h:67
ActsTrk::Seed
Definition
SeedContainer.h:44
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0