Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
common_bench
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
benchmarks
common_bench
Merge requests
!24
Added simple particle data map in particles.h
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Added simple particle data map in particles.h
particles
into
master
Overview
0
Commits
1
Pipelines
0
Changes
3
Merged
Whitney Armstrong
requested to merge
particles
into
master
3 years ago
Overview
0
Commits
1
Pipelines
0
Changes
3
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
f29d7a77
1 commit,
3 years ago
3 files
+
57
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
include/common_bench/particles.h
0 → 100644
+
41
−
0
Options
#ifndef COMMON_BENCH_PARTICLES_HH
#define COMMON_BENCH_PARTICLES_HH 1
#include
<map>
namespace
common_bench
{
struct
ParticleData
{
int
pdgCode
;
int
charge
;
double
mass
;
// std::string name;
};
using
ParticleMap
=
std
::
map
<
int
,
ParticleData
>
;
const
ParticleMap
particleMap
=
{
{
11
,
{
11
,
-
1
,
0.000510998928
}},
// e-
{
-
11
,
{
-
11
,
1
,
0.000510998928
}},
// e+
{
13
,
{
13
,
-
1
,
0.105658357
}},
// mu-
{
-
13
,
{
-
13
,
1
,
0.105658357
}},
// mu+
{
22
,
{
22
,
0
,
0.0
}},
// gamma
{
111
,
{
111
,
0
,
0.1349766
}},
// pi0
{
211
,
{
211
,
1
,
0.1395701
}},
// pi+
{
-
211
,
{
-
211
,
-
1
,
0.1395701
}},
// pi-
{
130
,
{
130
,
0
,
0.49767
}},
// K_L^0
{
310
,
{
310
,
0
,
0.49767
}},
// K_S^0
{
321
,
{
321
,
1
,
0.49360
}},
// K^+
{
-
321
,
{
-
321
,
-
1
,
0.49360
}},
// K^-
{
2212
,
{
2212
,
1
,
0.93827
}},
// p+
{
-
2212
,
{
-
2212
,
-
1
,
0.93827
}},
// p~-
{
2112
,
{
2112
,
0
,
0.93957
}},
// n0
{
1000010020
,
{
1000010020
,
1
,
1.87561
}},
// 1000010020 Deuterium
{
1000010030
,
{
1000010030
,
1
,
2.80925
}},
// 1000010030 Tritium
{
1000020030
,
{
1000020030
,
1
,
2.80923
}},
// 1000020030 He3
{
1000020040
,
{
1000020040
,
1
,
3.72742
}},
// 1000020040 Alpha-(He4)
};
}
// namespace common_bench
#endif
Loading