- G4int copy;
- gAlice->AddEnergyDeposit(fID, step->GetTotalEnergyDeposit());
-
- // parent ID -> shunt
- G4int parentID
- = step->GetTrack()->GetParentID();
- Int_t shunt = 0;
- if (parentID==0) shunt = 1;
- fModule->SetIshunt(shunt);
-
- if ((step->GetPreStepPoint()->GetStepStatus() == fGeomBoundary) ||
- (step->GetTrack()->GetCurrentStepNumber() == 1) ){
-
- // if first step or crossing boundary
- // let AliModule process step in PreStepPoint
- // (this ensures compatibility with G3 that
- // makes additional step of zero length)
-
- fStepManager->SetStep(step, kPreStepPoint);
- fModule->StepManager();
- }
-
- // let AliModule process step
- fStepManager->SetStep(step, kPostStepPoint);
- fModule->StepManager();
-
- return true;
-}
+ if (step)
+ gAlice->AddEnergyDeposit(
+ fID, step->GetTotalEnergyDeposit()/TG4G3Units::Energy());
+
+ fMCQA->StepManager(fModuleID);