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
Dataset.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file Dataset.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 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
#include <boost/test/data/test_case.hpp>
10
11
#include "
Acts/Utilities/PdgParticle.hpp
"
12
#include "
Acts/Utilities/Units.hpp
"
13
#include "
ActsFatras/EventData/Particle.hpp
"
14
15
namespace
Dataset {
16
17
using namespace
Acts::UnitLiterals;
18
19
ActsFatras::Particle
makeParticle
(
Acts::PdgParticle
pdg
,
double
z
,
double
eta
) {
20
const
auto
id
=
ActsFatras::Barcode
().
setVertexPrimary
(1).
setParticle
(1);
21
return
ActsFatras::Particle
(
id
, pdg)
22
.setPosition4(0.0, 0.0, z, 0.0)
23
.setDirection(1.0 / std::cosh(eta), 0.0, std::tanh(eta))
24
.setAbsMomentum(1.5_GeV);
25
}
26
27
const
auto
centralElectron
=
28
makeParticle
(
Acts::PdgParticle::eElectron
, 0_mm, 0.0);
29
const
auto
centralPositron
=
30
makeParticle
(
Acts::PdgParticle::ePositron
, 0_mm, 0.0);
31
const
auto
centralMuon
=
makeParticle
(
Acts::PdgParticle::eMuon
, 0_mm, 0.0);
32
const
auto
centralAntiMuon
=
33
makeParticle
(
Acts::PdgParticle::eAntiMuon
, 0_mm, 0.0);
34
const
auto
backwardPion
=
35
makeParticle
(
Acts::PdgParticle::ePionMinus
, -100_mm, -4.5);
36
const
auto
centralPion
=
makeParticle
(
Acts::PdgParticle::ePionMinus
, 0_mm, 0.0);
37
const
auto
forwardPion
=
38
makeParticle
(
Acts::PdgParticle::ePionMinus
, 100_mm, 4.5);
39
const
auto
centralNeutron
=
40
makeParticle
(
Acts::PdgParticle::eNeutron
, 1_mm, 0.1);
41
42
}
// namespace Dataset
acts
blob
sPHENIX
Tests
UnitTests
Fatras
Selectors
Dataset.hpp
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:28
using
1.8.2 with
EIC GitHub integration