Author: [log in to unmask]
Date: Thu Nov 5 15:53:01 2015
New Revision: 3690
Log:
Make sure global track state is reset before event processing (probably working fine now but just in case).
Modified:
projects/slic/trunk/src/EventAction.cc
Modified: projects/slic/trunk/src/EventAction.cc
=============================================================================
--- projects/slic/trunk/src/EventAction.cc (original)
+++ projects/slic/trunk/src/EventAction.cc Thu Nov 5 15:53:01 2015
@@ -2,6 +2,7 @@
// LCDD
#include "lcdd/util/StringUtil.hh"
+#include "lcdd/detectors/CurrentTrackState.hh"
// SLIC
#include "EventSourceManager.hh"
@@ -27,6 +28,8 @@
}
void EventAction::BeginOfEventAction(const G4Event *anEvent) {
+ // Reset current track state.
+ CurrentTrackState::setCurrentTrackID(-1);
}
void EventAction::EndOfEventAction(const G4Event *anEvent) {
########################################################################
Use REPLY-ALL to reply to list
To unsubscribe from the LCDET-SVN list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCDET-SVN&A=1
|