]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - AliGeant4/AliLegoSensitiveDetector.cxx
updated for major upgrade of TG4StepManager (more in doc/history/g4mc_event_History)
[u/mrichter/AliRoot.git] / AliGeant4 / AliLegoSensitiveDetector.cxx
index ef70a34a3d9c57d5ef814510cc1550435f65027f..e188729072132d2e2f7e6b88d3fde5896e06484f 100644 (file)
@@ -6,15 +6,12 @@
 #include "AliLegoSensitiveDetector.h"
 #include "AliLego.h"
 
-#include "TG4StepManager.h"
-
 AliLegoSensitiveDetector::AliLegoSensitiveDetector(
                              G4String name, AliLego* lego, 
                             G4VSensitiveDetector* standardSD)
   : TG4VSensitiveDetector(name),
     fLego(lego),
-    fStandardSD(standardSD),
-    fStepManager(TG4StepManager::Instance())
+    fStandardSD(standardSD)
 {
 //
 }
@@ -26,7 +23,6 @@ AliLegoSensitiveDetector::AliLegoSensitiveDetector(
 //
   fLego = right.fLego;
   fStandardSD = right.fStandardSD;
-  fStepManager = right.fStepManager;
 }
 
 AliLegoSensitiveDetector::AliLegoSensitiveDetector() {
@@ -50,42 +46,19 @@ AliLegoSensitiveDetector::operator=(const AliLegoSensitiveDetector &right)
 
   fLego = right.fLego;
   fStandardSD = right.fStandardSD;
-  fStepManager = right.fStepManager;
   
   return *this;
 }
 
 // public methods
 
-void AliLegoSensitiveDetector::Initialize(G4HCofThisEvent* hc)
-{
-// This method is called at the beginning of event action
-// before user defined BeginOfEventAction() method.
-}
-
-G4bool AliLegoSensitiveDetector::ProcessHits(G4Step* step, G4TouchableHistory*)
+void AliLegoSensitiveDetector::UserProcessHits(const G4Track* track,
+                                               const G4Step* step)
 {
 // Calls StepManager of associated lego.
 // ---
 
   // let lego process step
-  fStepManager->SetStep(step, kPostStepPoint);
   fLego->StepManager();
-
-  return true;
-}
-
-void AliLegoSensitiveDetector::EndOfEvent(G4HCofThisEvent* hce){
-//
 }
 
-//void AliLegoSensitiveDetector::clear()
-//{} 
-
-void AliLegoSensitiveDetector::PrintAll() {
-//
-} 
-
-void AliLegoSensitiveDetector::DrawAll() {
-//
-}