]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Primary ionisation electrons come now correctly ordered from FLUKA.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 12 Oct 2007 12:23:01 +0000 (12:23 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 12 Oct 2007 12:23:01 +0000 (12:23 +0000)
TFluka/TFluka.cxx

index 1f27bcb2bef73c342d7ec6e030acc5994f1731cf..1c3a90f0fda5a30f7bffaf531116b0048eb88010 100644 (file)
@@ -2337,8 +2337,7 @@ Double_t TFluka::GetPrimaryElectronKineticEnergy(Int_t i) const
     Double_t ekin = -1.;
     
     if (i >= 0 && i < ALLDLT.nalldl) {
-       Int_t j = ALLDLT.nalldl - 1 - i;
-        ekin =  ALLDLT.talldl[j];
+        ekin =  ALLDLT.talldl[i];
     } else {
         Warning("GetPrimaryElectronKineticEnergy",
                 "Primary electron index out of range %d %d \n",
@@ -2351,10 +2350,9 @@ void TFluka::GetPrimaryElectronPosition(Int_t i, Double_t& x, Double_t& y, Doubl
 {
     // Returns position  of primary electron i
         if (i >= 0 && i < ALLDLT.nalldl) {
-           Int_t j = ALLDLT.nalldl - 1 - i;
-           x = ALLDLT.xalldl[j];
-           y = ALLDLT.yalldl[j];
-           z = ALLDLT.zalldl[j];
+           x = ALLDLT.xalldl[i];
+           y = ALLDLT.yalldl[i];
+           z = ALLDLT.zalldl[i];
            return;
        } else {
            Warning("GetPrimaryElectronPosition",