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
FatrasSimulation.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file FatrasSimulation.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2017-2021 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/Geometry/TrackingGeometry.hpp
"
13
#include "
Acts/Utilities/Logger.hpp
"
14
#include "
ActsExamples/EventData/SimHit.hpp
"
15
#include "
ActsExamples/EventData/SimParticle.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
#include "
ActsExamples/MagneticField/MagneticField.hpp
"
21
#include "
ActsFatras/Physics/NuclearInteraction/NuclearInteraction.hpp
"
22
23
#include <cstddef>
24
#include <memory>
25
#include <string>
26
27
namespace
Acts {
28
class
MagneticFieldProvider;
29
class
TrackingGeometry
;
30
}
// namespace Acts
31
32
namespace
ActsExamples {
33
class
RandomNumbers;
34
struct
AlgorithmContext;
35
36
namespace
detail {
37
struct
FatrasSimulation
;
38
}
39
41
class
FatrasSimulation
final :
public
IAlgorithm
{
42
public
:
43
struct
Config
{
45
std::string
inputParticles
;
47
std::string
outputParticlesInitial
;
49
std::string
outputParticlesFinal
;
51
std::string
outputSimHits
;
53
std::string
imputParametrisationNuclearInteraction
=
54
"nuclearInteractionParameters"
;
56
std::shared_ptr<const RandomNumbers>
randomNumbers
;
58
std::shared_ptr<const Acts::TrackingGeometry>
trackingGeometry
;
60
std::shared_ptr<const Acts::MagneticFieldProvider>
magneticField
;
61
62
// tuning parameters
64
double
pMin
= 0.5 *
Acts::UnitConstants::GeV
;
66
bool
emScattering
=
true
;
68
bool
emEnergyLossIonisation
=
true
;
70
bool
emEnergyLossRadiation
=
true
;
72
bool
emPhotonConversion
=
true
;
74
bool
generateHitsOnSensitive
=
true
;
76
bool
generateHitsOnMaterial
=
false
;
79
bool
generateHitsOnPassive
=
false
;
80
86
size_t
averageHitsPerParticle
= 16
u
;
87
};
88
93
FatrasSimulation
(
Config
cfg
,
Acts::Logging::Level
lvl);
94
~FatrasSimulation
()
override
;
95
99
ActsExamples::ProcessCode
execute
(
const
AlgorithmContext
& ctx)
const override
;
100
102
const
Config
&
config
()
const
{
return
m_cfg
; }
103
104
ReadDataHandle<SimParticleContainer>
m_inputParticles
{
this
,
"InputParticles"
};
105
106
WriteDataHandle<SimHitContainer>
m_outputSimHits
{
this
,
"OutputSimHits"
};
107
108
WriteDataHandle<SimParticleContainer>
m_outputParticlesInitial
{
109
this
,
"OutputParticlesInitial"
};
110
WriteDataHandle<SimParticleContainer>
m_outputParticlesFinal
{
111
this
,
"OutputParticlesFinal"
};
112
113
private
:
114
Config
m_cfg
;
115
std::unique_ptr<detail::FatrasSimulation>
m_sim
;
116
};
117
118
}
// namespace ActsExamples
acts
blob
sPHENIX
Examples
Algorithms
Fatras
include
ActsExamples
Fatras
FatrasSimulation.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:36
using
1.8.2 with
sPHENIX GitHub integration