ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkAlgorithms
TrkTrackCollectionMerger
TrkTrackCollectionMerger
AddTrackSummaryAlg.h
Go to the documentation of this file.
1
// Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
3
#ifndef ADDTRACKSUMMARYALG_H
4
#define ADDTRACKSUMMARYALG_H
5
6
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
7
#include "
TrkToolInterfaces/ITrackSummaryTool.h
"
8
#include "
TrkTrack/TrackCollection.h
"
9
#include "
AthContainers/ConstDataVector.h
"
10
#include "
StoreGate/ReadHandleKey.h
"
11
#include "
StoreGate/WriteHandleKey.h
"
12
#include "GaudiKernel/ToolHandle.h"
13
14
namespace
Trk
{
15
24
class
AddTrackSummaryAlg
:
public
AthReentrantAlgorithm
{
25
public
:
26
AddTrackSummaryAlg
(
const
std::string& name, ISvcLocator* pSvcLocator);
27
virtual
~AddTrackSummaryAlg
() =
default
;
28
29
virtual
StatusCode
initialize
()
override
;
30
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
31
32
private
:
34
SG::ReadHandleKey<TrackCollection>
m_inputTrackCollection
{
35
this
,
"InputTrackCollection"
,
""
,
"Input track collection to add summaries to"
};
36
38
SG::WriteHandleKey<ConstDataVector<TrackCollection>
>
m_outputTrackCollection
{
39
this
,
"OutputTrackCollection"
,
""
,
"Output track collection with summaries added"
};
40
42
ToolHandle<Trk::ITrackSummaryTool>
m_trackSummaryTool
{
43
this
,
"TrackSummaryTool"
,
""
,
"Track summary tool"
};
44
45
//Make AddTrackSummaryAlg only run for pileup tracks that could possibly pass the extension/scoring preselection
46
Gaudi::Property<float>
m_minPt
{
this
,
"MinPt"
, 0.0,
"Only add summary if pT > MinPt [MeV]"
};
47
Gaudi::Property<float>
m_maxAbsEta
{
this
,
"MaxAbsEta"
, 99.0,
"Only add summary if |eta| < MaxAbsEta"
};
48
};
49
50
}
// namespace Trk
51
52
#endif
// ADDTRACKSUMMARYALG_H
53
AthReentrantAlgorithm.h
ConstDataVector.h
DataVector adapter that acts like it holds const pointers.
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.
TrackCollection.h
ITrackSummaryTool.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
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
Trk::AddTrackSummaryAlg::AddTrackSummaryAlg
AddTrackSummaryAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
AddTrackSummaryAlg.cxx:7
Trk::AddTrackSummaryAlg::initialize
virtual StatusCode initialize() override
Definition
AddTrackSummaryAlg.cxx:11
Trk::AddTrackSummaryAlg::m_outputTrackCollection
SG::WriteHandleKey< ConstDataVector< TrackCollection > > m_outputTrackCollection
Output track collection with summaries added.
Definition
AddTrackSummaryAlg.h:38
Trk::AddTrackSummaryAlg::~AddTrackSummaryAlg
virtual ~AddTrackSummaryAlg()=default
Trk::AddTrackSummaryAlg::m_minPt
Gaudi::Property< float > m_minPt
Definition
AddTrackSummaryAlg.h:46
Trk::AddTrackSummaryAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
AddTrackSummaryAlg.cxx:25
Trk::AddTrackSummaryAlg::m_inputTrackCollection
SG::ReadHandleKey< TrackCollection > m_inputTrackCollection
Input track collection (read-only).
Definition
AddTrackSummaryAlg.h:34
Trk::AddTrackSummaryAlg::m_maxAbsEta
Gaudi::Property< float > m_maxAbsEta
Definition
AddTrackSummaryAlg.h:47
Trk::AddTrackSummaryAlg::m_trackSummaryTool
ToolHandle< Trk::ITrackSummaryTool > m_trackSummaryTool
Track summary tool.
Definition
AddTrackSummaryAlg.h:42
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
Generated on
for ATLAS Offline Software by
1.17.0