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
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-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/Material/Interactions.hpp
"
12
13
#include <random>
14
15
namespace
ActsFatras {
16
namespace
detail {
17
22
struct
Highland
{
31
template
<
typename
generator_t>
32
double
operator()
(generator_t &
generator
,
const
Acts::MaterialSlab
&slab,
33
Particle
&
particle
)
const
{
34
// compute the planar scattering angle
35
const
auto
theta0 =
Acts::computeMultipleScatteringTheta0
(
36
slab, particle.
absolutePdg
(), particle.
mass
(), particle.
qOverP
(),
37
particle.
absoluteCharge
());
38
// draw from the normal distribution representing the 3d angle distribution
39
return
std::normal_distribution<double>(0.0, M_SQRT2 * theta0)(generator);
40
}
41
};
42
43
}
// namespace detail
44
}
// namespace ActsFatras
acts
blob
sPHENIX
Fatras
include
ActsFatras
Physics
ElectroMagnetic
detail
Highland.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:41
using
1.8.2 with
sPHENIX GitHub integration