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
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/Definitions/Units.hpp
"
12
#include "
Acts/EventData/ParticleHypothesis.hpp
"
13
#include "
Acts/Utilities/Logger.hpp
"
14
#include "
ActsExamples/EventData/SimParticle.hpp
"
15
#include "
ActsExamples/EventData/Track.hpp
"
16
#include "
ActsExamples/Framework/DataHandle.hpp
"
17
#include "
ActsExamples/Framework/IAlgorithm.hpp
"
18
#include "
ActsExamples/Framework/ProcessCode.hpp
"
19
#include "
ActsExamples/Framework/RandomNumbers.hpp
"
20
21
#include <array>
22
#include <limits>
23
#include <memory>
24
#include <optional>
25
#include <string>
26
27
namespace
ActsExamples {
28
class
RandomNumbers;
29
struct
AlgorithmContext;
30
37
class
ParticleSmearing
final :
public
IAlgorithm
{
38
public
:
39
struct
Config
{
41
std::string
inputParticles
;
43
std::string
outputTrackParameters
;
45
double
sigmaD0
= 20 *
Acts::UnitConstants::um
;
47
double
sigmaD0PtA
= 30 *
Acts::UnitConstants::um
;
48
double
sigmaD0PtB
= 0.3 /
Acts::UnitConstants::GeV
;
50
double
sigmaZ0
= 20 *
Acts::UnitConstants::um
;
52
double
sigmaZ0PtA
= 30 *
Acts::UnitConstants::um
;
53
double
sigmaZ0PtB
= 0.3 /
Acts::UnitConstants::GeV
;
55
double
sigmaT0
= 1 *
Acts::UnitConstants::ns
;
57
double
sigmaPhi
= 1 *
Acts::UnitConstants::degree
;
59
double
sigmaTheta
= 1 *
Acts::UnitConstants::degree
;
61
double
sigmaPRel
= 0.05;
64
std::optional<std::array<double, 6>>
initialSigmas
= std::nullopt;
66
std::array<double, 6>
initialVarInflation
= {1., 1., 1., 1., 1., 1.};
68
std::shared_ptr<const RandomNumbers>
randomNumbers
=
nullptr
;
70
std::optional<Acts::ParticleHypothesis>
particleHypothesis
= std::nullopt;
71
};
72
73
ParticleSmearing
(
const
Config
&
config
,
Acts::Logging::Level
level
);
74
75
ProcessCode
execute
(
const
AlgorithmContext
& ctx)
const override
;
76
78
const
Config
&
config
()
const
{
return
m_cfg
; }
79
80
private
:
81
Config
m_cfg
;
82
83
ReadDataHandle<SimParticleContainer>
m_inputParticles
{
this
,
"InputParticles"
};
84
85
WriteDataHandle<TrackParametersContainer>
m_outputTrackParameters
{
86
this
,
"OutputTrackParameters"
};
87
};
88
89
}
// namespace ActsExamples
acts
blob
sPHENIX
Examples
Algorithms
TruthTracking
ActsExamples
TruthTracking
ParticleSmearing.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:37
using
1.8.2 with
sPHENIX GitHub integration