]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALTrack.cxx
Increase the speed of SDD raw data decoding (F.Prino)
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALTrack.cxx
index 5902791f2fe122ea115a68ca10cfa15b2f7888e5..e293378c88734e12ee462caec19d5897f7111659 100755 (executable)
@@ -12,7 +12,7 @@
 // about the suitability of this software for any purpose. It is          
 // provided "as is" without express or implied warranty.                  
 //========================================================================  
-//                       
+//                        
 //                       Class AliEMCALTrack 
 //                      ---------------------
 //    A class implementing a track which is propagated to EMCAL and 
@@ -56,6 +56,7 @@ AliEMCALTrack::AliEMCALTrack()
        // Sets to meaningless values the indexes corresponding to
        // ESD seed track and matched cluster.
        //
+
 }
 //
 //------------------------------------------------------------------------------
@@ -75,8 +76,13 @@ AliEMCALTrack::AliEMCALTrack(const AliESDtrack& t)
        // parameters are chosen according to static variable fUseOuterParams
        Double_t alpha, x, params[5], cov[15];
        if (fgUseOuterParams) {
-               t.GetOuterExternalParameters(alpha, x, params);
-               t.GetOuterExternalCovariance(cov);
+         if(t.GetOuterParam()){
+           t.GetOuterExternalParameters(alpha, x, params);
+           t.GetOuterExternalCovariance(cov);
+         }
+         else{ // no outer param available leave the default as is
+           return;
+         }
        }
        else {
                alpha = t.GetAlpha();
@@ -122,7 +128,6 @@ AliEMCALTrack& AliEMCALTrack::operator=(const AliEMCALTrack &t)
        
        fSeedIndex = t.fSeedIndex;
        fSeedLabel = t.fSeedLabel;
-
        return *this;
 }
 //
@@ -294,5 +299,5 @@ Bool_t AliEMCALTrack::SimplePropagation(Double_t xk, Double_t d, Double_t x0)
        
        // EL correction is computed only if requested...
        if (!fgCorrectForEL) return kTRUE;
-       return AliExternalTrackParam::CorrectForMaterial(d, x0, GetMass());
+       return AliExternalTrackParam::CorrectForMeanMaterial(d, x0, GetMass());
 }