Skip to content
Snippets Groups Projects
Commit f547d35c authored by Adrien Matta's avatar Adrien Matta :skull_crossbones:
Browse files

* Fixing issue causing simulation to be slow

        - The state of the G4 random generator was never cleared
        - bigger and bigger data were written to the tree
parent aed936d2
No related branches found
No related tags found
No related merge requests found
Pipeline #67881 passed
......@@ -87,6 +87,8 @@ void EventAction::SaveRandomGeneratorInitialState(){
CLHEP::HepRandom::saveFullState(m_Geant4RandomFullState);
m_G4State=m_Geant4RandomFullState.str();
m_Geant4RandomFullState.str("");
m_Geant4RandomFullState.clear();
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment