output file
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
|
||||
#include "G4VUserActionInitialization.hh"
|
||||
#include "PrimaryGeneratorAction.hh"
|
||||
#include "RunAction.hh"
|
||||
|
||||
namespace B4
|
||||
{
|
||||
@@ -66,12 +67,21 @@ class ActionInitialization : public G4VUserActionInitialization
|
||||
fDetConstruction = det;
|
||||
}
|
||||
|
||||
void setFileName(G4String fileName){
|
||||
this->filename = fileName;
|
||||
if(runact!=nullptr){
|
||||
runact -> setFileName(fileName);
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
B4::DetectorConstruction* fDetConstruction = nullptr;
|
||||
mutable B4::PrimaryGeneratorAction * gen = nullptr;
|
||||
mutable B4::RunAction * runact = nullptr;
|
||||
G4double minEnergy=1000;
|
||||
G4double maxEnergy=1000;
|
||||
G4String partSpecies="e-";
|
||||
G4String filename="";
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user