Commit in lcdd/src on MAIN
G4StepReadout.cc+4-31.2 -> 1.3


lcdd/src
G4StepReadout.cc 1.2 -> 1.3
diff -u -r1.2 -r1.3
--- G4StepReadout.cc	19 Apr 2005 23:08:47 -0000	1.2
+++ G4StepReadout.cc	30 Jul 2005 01:21:00 -0000	1.3
@@ -1,4 +1,4 @@
-// $Header: /cvs/lcd/lcdd/src/G4StepReadout.cc,v 1.2 2005/04/19 23:08:47 jeremy Exp $
+// $Header: /cvs/lcd/lcdd/src/G4StepReadout.cc,v 1.3 2005/07/30 01:21:00 jeremy Exp $
 #include "G4StepReadout.hh"
 
 // LCDD
@@ -7,6 +7,7 @@
 
 // G4
 #include "G4Step.hh"
+#include "G4StepPoint.hh"
 #include "G4Track.hh"
 #include "G4VSolid.hh"
 #include "G4VPhysicalVolume.hh"
@@ -90,12 +91,12 @@
 
 G4VSensitiveDetector* G4StepReadout::preSD() const 
 {
-  return pre()->GetSensitiveDetector();
+  return ((G4StepPoint*)pre())->GetSensitiveDetector();
 }
 
 G4VSensitiveDetector* G4StepReadout::postSD() const 
 {
-  return post()->GetSensitiveDetector();
+  return ((G4StepPoint*)post())->GetSensitiveDetector();
 }
 
 bool G4StepReadout::hasSameSD() const
CVSspam 0.2.8