X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=PHOS%2FAnaESD.C;h=382c7aecdf3a26c037115c7c745a2d4234c53c1c;hp=4ccee1d258cc6b931aa75b04d0d2b459e61c9f2e;hb=449138640de251b34a17e39f311881d01ab7446e;hpb=7f06a34f543bcd676dec8598307e961b4227fbf7 diff --git a/PHOS/AnaESD.C b/PHOS/AnaESD.C index 4ccee1d258c..382c7aecdf3 100644 --- a/PHOS/AnaESD.C +++ b/PHOS/AnaESD.C @@ -35,7 +35,7 @@ #include "AliEMCALRecParticle.h" #include "AliPHOSRecParticle.h" #include "AliKalmanTrack.h" -#include "AliPHOSAliEnFile.h" +#include "AliPHOSGridFile.h" #endif void Match(TParticle * pp, AliESDtrack * cp, Double_t * dist) ; @@ -49,8 +49,10 @@ const TString kVers("V4.01.Rev.00") ; Bool_t Ana(const TString type = "per5", const Int_t run = 1, const Int_t nOfEvt = 1) { Double_t dist[3] ; - // get the LFN file name in the AliEn catalogue ; - AliPHOSAliEnFile lfn ; + // get the LFN file name in the Grid catalogue ; + AliPHOSGridFile lfn ; + if (!lfn.IsConnected()) + return kFALSE ; lfn.SetPath(kYear, kProd, kVers, type) ; lfn.SetRun(run) ;