ECCE @ EIC Software
Reference for
ECCE @ 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
TruthVerticesToTracks.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TruthVerticesToTracks.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2019 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 <map>
12
#include <memory>
13
14
#include "
ACTFW/EventData/SimVertex.hpp
"
15
#include "
ACTFW/Framework/BareAlgorithm.hpp
"
16
#include "
ACTFW/Framework/ProcessCode.hpp
"
17
#include "
ACTFW/Framework/RandomNumbers.hpp
"
18
#include "
ACTFW/TruthTracking/VertexAndTracks.hpp
"
19
#include "
Acts/EventData/TrackParameters.hpp
"
20
#include "
Acts/MagneticField/ConstantBField.hpp
"
21
#include "
Acts/Utilities/Definitions.hpp
"
22
#include "
Acts/Utilities/Logger.hpp
"
23
#include "
Acts/Utilities/Units.hpp
"
24
25
using namespace
Acts::UnitLiterals;
26
27
namespace
FW {
28
33
class
TruthVerticesToTracksAlgorithm
:
public
BareAlgorithm
{
34
public
:
36
struct
Config
{
38
std::string input =
""
;
40
std::string output =
""
;
41
43
std::shared_ptr<RandomNumbers> randomNumberSvc =
nullptr
;
44
46
Acts::Vector3D
bField
;
47
50
Acts::Vector3D
refPosition = Acts::Vector3D::Zero();
51
53
bool
doSmearing =
true
;
54
57
double
ipResA = 30
_um
;
58
double
ipResB = 0.3 / 1
_GeV
;
59
double
ipResC = 20
_um
;
60
62
double
angRes = 0.05;
64
double
qpRelRes = 0.001;
65
};
66
71
TruthVerticesToTracksAlgorithm
(
72
const
Config
& cfg,
Acts::Logging::Level
level =
Acts::Logging::INFO
);
73
78
ProcessCode
execute
(
const
AlgorithmContext
&
context
)
const
final
override
;
79
80
private
:
82
Config
m_cfg
;
83
88
void
correctPhiThetaPeriodicity(
double
& phiIn,
double
& thetaIn)
const
;
89
};
90
91
}
// namespace FW
acts
blob
master
Examples
Algorithms
TruthTracking
ACTFW
TruthTracking
TruthVerticesToTracks.hpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:23
using
1.8.2 with
ECCE GitHub integration