]>
Commit | Line | Data |
---|---|---|
b45e5084 | 1 | #ifndef ALITAGCREATOR_H |
2 | #define ALITAGCREATOR_H | |
3 | /* See cxx source for full Copyright notice */ | |
4 | ||
5 | ||
6 | /* $Id$ */ | |
7 | ||
8 | //------------------------------------------------------------------------- | |
9 | // Class AliTagCreator | |
10 | // This is the AliTagCreator class for the tag creation (post process) | |
11 | // | |
12 | // Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch | |
13 | //------------------------------------------------------------------------- | |
14 | ||
15 | ||
16 | ||
17 | ////////////////////////////////////////////////////////////////////////// | |
18 | // // | |
19 | // AliTagCreator // | |
20 | // // | |
21 | // Implementation of the tag creation mechanism. // | |
22 | // // | |
23 | ////////////////////////////////////////////////////////////////////////// | |
24 | ||
25 | ||
26 | //ROOT | |
27 | #include <TObject.h> | |
28 | #include <TFile.h> | |
29 | #include <TSystem.h> | |
09c52d4a | 30 | #include <TGridResult.h> |
b45e5084 | 31 | |
32 | ||
33 | ||
34 | class AliTagCreator : public TObject { | |
35 | ||
36 | protected: | |
37 | TString fUser; //the username in AliEn | |
38 | TString fPasswd; //the username's password | |
39 | TString fSE; //the defined storage element | |
b45e5084 | 40 | TString fHost; //the defined AliEn host |
41 | Int_t fPort; //the defined port for the host login | |
09c52d4a | 42 | TGridResult *fresult; //the results from the grid query |
43 | ||
b45e5084 | 44 | void CreateTag(TFile* file, const char *guid, Int_t Counter); |
45 | ||
46 | public: | |
47 | AliTagCreator(); | |
48 | AliTagCreator(const char *host, Int_t port, const char *username); | |
49 | AliTagCreator(const char *host, Int_t port, const char *username, const char *passwd); | |
50 | ~AliTagCreator(); | |
51 | ||
52 | void SetSE(const char *se); | |
53 | Bool_t ConnectToGrid(const char *host, Int_t port, const char *username); | |
09c52d4a | 54 | Bool_t ReadESDCollection(TGridResult *result); |
b45e5084 | 55 | Bool_t StoreGridTagFile(const char *localpath, const char *gridpath); |
56 | ||
57 | ClassDef(AliTagCreator,0) | |
58 | }; | |
59 | ||
60 | #endif | |
61 |