Fix in lem4ScintSD.cc to get initial parameters in root tree.

This commit is contained in:
prokscha 2008-11-05 18:37:24 +00:00
parent 8db7bd141b
commit 94797630f1
2 changed files with 4 additions and 2 deletions

View File

@ -233,6 +233,7 @@ void lem4RootOutput::FillEvent() {
// G4cout << "eventID="<<eventID_t<<"; Deposited E (el, pos, gam, mu)="<<det_edep_el<<", "
// << det_edep_pos<<", "<< det_edep_gam<<", "<< det_edep_mup<<G4endl;
// G4cout<<"fieldValue="<<fieldValue_t<<G4endl;
// G4cout<<" muDecayPosX="<<muDecayPosX_t << " muIniPosX="<<muIniPosX_t<<G4endl;
rootTree->Fill();
// G4cout<<"Kamil: end of Filling the Root Tree:"<<G4endl;
}

View File

@ -49,8 +49,9 @@ lem4ScintSD::~lem4ScintSD(){ }
void lem4ScintSD::Initialize(G4HCofThisEvent* HCE) {
if (verboseLevel>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]);