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
ParticleSmearing.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file ParticleSmearing.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 "
Acts/Utilities/Units.hpp
"
12
#include "
ActsExamples/Framework/BareAlgorithm.hpp
"
13
#include "
ActsExamples/Framework/RandomNumbers.hpp
"
14
15
#include <limits>
16
#include <string>
17
18
namespace
ActsExamples {
19
25
class
ParticleSmearing
final :
public
BareAlgorithm
{
26
public
:
27
struct
Config
{
29
std::string
inputParticles
;
31
std::string
outputTrackParameters
;
33
double
sigmaD0
= 30 *
Acts::UnitConstants::um
;
35
double
sigmaD0PtA
= 0 *
Acts::UnitConstants::um
;
36
double
sigmaD0PtB
= 1 /
Acts::UnitConstants::GeV
;
38
double
sigmaZ0
= 30 *
Acts::UnitConstants::um
;
40
double
sigmaZ0PtA
= 0 *
Acts::UnitConstants::um
;
41
double
sigmaZ0PtB
= 1 /
Acts::UnitConstants::GeV
;
43
double
sigmaT0
= 5 *
Acts::UnitConstants::ns
;
45
double
sigmaPhi
= 1 *
Acts::UnitConstants::degree
;
47
double
sigmaTheta
= 1 *
Acts::UnitConstants::degree
;
49
double
sigmaPRel
= 0.001;
51
std::shared_ptr<RandomNumbers>
randomNumbers
=
nullptr
;
52
};
53
54
ParticleSmearing
(
const
Config
& cfg,
Acts::Logging::Level
lvl);
55
56
ProcessCode
execute
(
const
AlgorithmContext
& ctx)
const
final
override
;
57
58
private
:
59
Config
m_cfg
;
60
};
61
62
}
// namespace ActsExamples
acts
blob
sPHENIX
Examples
Algorithms
TruthTracking
ActsExamples
TruthTracking
ParticleSmearing.hpp
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:24
using
1.8.2 with
EIC GitHub integration