EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
CKFPerformanceWriter.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file CKFPerformanceWriter.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 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/Units.hpp
"
12
#include "
ActsExamples/EventData/Track.hpp
"
13
#include "
ActsExamples/Framework/WriterT.hpp
"
14
#include "
ActsExamples/Validation/DuplicationPlotTool.hpp
"
15
#include "
ActsExamples/Validation/EffPlotTool.hpp
"
16
#include "
ActsExamples/Validation/FakeRatePlotTool.hpp
"
17
#include "
ActsExamples/Validation/TrackSummaryPlotTool.hpp
"
18
19
#include <mutex>
20
21
class
TFile;
22
class
TTree;
23
24
using namespace
Acts::UnitLiterals;
25
26
namespace
ActsExamples {
27
36
class
CKFPerformanceWriter
final :
public
WriterT
<TrajectoryContainer> {
37
public
:
38
struct
Config
{
40
std::string
inputParticles
;
42
std::string
inputTrajectories
;
44
std::string
outputDir
;
46
std::string outputFilename =
"performance_ckf.root"
;
48
EffPlotTool::Config
effPlotToolConfig
;
49
FakeRatePlotTool::Config
fakeRatePlotToolConfig
;
50
DuplicationPlotTool::Config
duplicationPlotToolConfig
;
51
TrackSummaryPlotTool::Config
trackSummaryPlotToolConfig
;
53
double
truthMatchProbMin = 0.5;
55
size_t
nMeasurementsMin = 9;
57
double
ptMin = 1_GeV;
58
};
59
61
CKFPerformanceWriter
(
Config
cfg,
Acts::Logging::Level
lvl);
62
~
CKFPerformanceWriter
()
override
;
63
65
ProcessCode
endRun() final override;
66
67
private:
68
ProcessCode
writeT(const
AlgorithmContext
& ctx,
69
const
TrajectoryContainer
& trajectories) final override;
70
71
Config
m_cfg;
73
std::mutex m_writeMutex;
74
TFile* m_outputFile{
nullptr
};
76
EffPlotTool
m_effPlotTool
;
77
EffPlotTool::EffPlotCache
m_effPlotCache
;
79
FakeRatePlotTool
m_fakeRatePlotTool
;
80
FakeRatePlotTool::FakeRatePlotCache
m_fakeRatePlotCache{};
82
DuplicationPlotTool
m_duplicationPlotTool
;
83
DuplicationPlotTool::DuplicationPlotCache
m_duplicationPlotCache{};
85
TrackSummaryPlotTool
m_trackSummaryPlotTool
;
86
TrackSummaryPlotTool::TrackSummaryPlotCache
m_trackSummaryPlotCache
;
87
};
88
89
}
// namespace ActsExamples
acts
blob
sPHENIX
Examples
Io
Performance
ActsExamples
Io
Performance
CKFPerformanceWriter.hpp
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:25
using
1.8.2 with
EIC GitHub integration