]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSGridFile.h
Corrected compilation options
[u/mrichter/AliRoot.git] / PHOS / AliPHOSGridFile.h
CommitLineData
7f06a34f 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
702ab87e 6/* History of cvs commits:
7 *
8 * $Log$
43fbaae1 9 * Revision 1.2 2005/05/28 14:19:04 schutz
10 * Compilation warnings fixed by T.P.
11 *
702ab87e 12 */
13
7f06a34f 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
27class AliPHOSGridFile : public TObject {
28
29 public:
30
31 AliPHOSGridFile(TString grid="alien") ;
43fbaae1 32 AliPHOSGridFile(const AliPHOSGridFile & lfn);
33
7f06a34f 34 virtual ~AliPHOSGridFile(void) ;
702ab87e 35
36 virtual void Copy(TObject & obj) const;
7f06a34f 37
38 void ListEvents() const ;
39 void ListRuns() const ;
40 TString GetRootDir() const { return fRoot ; }
41 TString GetLFN() const ;
42 void Help() ;
43 Bool_t IsConnected() const {
44 Bool_t rv = kFALSE ;
45 if(fGrid)
46 rv = kTRUE ;
47 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 TString Pwd() const { return fPath ; }
58
59 AliPHOSGridFile & operator = (const AliPHOSGridFile & /*rvalue*/) {
60 // assignement operator requested by coding convention but not needed
61 Fatal("operator =", "not implemented") ;
62 return *this ;
63 }
64
65private:
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
7f06a34f 77 ClassDef(AliPHOSGridFile,1)
43fbaae1 78};
7f06a34f 79
80#endif // AliPHOSGRIDFILE_H
81