Commit in lcdd/src/lcdd/detectors on MAIN | |||
StepCombiningTrackerHitProcessor.cc | +23 | -7 | 1.1 -> 1.2 |
add missing private variable initializations; fixes seg fault
diff -u -r1.1 -r1.2 --- StepCombiningTrackerHitProcessor.cc 11 Jul 2013 22:39:17 -0000 1.1 +++ StepCombiningTrackerHitProcessor.cc 17 Sep 2013 00:25:01 -0000 1.2 @@ -1,4 +1,4 @@
-// $Header: /cvs/lcd/lcdd/src/lcdd/detectors/StepCombiningTrackerHitProcessor.cc,v 1.1 2013/07/11 22:39:17 jeremy Exp $
+// $Header: /cvs/lcd/lcdd/src/lcdd/detectors/StepCombiningTrackerHitProcessor.cc,v 1.2 2013/09/17 00:25:01 jeremy Exp $
// LCDD #include "lcdd/detectors/StepCombiningTrackerHitProcessor.hh"
@@ -9,9 +9,25 @@
#include "G4ChargedGeantino.hh" StepCombiningTrackerHitProcessor::StepCombiningTrackerHitProcessor(TrackerSD* tracker) :
- TrackerHitProcessor(tracker) -{ -}
+ TrackerHitProcessor(tracker), + _currentTrackID(-1), + _currentPV(0), + _edepTotal(0.), + _minTime(0.), + _startedHit(false), + _currentTrack(0) +{} + +int _currentTrackID; + G4VPhysicalVolume* _currentPV; + G4ThreeVector _entryPoint; + G4ThreeVector _exitPoint; + G4ThreeVector _entryMomentum; + G4ThreeVector _exitMomentum; + G4double _edepTotal; + G4double _minTime; + bool _startedHit; + G4Track* _currentTrack;
StepCombiningTrackerHitProcessor::~StepCombiningTrackerHitProcessor() {
@@ -145,10 +161,10 @@
hit->setId(id64.getId0()); // Add the hit to the TrackerSD.
- _tracker->addHit(hit, false);
+ _tracker->addHit(hit);
- // Set hasTrackerHit flag on TrackInformation. - TrackInformation::getTrackInformation( _currentTrack )->setHasTrackerHit( true);
+ // Set tracker hit flag on track information. + TrackInformation::getTrackInformation(_currentTrack)->setHasTrackerHit(true);
// Clear the cached hit data. clear();
Use REPLY-ALL to reply to list
To unsubscribe from the LCD-CVS list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCD-CVS&A=1