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:
11 //_________________________________________________________________________
12 // Description of logical filename in Grid catalogue
13 // check here : /afs/cern.ch/user/p/peters/public/README.GRID
15 //*-- Author: Yves Schutz (CERN)
17 // --- ROOT system ---
22 // --- AliRoot header files ---
24 class AliPHOSGridFile : public TObject {
28 AliPHOSGridFile(TString grid="alien") ;
29 AliPHOSGridFile(AliPHOSGridFile & lfn) : TObject(lfn) {
32 virtual ~AliPHOSGridFile(void) ;
34 virtual void Copy(TObject & obj) const;
36 void ListEvents() const ;
37 void ListRuns() const ;
38 TString GetRootDir() const { return fRoot ; }
39 TString GetLFN() const ;
41 Bool_t IsConnected() const {
46 Bool_t SetYearProd(TString year, TString prod) ;
47 Bool_t SetVers(TString vers) ;
48 Bool_t SetType(TString type) ;
50 Bool_t SetPath(TString year, TString prod, TString vers, TString type) ;
52 Bool_t SetRun(Int_t run) ;
53 Bool_t SetEvt(Int_t evt) ;
55 TString Pwd() const { return fPath ; }
57 AliPHOSGridFile & operator = (const AliPHOSGridFile & /*rvalue*/) {
58 // assignement operator requested by coding convention but not needed
59 Fatal("operator =", "not implemented") ;
65 TGrid * fGrid ; //! connection to alien data catalogue
66 TString fRoot ; //! root directory
67 TString fYear ; //! year of the DC
68 TString fProd ; //! production id
69 TString fVers ; //! aliroot tag version
70 TString fType ; //! event type
71 TString fRun ; //! run number
72 TString fEvt ; //! event number
73 TString fPath ; //! the lfn is fRoot/fYear/fProd/fVers/fType/fRun/fEvt
76 ClassDef(AliPHOSGridFile,1)
80 #endif // AliPHOSGRIDFILE_H