Skip to content
Snippets Groups Projects
Commit 04b51970 authored by Chad Lantz's avatar Chad Lantz
Browse files

Added loop over all nTuples to add rows. Reduced interval on event number print statements.

parent 990c6c2f
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@ EventAction::~EventAction()
*/
void EventAction::BeginOfEventAction(const G4Event* event){
if(event->GetEventID()%100000 == 0) G4cout << "Begin Event " << event->GetEventID() << G4endl;
if(event->GetEventID()%1000 == 0) G4cout << "Begin Event " << event->GetEventID() << G4endl;
}
......@@ -68,5 +68,7 @@ void EventAction::EndOfEventAction(const G4Event* event){
// fill ntuple //
G4AnalysisManager* analysisManager = G4AnalysisManager::Instance();
analysisManager->FillNtupleIColumn( 0, 0, event->GetEventID());
analysisManager->AddNtupleRow();
for(G4int i = 0; i < analysisManager->GetNofNtuples(); i++){
analysisManager->AddNtupleRow(i);
}
}
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