#ifndef ALIFILETAG_H #define ALIFILETAG_H /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ /* $Id: AliLHCTag.h 14745 2006-08-04 15:48:44Z panos $ */ //------------------------------------------------------------------------- // Class AliFileTag // This is the class to deal with the tags for the file level // // Origin: Adam Kisiel, CERN, Adam.Kisiel@cern.ch //------------------------------------------------------------------------- #include #include #include "TObjArray.h" #include "AliEventTag.h" //______________________________________________________________________________ class AliFileTag : public TObject { public: AliFileTag(); AliFileTag(const AliFileTag &tag); virtual ~AliFileTag(); AliFileTag &operator=(const AliFileTag &tag); //____________________________________________________// void SetGUID(TString Pid) { fGUID = Pid; } void SetPath(TString Pid) { fPath = Pid; } void SetMD5(TString Pid) {fmd5 = Pid; } void SetTURL(TString Pid) {fturl = Pid; } void SetSize(Long64_t i) {fsize = i; } void AddEventTag(const AliEventTag &t); void CopyFileInfo(const AliFileTag &tag); //____________________________________________________// const char *GetGUID() const {return fGUID.Data();} const char *GetPath() const {return fPath.Data();} const char *GetMD5() const {return fmd5.Data();} const char *GetTURL() const {return fturl.Data();} Long64_t GetSize() const {return fsize;} Int_t GetNEvents() const {return fEventTags.GetEntries(); } const AliEventTag *GetEventTag(Int_t iev) const {return (const AliEventTag *)fEventTags.At(iev);} //____________________________________________________// private: TString fGUID; //The unique identifier of the file TString fPath; //The file's path (local storage) Long64_t fsize; //the size of the file TString fmd5; //another file identifier TString fturl; //the file's url TObjArray fEventTags; //array with all event tags ClassDef(AliFileTag,1) //(ClassName, ClassVersion) }; //______________________________________________________________________________ #endif