Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
Analysis Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
blob
sPHENIX
Alignment
CI
cmake
Core
docs
Examples
Fatras
Plugins
Tests
Benchmarks
CommonHelpers
DownstreamProject
DownstreamProjectNodeps
IntegrationTests
UnitTests
Alignment
Benchmarks
Core
Examples
Fatras
Digitization
EventData
Kernel
Physics
Selectors
Dataset.hpp
KinematicCastsTests.cpp
ParticleSelectorsTests.cpp
SelectorHelpersTests.cpp
Plugins
acts-fatras
analysis
analysis_tpc_prototype
coresoftware
Doxygen_Assist
g4exampledetector
GenFit
JETSCAPE
KFParticle
macros
online_distribution
OnlMon
prototype
pythia6
rcdaq
RDBC
tutorials
doxygen_mainpage.h
File Members
Examples
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
#pragma once
10
11
#include <boost/test/data/test_case.hpp>
12
13
#include "
Acts/Definitions/PdgParticle.hpp
"
14
#include "
Acts/Definitions/Units.hpp
"
15
#include "
ActsFatras/EventData/Particle.hpp
"
16
17
namespace
Dataset {
18
19
using namespace
Acts::UnitLiterals;
20
21
ActsFatras::Particle
makeParticle
(
Acts::PdgParticle
pdg
,
double
z
,
double
eta
) {
22
const
auto
id
=
ActsFatras::Barcode
().
setVertexPrimary
(1).
setParticle
(1);
23
return
ActsFatras::Particle
(
id
, pdg)
24
.
setPosition4
(0.0, 0.0, z, 0.0)
25
.
setDirection
(1.0 / std::cosh(eta), 0.0, std::tanh(eta))
26
.
setAbsoluteMomentum
(1.5_GeV);
27
}
28
29
const
auto
centralElectron
=
30
makeParticle
(
Acts::PdgParticle::eElectron
, 0_mm, 0.0);
31
const
auto
centralPositron
=
32
makeParticle
(
Acts::PdgParticle::ePositron
, 0_mm, 0.0);
33
const
auto
centralMuon
=
makeParticle
(
Acts::PdgParticle::eMuon
, 0_mm, 0.0);
34
const
auto
centralAntiMuon
=
35
makeParticle
(
Acts::PdgParticle::eAntiMuon
, 0_mm, 0.0);
36
const
auto
backwardPion
=
37
makeParticle
(
Acts::PdgParticle::ePionMinus
, -100_mm, -4.5);
38
const
auto
centralPion
=
makeParticle
(
Acts::PdgParticle::ePionMinus
, 0_mm, 0.0);
39
const
auto
forwardPion
=
40
makeParticle
(
Acts::PdgParticle::ePionMinus
, 100_mm, 4.5);
41
const
auto
centralNeutron
=
42
makeParticle
(
Acts::PdgParticle::eNeutron
, 1_mm, 0.1);
43
44
}
// namespace Dataset
acts
blob
sPHENIX
Tests
UnitTests
Fatras
Selectors
Dataset.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:45
using
1.8.2 with
sPHENIX GitHub integration