Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
TrackFitterPerformanceWriter.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TrackFitterPerformanceWriter.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2019-2020 CERN for the benefit of the Acts project
4
//
5
// This Source Code Form is subject to the terms of the Mozilla Public
6
// License, v. 2.0. If a copy of the MPL was not distributed with this
7
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
9
#pragma once
10
11
#include "
Acts/Utilities/Logger.hpp
"
12
#include "
ActsExamples/EventData/Index.hpp
"
13
#include "
ActsExamples/EventData/SimParticle.hpp
"
14
#include "
ActsExamples/EventData/Trajectories.hpp
"
15
#include "
ActsExamples/Framework/DataHandle.hpp
"
16
#include "
ActsExamples/Framework/ProcessCode.hpp
"
17
#include "
ActsExamples/Framework/WriterT.hpp
"
18
#include "
ActsExamples/Validation/EffPlotTool.hpp
"
19
#include "
ActsExamples/Validation/ResPlotTool.hpp
"
20
#include "
ActsExamples/Validation/TrackSummaryPlotTool.hpp
"
21
22
#include <mutex>
23
#include <string>
24
25
class
TFile;
26
class
TTree;
27
namespace
ActsFatras {
28
class
Barcode;
29
}
// namespace ActsFatras
30
31
namespace
ActsExamples {
32
struct
AlgorithmContext;
33
42
class
TrackFitterPerformanceWriter
final
43
:
public
WriterT
<TrajectoriesContainer> {
44
public
:
45
using
HitParticlesMap
=
IndexMultimap<ActsFatras::Barcode>
;
46
47
struct
Config
{
49
std::string
inputTrajectories
;
51
std::string
inputParticles
;
53
std::string
inputMeasurementParticlesMap
;
55
std::string
filePath
=
"performance_track_fitter.root"
;
57
ResPlotTool::Config
resPlotToolConfig
;
58
EffPlotTool::Config
effPlotToolConfig
;
59
TrackSummaryPlotTool::Config
trackSummaryPlotToolConfig
;
60
};
61
65
TrackFitterPerformanceWriter
(
Config
config
,
Acts::Logging::Level
level
);
66
67
~TrackFitterPerformanceWriter
()
override
;
68
70
ProcessCode
finalize
()
override
;
71
73
const
Config
&
config
()
const
{
return
m_cfg
; }
74
75
private
:
76
ProcessCode
writeT
(
const
AlgorithmContext
& ctx,
77
const
TrajectoriesContainer
& trajectories)
override
;
78
79
Config
m_cfg
;
80
81
ReadDataHandle<SimParticleContainer>
m_inputParticles
{
this
,
"InputParticles"
};
82
ReadDataHandle<HitParticlesMap>
m_inputMeasurementParticlesMap
{
83
this
,
"inputMeasurementParticlesMap"
};
84
86
std::mutex
m_writeMutex
;
87
TFile*
m_outputFile
{
nullptr
};
89
ResPlotTool
m_resPlotTool
;
90
ResPlotTool::ResPlotCache
m_resPlotCache
;
92
EffPlotTool
m_effPlotTool
;
93
EffPlotTool::EffPlotCache
m_effPlotCache
;
95
TrackSummaryPlotTool
m_trackSummaryPlotTool
;
96
TrackSummaryPlotTool::TrackSummaryPlotCache
m_trackSummaryPlotCache
{};
97
};
98
99
}
// namespace ActsExamples
acts
blob
sPHENIX
Examples
Io
Performance
ActsExamples
Io
Performance
TrackFitterPerformanceWriter.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:38
using
1.8.2 with
sPHENIX GitHub integration