Line data Source code
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 */
5 :
6 : /* History of cvs commits:
7 : *
8 : * $Log$
9 : * Revision 1.2 2005/05/28 14:19:04 schutz
10 : * Compilation warnings fixed by T.P.
11 : *
12 : */
13 :
14 : //_________________________________________________________________________
15 : // Description of logical filename in Grid catalogue
16 : // check here : /afs/cern.ch/user/p/peters/public/README.GRID
17 : //*--
18 : //*-- Author: Yves Schutz (CERN)
19 :
20 : // --- ROOT system ---
21 : #include "TObject.h"
22 : #include "TString.h"
23 : #include "TGrid.h"
24 :
25 : // --- AliRoot header files ---
26 :
27 : class AliPHOSGridFile : public TObject {
28 :
29 : public:
30 :
31 : AliPHOSGridFile(TString grid="alien") ;
32 : AliPHOSGridFile(const AliPHOSGridFile & lfn);
33 :
34 : virtual ~AliPHOSGridFile(void) ;
35 :
36 : virtual void Copy(TObject & obj) const;
37 :
38 : void ListEvents() const ;
39 : void ListRuns() const ;
40 0 : TString GetRootDir() const { return fRoot ; }
41 : TString GetLFN() const ;
42 : void Help() ;
43 : Bool_t IsConnected() const {
44 : Bool_t rv = kFALSE ;
45 0 : if(fGrid)
46 : rv = kTRUE ;
47 0 : return rv ; }
48 : Bool_t SetYearProd(TString year, TString prod) ;
49 : Bool_t SetVers(TString vers) ;
50 : Bool_t SetType(TString type) ;
51 :
52 : Bool_t SetPath(TString year, TString prod, TString vers, TString type) ;
53 :
54 : Bool_t SetRun(Int_t run) ;
55 : Bool_t SetEvt(Int_t evt) ;
56 :
57 0 : TString Pwd() const { return fPath ; }
58 :
59 : AliPHOSGridFile & operator = (const AliPHOSGridFile & /*rvalue*/) {
60 : // assignement operator requested by coding convention but not needed
61 0 : Fatal("operator =", "not implemented") ;
62 0 : return *this ;
63 : }
64 :
65 : private:
66 :
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
76 :
77 20 : ClassDef(AliPHOSGridFile,1)
78 : };
79 :
80 : #endif // AliPHOSGRIDFILE_H
81 :
|