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
Highland.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file Highland.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2018-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 <random>
12
13
#include "
Acts/Material/Interactions.hpp
"
14
#include "
ActsFatras/Physics/Scattering/detail/Scattering.hpp
"
15
16
namespace
ActsFatras {
17
namespace
detail {
18
23
struct
Highland
{
32
template
<
typename
generator_t>
33
double
operator()
(generator_t &
generator
,
34
const
Acts::MaterialProperties
&slab,
35
Particle
&
particle
)
const
{
36
// compute the planar scattering angle
37
const
auto
theta0 =
Acts::computeMultipleScatteringTheta0
(
38
slab, particle.
pdg
(), particle.
mass
(),
39
particle.
charge
() / particle.
absMomentum
(), particle.
charge
());
40
// draw from the normal distribution representing the 3d angle distribution
41
return
std::normal_distribution<double>(0.0, M_SQRT2 * theta0)(generator);
42
}
43
};
44
45
}
// namespace detail
46
47
using
HighlandScattering
=
detail::Scattering<detail::Highland>
;
48
49
}
// namespace ActsFatras
acts
blob
master
Fatras
include
ActsFatras
Physics
Scattering
Highland.hpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:25
using
1.8.2 with
ECCE GitHub integration