From 5615d62ceb3e2d9715fe1842d2e43cb15596f3a7 Mon Sep 17 00:00:00 2001 From: Gitea Date: Sat, 12 May 2018 15:53:50 +0200 Subject: [PATCH] You can change the number of events from command line, the Number of Particles is only 1 due to the changeability of the number of events. The run script easily customizable and fully working. --- Debug/run_from_to.sh | 4 ++-- src/MedtechPrimaryGeneratorAction.cc | 2 +- src/MedtechSteppingAction.cc | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Debug/run_from_to.sh b/Debug/run_from_to.sh index 87cabdb..c571c79 100755 --- a/Debug/run_from_to.sh +++ b/Debug/run_from_to.sh @@ -20,14 +20,14 @@ echo "$all //all step" >> start.txt #for i in {$((start))..$((end))} #do # echo "tube: 10 cone: $i" -#./medtech -s 100 -t 10 -c $i +#./medtech -n 100000000 -s 100 -t 10 -c $i #done for ((i=cstart; i FindParticle("e-"); diff --git a/src/MedtechSteppingAction.cc b/src/MedtechSteppingAction.cc index 01b1e57..90a3f2d 100644 --- a/src/MedtechSteppingAction.cc +++ b/src/MedtechSteppingAction.cc @@ -84,7 +84,7 @@ void MedtechSteppingAction::UserSteppingAction(const G4Step* step) if(preName == "sphere") { MedtechAnalysis *man = MedtechAnalysis::getInstance(); - std::cout << "Globe to sphere" < Fill(2, postX, postY, postZ, postkinE); } }