From b3c58ca1d87588b858f2bc24925c1d5eff92d1a9 Mon Sep 17 00:00:00 2001 From: Fan <fan_hu@pku.edu.cn> Date: Sat, 30 Oct 2021 15:34:31 +0800 Subject: [PATCH] do clang format --- tests/modules/testParticleCut.cpp | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/tests/modules/testParticleCut.cpp b/tests/modules/testParticleCut.cpp index 661e961e9..424ab82ca 100644 --- a/tests/modules/testParticleCut.cpp +++ b/tests/modules/testParticleCut.cpp @@ -108,9 +108,8 @@ TEST_CASE("ParticleCut", "process,continuous,secondary") { ParticleCut cut(20_GeV, true, true); // add primary particle to stack - auto particle = stack.addParticle(std::make_tuple(Code::Proton, Eabove, - DirectionVector(rootCS, {1, 0, 0}), - point0, 0_ns)); + auto particle = stack.addParticle(std::make_tuple( + Code::Proton, Eabove, DirectionVector(rootCS, {1, 0, 0}), point0, 0_ns)); // view on secondary particles setup::StackView view(particle); // ref. to primary particle through the secondary view. @@ -152,12 +151,10 @@ TEST_CASE("ParticleCut", "process,continuous,secondary") { // add secondaries projectile.addSecondary(std::make_tuple( Code::Photon, 3_MeV, DirectionVector(rootCS, {1, 0, 0}), point0, 0_ns)); - projectile.addSecondary(std::make_tuple(Code::Electron, 3_MeV, - DirectionVector(rootCS, {1, 0, 0}), point0, - 0_ns)); - projectile.addSecondary(std::make_tuple(Code::PiPlus, 4_GeV, - DirectionVector(rootCS, {1, 0, 0}), point0, - 0_ns)); + projectile.addSecondary(std::make_tuple( + Code::Electron, 3_MeV, DirectionVector(rootCS, {1, 0, 0}), point0, 0_ns)); + projectile.addSecondary(std::make_tuple( + Code::PiPlus, 4_GeV, DirectionVector(rootCS, {1, 0, 0}), point0, 0_ns)); unsigned short A = 18; unsigned short Z = 8; @@ -198,9 +195,8 @@ TEST_CASE("ParticleCut", "process,continuous,secondary") { // add secondaries, all with energies above the threshold // only cut is by time for (auto proType : particleList) { - projectile.addSecondary(std::make_tuple(proType, Eabove, - DirectionVector(rootCS, {1, 0, 0}), point0, - too_late)); + projectile.addSecondary(std::make_tuple( + proType, Eabove, DirectionVector(rootCS, {1, 0, 0}), point0, too_late)); } cut.doSecondaries(view); -- GitLab