3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
7 /* $Id: AliLHCTag.h 14745 2006-08-04 15:48:44Z panos $ */
9 //-------------------------------------------------------------------------
11 // This is the class to deal with the tags for the file level
13 // Origin: Adam Kisiel, CERN, Adam.Kisiel@cern.ch
14 //-------------------------------------------------------------------------
18 #include "TObjArray.h"
19 #include "AliEventTag.h"
21 //______________________________________________________________________________
22 class AliFileTag : public TObject {
25 AliFileTag(const AliFileTag &tag);
26 virtual ~AliFileTag();
28 AliFileTag &operator=(const AliFileTag &tag);
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);
38 void CopyFileInfo(const AliFileTag &tag);
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);}
49 //____________________________________________________//
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
58 ClassDef(AliFileTag,1) //(ClassName, ClassVersion)
60 //______________________________________________________________________________