]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
MaxStep() based on STEPSZ common implemented.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 8 Oct 2004 09:44:01 +0000 (09:44 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 8 Oct 2004 09:44:01 +0000 (09:44 +0000)
TFluka/TFluka.cxx
TFluka/TFluka.h

index 1ab0ab9ab9e15b9aca111ec559ad5fb9328b4f99..4c239e094ad72cfcd2ca8d05aabcb1c11f230c65 100644 (file)
@@ -2035,6 +2035,15 @@ void TFluka::SetMaxStep(Double_t step)
     STEPSZ.stepmx[mreg - 1] = step;
 }
 
+
+Double_t TFluka::MaxStep() const
+{
+// Return the maximum for current medium
+    Int_t mreg, latt;
+    fGeom->GetCurrentRegion(mreg, latt);
+    return (STEPSZ.stepmx[mreg - 1]);
+}
+
 //______________________________________________________________________________ 
 void TFluka::SetMaxNStep(Int_t)
 {
index 29121a01109ba519610737808d889c26f8814336..ad02ad20f7af08d9f7f82a6a05133b94743676c7 100644 (file)
@@ -169,10 +169,9 @@ class TFluka : public TVirtualMC {
   
   virtual void     Gdtom(Double_t* xd, Double_t* xm, Int_t iflag);
   
-  virtual Double_t MaxStep() const
-    {printf("WARNING: MaxStep not yet implemented !\n"); return -1.;}
+  virtual Double_t MaxStep() const;
   virtual Int_t    GetMaxNStep() const
-    {printf("WARNING: GetMaxNStep not yet implemented !\n"); return -1;}
+      {printf("WARNING: GetMaxNStep not yet implemented !\n"); return -1;}
   virtual Int_t    GetMedium() const;
   
   // Tracking particle