]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliTagCreator.h
New version of CDB framework. Proper initialization of CDB inside AliSimulation and...
[u/mrichter/AliRoot.git] / STEER / AliTagCreator.h
index 05e78154104ee8adb192a6ca66c4519f6ca9649e..ba8776bdac7891a57b36bc02291ed4eb578a49f3 100644 (file)
 
 //ROOT
 #include <TObject.h>
-#include <TFile.h>
-#include <TSystem.h>
-#include <TGridResult.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 fHost; //the defined AliEn host
-  Int_t fPort;  //the defined port for the host login
-  TGridResult *fresult; //the results from the grid query
-
-  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 MergeTags();
+
+  void SetSE(const char *se){fSE = se;}
+  void SetStorage(Int_t storage);
+  void SetGridPath(const char *gridpath){fgridpath = gridpath;}
   Bool_t ReadESDCollection(TGridResult *result);
-  Bool_t StoreGridTagFile(const char *localpath, const char *gridpath);
 
+ 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);
   ClassDef(AliTagCreator,0)  
 };