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
Commits
f29d7a77
Commit
f29d7a77
authored
3 years ago
by
Whitney Armstrong
Browse files
Options
Downloads
Patches
Plain Diff
Added simple particle data map in particles.h
parent
2b1661ca
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!24
Added simple particle data map in particles.h
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.clang-format
+15
-0
15 additions, 0 deletions
.clang-format
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
include/common_bench/particles.h
+41
-0
41 additions, 0 deletions
include/common_bench/particles.h
with
57 additions
and
0 deletions
.clang-format
0 → 100644
+
15
−
0
View file @
f29d7a77
---
BasedOnStyle: LLVM
BreakConstructorInitializersBeforeComma: true
ConstructorInitializerAllOnOneLineOrOnePerLine: true
Cpp11BracedListStyle: true
Standard: Cpp11
#SpaceBeforeParens: ControlStatements
SpaceAfterControlStatementKeyword: true
PointerBindsToType: true
IncludeBlocks: Preserve
UseTab: Never
ColumnLimit: 120
NamespaceIndentation: Inner
AlignConsecutiveAssignments: true
...
This diff is collapsed.
Click to expand it.
.gitignore
0 → 100644
+
1
−
0
View file @
f29d7a77
doc/docs/*
This diff is collapsed.
Click to expand it.
include/common_bench/particles.h
0 → 100644
+
41
−
0
View file @
f29d7a77
#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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment