]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TGeant4/TG4VSensitiveDetector.cxx
updated to AliMC changes - added StepProcesses() method (not yet implemented); update...
[u/mrichter/AliRoot.git] / TGeant4 / TG4VSensitiveDetector.cxx
index 1b04cbbb98d4e1113f9a6ea1f37df940634027a3..15c994a8d1d93a79e555285f2bf2acae2882bac8 100644 (file)
@@ -13,7 +13,7 @@ TG4VSensitiveDetector::TG4VSensitiveDetector(G4String sdName)
     fStepManager(TG4StepManager::Instance())
 {
 //
-  fID = fgSDCounter++;
+  fID = ++fgSDCounter;
 }
 
 TG4VSensitiveDetector::TG4VSensitiveDetector(G4String sdName, G4int id)
@@ -23,7 +23,7 @@ TG4VSensitiveDetector::TG4VSensitiveDetector(G4String sdName, G4int id)
 
 {
 //
-  fgSDCounter++;
+  ++fgSDCounter;
 }
 
 TG4VSensitiveDetector::TG4VSensitiveDetector(
@@ -34,7 +34,7 @@ TG4VSensitiveDetector::TG4VSensitiveDetector(
   fID = right.fID;
   fStepManager = right.fStepManager;
 
-  fgSDCounter++;;
+  ++fgSDCounter;;
 }
 
 TG4VSensitiveDetector::TG4VSensitiveDetector()
@@ -71,7 +71,7 @@ G4bool TG4VSensitiveDetector::ProcessHits(G4Step* step, G4TouchableHistory*)
 // Calls StepManager of associated AliModule.
 // ---
 
-  // let AliModule process step
+  // let user sensitive detector process normal step
   fStepManager->SetStep(step, kNormalStep);
   UserProcessHits(step->GetTrack(), step);
 
@@ -84,6 +84,7 @@ G4bool TG4VSensitiveDetector::ProcessHitsOnBoundary(G4Step* step)
 // when crossing a geometrical boundary.
 // ---
 
+  // let user sensitive detector process boundary step
   fStepManager->SetStep(step, kBoundary);
   UserProcessHits(step->GetTrack(), step);