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 /* History of cvs commits:
9 * Revision 1.2 2005/05/28 14:19:04 schutz
10 * Compilation warnings fixed by T.P.
14 //_________________________________________________________________________
15 // Description of logical filename in Grid catalogue
16 // check here : /afs/cern.ch/user/p/peters/public/README.GRID
18 //*-- Author: Yves Schutz (CERN)
20 // --- ROOT system ---
25 // --- AliRoot header files ---
27 class AliPHOSGridFile : public TObject {
31 AliPHOSGridFile(TString grid="alien") ;
32 AliPHOSGridFile(const AliPHOSGridFile & lfn);
34 virtual ~AliPHOSGridFile(void) ;
36 virtual void Copy(TObject & obj) const;
38 void ListEvents() const ;
39 void ListRuns() const ;
40 TString GetRootDir() const { return fRoot ; }
41 TString GetLFN() const ;
43 Bool_t IsConnected() const {
48 Bool_t SetYearProd(TString year, TString prod) ;
49 Bool_t SetVers(TString vers) ;
50 Bool_t SetType(TString type) ;
52 Bool_t SetPath(TString year, TString prod, TString vers, TString type) ;
54 Bool_t SetRun(Int_t run) ;
55 Bool_t SetEvt(Int_t evt) ;
57 TString Pwd() const { return fPath ; }
59 AliPHOSGridFile & operator = (const AliPHOSGridFile & /*rvalue*/) {
60 // assignement operator requested by coding convention but not needed
61 Fatal("operator =", "not implemented") ;
67 TGrid * fGrid ; //! connection to alien data catalogue
68 TString fRoot ; //! root directory
69 TString fYear ; //! year of the DC
70 TString fProd ; //! production id
71 TString fVers ; //! aliroot tag version
72 TString fType ; //! event type
73 TString fRun ; //! run number
74 TString fEvt ; //! event number
75 TString fPath ; //! the lfn is fRoot/fYear/fProd/fVers/fType/fRun/fEvt
77 ClassDef(AliPHOSGridFile,1)
80 #endif // AliPHOSGRIDFILE_H