checks
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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"){
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user