This commit is contained in:
Jan Kieseler
2023-09-09 01:50:40 +02:00
parent 7bd786151e
commit 21396c1b44
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ class ActionInitialization : public G4VUserActionInitialization
this->minEnergy = minEnergy;
this->maxEnergy = maxEnergy;
this->partSpecies = partSpecies;
G4cout << "ActionInitialization: Setting particle species to " << partSpecies << G4endl;
}
private:
+1 -1
View File
@@ -64,7 +64,7 @@ public:
if(partSpecies == "e-"){
G4cout << "Particle species set to electron" << G4endl;
}
if(partSpecies == "e+"){
else if(partSpecies == "e+"){
G4cout << "Particle species set to positron" << G4endl;
}
else if(partSpecies == "gamma"){
+1 -1
View File
@@ -31,7 +31,7 @@ SystemBuilder(){};
void init(ConstructionWrapper &cw, bool gui=false);
void visualize()const{} //TBI
void run_gui();
void run_batch(int nEvents, char* partSpecies, double minEnergy, double maxEnergy);
void run_batch(int nEvents, const std::string& partSpecies, double minEnergy, double maxEnergy);
private:
+1 -1
View File
@@ -59,7 +59,7 @@ void SystemBuilder::run_gui(){
}
}
void SystemBuilder::run_batch(int nEvents, char* partSpecies, double minEnergy, double maxEnergy){
void SystemBuilder::run_batch(int nEvents,const std::string& partSpecies, double minEnergy, double maxEnergy){
G4String partSpec = partSpecies;
G4cout << "running with particle species " << partSpec << G4endl;
actionInitialization->setGeneratorProperties(minEnergy, maxEnergy, partSpec);