IAP GITLAB

Skip to content
Snippets Groups Projects
Commit b3c58ca1 authored by Fan Hu's avatar Fan Hu
Browse files

do clang format

parent f7582114
No related branches found
No related tags found
1 merge request!403Book kinetic energy in ParticleCut
Pipeline #5604 failed
...@@ -108,9 +108,8 @@ TEST_CASE("ParticleCut", "process,continuous,secondary") { ...@@ -108,9 +108,8 @@ TEST_CASE("ParticleCut", "process,continuous,secondary") {
ParticleCut cut(20_GeV, true, true); ParticleCut cut(20_GeV, true, true);
// add primary particle to stack // add primary particle to stack
auto particle = stack.addParticle(std::make_tuple(Code::Proton, Eabove, auto particle = stack.addParticle(std::make_tuple(
DirectionVector(rootCS, {1, 0, 0}), Code::Proton, Eabove, DirectionVector(rootCS, {1, 0, 0}), point0, 0_ns));
point0, 0_ns));
// view on secondary particles // view on secondary particles
setup::StackView view(particle); setup::StackView view(particle);
// ref. to primary particle through the secondary view. // ref. to primary particle through the secondary view.
...@@ -152,12 +151,10 @@ TEST_CASE("ParticleCut", "process,continuous,secondary") { ...@@ -152,12 +151,10 @@ TEST_CASE("ParticleCut", "process,continuous,secondary") {
// add secondaries // add secondaries
projectile.addSecondary(std::make_tuple( projectile.addSecondary(std::make_tuple(
Code::Photon, 3_MeV, DirectionVector(rootCS, {1, 0, 0}), point0, 0_ns)); Code::Photon, 3_MeV, DirectionVector(rootCS, {1, 0, 0}), point0, 0_ns));
projectile.addSecondary(std::make_tuple(Code::Electron, 3_MeV, projectile.addSecondary(std::make_tuple(
DirectionVector(rootCS, {1, 0, 0}), point0, Code::Electron, 3_MeV, DirectionVector(rootCS, {1, 0, 0}), point0, 0_ns));
0_ns)); projectile.addSecondary(std::make_tuple(
projectile.addSecondary(std::make_tuple(Code::PiPlus, 4_GeV, Code::PiPlus, 4_GeV, DirectionVector(rootCS, {1, 0, 0}), point0, 0_ns));
DirectionVector(rootCS, {1, 0, 0}), point0,
0_ns));
unsigned short A = 18; unsigned short A = 18;
unsigned short Z = 8; unsigned short Z = 8;
...@@ -198,9 +195,8 @@ TEST_CASE("ParticleCut", "process,continuous,secondary") { ...@@ -198,9 +195,8 @@ TEST_CASE("ParticleCut", "process,continuous,secondary") {
// add secondaries, all with energies above the threshold // add secondaries, all with energies above the threshold
// only cut is by time // only cut is by time
for (auto proType : particleList) { for (auto proType : particleList) {
projectile.addSecondary(std::make_tuple(proType, Eabove, projectile.addSecondary(std::make_tuple(
DirectionVector(rootCS, {1, 0, 0}), point0, proType, Eabove, DirectionVector(rootCS, {1, 0, 0}), point0, too_late));
too_late));
} }
cut.doSecondaries(view); cut.doSecondaries(view);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment