ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
Acts
ActsTrackReconstruction
src
ReFitterAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef ACTSGEOMETRY_REFITTERALG_H
6
#define ACTSGEOMETRY_REFITTERALG_H
7
8
// ATHENA
9
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
10
#include "GaudiKernel/ServiceHandle.h"
11
#include "Gaudi/Property.h"
/*no forward decl: typedef*/
12
#include "GaudiKernel/ISvcLocator.h"
13
#include "
TrkTrack/TrackCollection.h
"
14
#include "
TrkFitterInterfaces/ITrackFitter.h
"
15
#include "
StoreGate/ReadHandleKey.h
"
16
#include "
StoreGate/WriteHandleKey.h
"
17
18
// PACKAGE
19
#include "
ActsGeometry/ATLASMagneticFieldWrapper.h
"
20
21
// STL
22
#include <memory>
23
#include <vector>
24
#include <fstream>
25
#include <mutex>
26
27
class
EventContext;
28
29
namespace
ActsTrk
{
30
31
class
ReFitterAlg
:
public
AthReentrantAlgorithm
{
32
public
:
33
ReFitterAlg
(
const
std::string& name, ISvcLocator* pSvcLocator);
34
virtual
~ReFitterAlg
()
override
=
default
;
35
36
virtual
StatusCode
initialize
()
override
;
37
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
38
39
private
:
40
41
ToolHandle<Trk::ITrackFitter>
m_actsFitter
{
this
,
"ActsFitter"
,
""
,
"Choice of Acts Fitter (Kalman by default)"
};
42
// --- job options
43
SG::ReadHandleKey<TrackCollection>
m_trackName
{
this
,
"TrackName"
,
""
,
"Collection name for tracks to be refitted"
};
44
SG::WriteHandleKey<TrackCollection>
m_newTrackName
{
this
,
"NewTrackName"
,
""
,
"Collection name for output tracks"
};
45
46
mutable
std::mutex
m_writeMutex
{};
47
48
//Gaudi Property to choose from PRD or ROT measurment ReFit
49
Gaudi::Property<bool>
m_doReFitFromPRD
{
this
,
"DoReFitFromPRD"
,
false
,
"Do Refit From PRD instead of ROT"
};
50
};
51
52
}
// namespace
53
54
#endif
ATLASMagneticFieldWrapper.h
AthReentrantAlgorithm.h
ITrackFitter.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.
TrackCollection.h
ActsTrk::ReFitterAlg::m_actsFitter
ToolHandle< Trk::ITrackFitter > m_actsFitter
Definition
ReFitterAlg.h:41
ActsTrk::ReFitterAlg::~ReFitterAlg
virtual ~ReFitterAlg() override=default
ActsTrk::ReFitterAlg::m_doReFitFromPRD
Gaudi::Property< bool > m_doReFitFromPRD
Definition
ReFitterAlg.h:49
ActsTrk::ReFitterAlg::m_writeMutex
std::mutex m_writeMutex
Definition
ReFitterAlg.h:46
ActsTrk::ReFitterAlg::ReFitterAlg
ReFitterAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
ReFitterAlg.cxx:32
ActsTrk::ReFitterAlg::initialize
virtual StatusCode initialize() override
Definition
ReFitterAlg.cxx:36
ActsTrk::ReFitterAlg::m_newTrackName
SG::WriteHandleKey< TrackCollection > m_newTrackName
Definition
ReFitterAlg.h:44
ActsTrk::ReFitterAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
ReFitterAlg.cxx:46
ActsTrk::ReFitterAlg::m_trackName
SG::ReadHandleKey< TrackCollection > m_trackName
Definition
ReFitterAlg.h:43
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
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition
MdtCalibInput.h:31
Generated on
for ATLAS Offline Software by
1.17.0