]>
Commit | Line | Data |
---|---|---|
04cb11d4 | 1 | #ifndef ALIFILETAG_H |
2 | #define ALIFILETAG_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | ||
7 | /* $Id: AliLHCTag.h 14745 2006-08-04 15:48:44Z panos $ */ | |
8 | ||
9 | //------------------------------------------------------------------------- | |
10 | // Class AliFileTag | |
11 | // This is the class to deal with the tags for the file level | |
12 | // | |
13 | // Origin: Adam Kisiel, CERN, Adam.Kisiel@cern.ch | |
14 | //------------------------------------------------------------------------- | |
15 | ||
16 | #include <TObject.h> | |
17 | #include <TString.h> | |
18 | #include "TObjArray.h" | |
19 | #include "AliEventTag.h" | |
20 | ||
21 | //______________________________________________________________________________ | |
22 | class AliFileTag : public TObject { | |
23 | public: | |
24 | AliFileTag(); | |
25 | AliFileTag(const AliFileTag &tag); | |
26 | virtual ~AliFileTag(); | |
27 | ||
28 | AliFileTag &operator=(const AliFileTag &tag); | |
29 | ||
30 | //____________________________________________________// | |
31 | void SetGUID(TString Pid) { fGUID = Pid; } | |
32 | void SetPath(TString Pid) { fPath = Pid; } | |
33 | void SetMD5(TString Pid) {fmd5 = Pid; } | |
34 | void SetTURL(TString Pid) {fturl = Pid; } | |
35 | void SetSize(Long64_t i) {fsize = i; } | |
36 | void AddEventTag(const AliEventTag &t); | |
37 | ||
38 | void CopyFileInfo(const AliFileTag &tag); | |
39 | ||
40 | //____________________________________________________// | |
41 | const char *GetGUID() const {return fGUID.Data();} | |
42 | const char *GetPath() const {return fPath.Data();} | |
43 | const char *GetMD5() const {return fmd5.Data();} | |
44 | const char *GetTURL() const {return fturl.Data();} | |
45 | Long64_t GetSize() const {return fsize;} | |
46 | Int_t GetNEvents() const {return fEventTags.GetEntries(); } | |
47 | const AliEventTag *GetEventTag(Int_t iev) const {return (const AliEventTag *)fEventTags.At(iev);} | |
48 | ||
49 | //____________________________________________________// | |
50 | private: | |
51 | TString fGUID; //The unique identifier of the file | |
52 | TString fPath; //The file's path (local storage) | |
53 | Long64_t fsize; //the size of the file | |
54 | TString fmd5; //another file identifier | |
55 | TString fturl; //the file's url | |
56 | TObjArray fEventTags; //array with all event tags | |
57 | ||
58 | ClassDef(AliFileTag,1) //(ClassName, ClassVersion) | |
59 | }; | |
60 | //______________________________________________________________________________ | |
61 | ||
62 | #endif |