X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=STEER%2FAliTagCreator.h;h=cfeb6c53dee8f9e6112f12e911352990c62152ea;hb=8104fec94e7d2490ab365ef13b58b8d033043f9f;hp=05e78154104ee8adb192a6ca66c4519f6ca9649e;hpb=09c52d4a503bc2643b4c5de9d20bec63a91f1c55;p=u%2Fmrichter%2FAliRoot.git diff --git a/STEER/AliTagCreator.h b/STEER/AliTagCreator.h index 05e78154104..cfeb6c53dee 100644 --- a/STEER/AliTagCreator.h +++ b/STEER/AliTagCreator.h @@ -25,35 +25,39 @@ //ROOT #include -#include -#include -#include - +class TGridResult; +class TChain; +//___________________________________________________________________________ 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 ReadESDCollection(TGridResult *result); - Bool_t StoreGridTagFile(const char *localpath, const char *gridpath); + //____________________________________________________// + Bool_t MergeTags(const char* type); + Bool_t MergeTags(const char* type, TGridResult *result); + Bool_t MergeTags(const char* type, const char *inflist); + + Bool_t MergeTagsForRun(const char* type); + Bool_t MergeTagsForRun(const char* type, TGridResult *result); + Bool_t MergeTagsForRun(const char* type, const char *inflist); + void SetSE(const char *se){fSE = se;} + void SetStorage(Int_t storage); + void SetGridPath(const char *gridpath){fgridpath = gridpath;} + + //____________________________________________________// + protected: + + Bool_t MergeToSingleRunTag(TChain *chain, const char *filename); + + TString fSE; //the defined storage element + TString fgridpath; //the alien location of the tag files + Int_t fStorage; //0:local - 1:grid + ClassDef(AliTagCreator,0) };