From 94797630f14507111b8ad3eb218d9fc6ba8c2b44 Mon Sep 17 00:00:00 2001 From: Thomas Prokscha Date: Wed, 5 Nov 2008 18:37:24 +0000 Subject: [PATCH] Fix in lem4ScintSD.cc to get initial parameters in root tree. --- geant4/LEMuSR/src/lem4RootOutput.cc | 1 + geant4/LEMuSR/src/lem4ScintSD.cc | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/geant4/LEMuSR/src/lem4RootOutput.cc b/geant4/LEMuSR/src/lem4RootOutput.cc index 45976fe..e96b256 100644 --- a/geant4/LEMuSR/src/lem4RootOutput.cc +++ b/geant4/LEMuSR/src/lem4RootOutput.cc @@ -233,6 +233,7 @@ void lem4RootOutput::FillEvent() { // G4cout << "eventID="<1) G4cout<<"VERBOSE 2: lem4ScintSD::Initialize\n"; // Positron_momentum_already_stored=0; - lem4RootOutput* myRootOutput = lem4RootOutput::GetRootInstance(); - myRootOutput->ClearAllRootVariables(); + // comment the following lines to disable output of initial variables + //lem4RootOutput* myRootOutput = lem4RootOutput::GetRootInstance(); + //myRootOutput->ClearAllRootVariables(); scintCollection = new lem4ScintHitsCollection (SensitiveDetectorName,collectionName[0]);