]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliTagCreator.h
Removing semaphore .done files.
[u/mrichter/AliRoot.git] / STEER / AliTagCreator.h
index 2f2d31d52e4efc703aba6d3a94d3a7186e7632d6..de2836fbdf5dc5033cafccfb18a6cc8ed30e7d6e 100644 (file)
 
 //ROOT
 #include <TObject.h>
-#include <TFile.h>
-#include <TSystem.h>
 
+class TFile;
+class TGridResult;
 
 
+//___________________________________________________________________________
 class AliTagCreator : public TObject {
 
- protected:
-  TString fUser; //the username in AliEn
-  TString fPasswd;   //the username's password
-  TString fSE;   //the defined storage element
-  TString fCollectionFile; //the xml collection file
-  TString fHost; //the defined AliEn host
-  Int_t fPort;  //the defined port for the host login
-  
-  //void CreateTag(TAlienFile* file, const char *guid, Int_t Counter);
-  void CreateTag(TFile* file, const char *guid, Int_t Counter);
-
  public:
   AliTagCreator();
-  AliTagCreator(const char *host, Int_t port, const char *username);
-  AliTagCreator(const char *host, Int_t port, const char *username, const char *passwd);
   ~AliTagCreator(); 
 
-  void SetSE(const char *se);
-  Bool_t ConnectToGrid(const char *host, Int_t port, const char *username);
-  Bool_t ReadESDCollection(const char *CollectionFile);
-  Bool_t StoreGridTagFile(const char *localpath, const char *gridpath);
+  //____________________________________________________//
+  Bool_t MergeTags();
+  Bool_t MergeTags(TGridResult *result);
+
+  void SetSE(const char *se){fSE = se;}
+  void SetStorage(Int_t storage);
+  void SetGridPath(const char *gridpath){fgridpath = gridpath;}
 
+  Bool_t ReadGridCollection(TGridResult *result);
+  Bool_t ReadLocalCollection(const char *localpath);
+  Bool_t ReadCAFCollection(const char *filename);
+
+  //____________________________________________________//
+ protected:
+  TString fSE;   //the defined storage element
+  TString fgridpath;   //the alien location of the tag files
+  Int_t fStorage;  //0:local - 1:grid
+  
+  void CreateTag(TFile* file, const char *guid, const char *md5, const char *turl, Long64_t size, Int_t Counter);
+  void CreateTag(TFile* file, const char *filepath, Int_t Counter);
   ClassDef(AliTagCreator,0)  
 };