1 #ifndef ALIPHOSGRIDFILE_H
2 #define ALIPHOSGRIDFILE_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 //_________________________________________________________________________
7 // Description of logical filename in Grid catalogue
8 // check here : /afs/cern.ch/user/p/peters/public/README.GRID
10 //*-- Author: Yves Schutz (CERN)
12 // --- ROOT system ---
17 // --- AliRoot header files ---
19 class AliPHOSGridFile : public TObject {
23 AliPHOSGridFile(TString grid="alien") ;
24 AliPHOSGridFile(AliPHOSGridFile & lfn) : TObject(lfn) {
27 virtual ~AliPHOSGridFile(void) ;
28 virtual void Copy(AliPHOSGridFile & lfn) ;
30 void ListEvents() const ;
31 void ListRuns() const ;
32 TString GetRootDir() const { return fRoot ; }
33 TString GetLFN() const ;
35 Bool_t IsConnected() const {
40 Bool_t SetYearProd(TString year, TString prod) ;
41 Bool_t SetVers(TString vers) ;
42 Bool_t SetType(TString type) ;
44 Bool_t SetPath(TString year, TString prod, TString vers, TString type) ;
46 Bool_t SetRun(Int_t run) ;
47 Bool_t SetEvt(Int_t evt) ;
49 TString Pwd() const { return fPath ; }
51 AliPHOSGridFile & operator = (const AliPHOSGridFile & /*rvalue*/) {
52 // assignement operator requested by coding convention but not needed
53 Fatal("operator =", "not implemented") ;
59 TGrid * fGrid ; //! connection to alien data catalogue
60 TString fRoot ; //! root directory
61 TString fYear ; //! year of the DC
62 TString fProd ; //! production id
63 TString fVers ; //! aliroot tag version
64 TString fType ; //! event type
65 TString fRun ; //! run number
66 TString fEvt ; //! event number
67 TString fPath ; //! the lfn is fRoot/fYear/fProd/fVers/fType/fRun/fEvt
70 ClassDef(AliPHOSGridFile,1)
74 #endif // AliPHOSGRIDFILE_H