]>
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> | |
b45e5084 | 28 | |
cb1645b7 | 29 | class TFile; |
30 | class TGridResult; | |
b45e5084 | 31 | |
32 | ||
c336835b | 33 | //___________________________________________________________________________ |
b45e5084 | 34 | class AliTagCreator : public TObject { |
35 | ||
cb1645b7 | 36 | public: |
37 | AliTagCreator(); | |
cb1645b7 | 38 | ~AliTagCreator(); |
39 | ||
c336835b | 40 | //____________________________________________________// |
4fd84456 | 41 | Bool_t MergeTags(); |
442646f2 | 42 | Bool_t MergeTags(TGridResult *result); |
4fd84456 | 43 | |
cb1645b7 | 44 | void SetSE(const char *se){fSE = se;} |
45 | void SetStorage(Int_t storage); | |
46 | void SetGridPath(const char *gridpath){fgridpath = gridpath;} | |
cb1645b7 | 47 | |
c336835b | 48 | Bool_t ReadGridCollection(TGridResult *result); |
49 | Bool_t ReadLocalCollection(const char *localpath); | |
50 | Bool_t ReadCAFCollection(const char *filename); | |
51 | ||
52 | //____________________________________________________// | |
b45e5084 | 53 | protected: |
b45e5084 | 54 | TString fSE; //the defined storage element |
28afeb2e | 55 | TString fgridpath; //the alien location of the tag files |
28afeb2e | 56 | Int_t fStorage; //0:local - 1:grid |
e16601cf | 57 | |
e16601cf | 58 | void CreateTag(TFile* file, const char *guid, const char *md5, const char *turl, Long64_t size, Int_t Counter); |
c336835b | 59 | void CreateTag(TFile* file, const char *filepath, Int_t Counter); |
e16601cf | 60 | |
b45e5084 | 61 | ClassDef(AliTagCreator,0) |
62 | }; | |
63 | ||
64 | #endif | |
65 |