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.
This commit is contained in:
parent
19bd325801
commit
5615d62ceb
|
@ -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<cend+1; i+=cstep));
|
||||
do
|
||||
for ((j=tstart; j<tend+1; j+=tstep));
|
||||
do
|
||||
./medtech -s 100 -t $j -c $i
|
||||
./medtech -n 100000000 -s 100 -t $j -c $i
|
||||
echo "tube: $j cone: $i"
|
||||
done
|
||||
done
|
||||
|
|
|
@ -11,7 +11,7 @@ MedtechPrimaryGeneratorAction::MedtechPrimaryGeneratorAction()
|
|||
{
|
||||
Parameters *param = Parameters::getInstance();
|
||||
|
||||
G4int numberOfParticles = 1000000000;
|
||||
G4int numberOfParticles = 1;
|
||||
particleGun = new G4ParticleGun(numberOfParticles);
|
||||
G4ParticleTable *particleTable = G4ParticleTable::GetParticleTable();
|
||||
G4ParticleDefinition *particle = particleTable -> FindParticle("e-");
|
||||
|
|
|
@ -84,7 +84,7 @@ void MedtechSteppingAction::UserSteppingAction(const G4Step* step)
|
|||
if(preName == "sphere")
|
||||
{
|
||||
MedtechAnalysis *man = MedtechAnalysis::getInstance();
|
||||
std::cout << "Globe to sphere" <<std::endl;
|
||||
//std::cout << "Globe to sphere" <<std::endl;
|
||||
man -> Fill(2, postX, postY, postZ, postkinE);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue