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
ECCE @ EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
blob
master
CI
Core
doc
Examples
Fatras
Plugins
Tests
Benchmarks
CommonHelpers
IntegrationTests
UnitTests
Benchmarks
Core
Fatras
EventData
Kernel
Physics
Selectors
ChargeSelectorsTests.cpp
Dataset.hpp
KinematicCastsTests.cpp
LimitSelectorsTests.cpp
PdgSelectorsTests.cpp
SelectorHelpersTests.cpp
Utilities
Plugins
thirdparty
analysis
coresoftware
Doxygen_Assist
ecce-detectors
fun4all_eicdetectors
geant4
macros
online_distribution
tutorials
doxygen_mainpage.h
File Members
External Links
•
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
master
Tests
UnitTests
Fatras
Selectors
Dataset.hpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:27
using
1.8.2 with
ECCE GitHub integration