FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairFileHeader.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 // -------------------------------------------------------------------------
9 // ----- FairFileHeader source file -----
10 // ----- Created 20/04/11 M.Al-Turany -----
11 // -------------------------------------------------------------------------
12 
13 #ifndef FAIRFILEHEADER_H
14 #define FAIRFILEHEADER_H
15 
16 #include <Rtypes.h> // for UInt_t, etc
17 #include <TNamed.h> // for TNamed
18 #include <TString.h> // for TString
19 
20 class FairFileInfo;
21 class TFile;
22 class TList;
23 
28 class FairFileHeader : public TNamed
29 {
30  public:
33 
35  void AddTaskClassName(TString taskname);
36 
40  void SetRunId(UInt_t runid) { fRunId = runid; }
41 
43  UInt_t GetRunId() { return fRunId; }
44 
46  TList* GetListOfTasks() { return fTaskList; }
47 
48  void AddInputFile(TFile* f, UInt_t id, UInt_t ChId);
49 
53  virtual ~FairFileHeader();
54 
55  FairFileInfo* GetFileInfo(UInt_t id, UInt_t ChId);
56 
57  protected:
59  UInt_t fRunId;
60 
62  TList* fTaskList;
63 
65  TList* fFileList;
66 
67  private:
69  FairFileHeader& operator=(const FairFileHeader&);
70 
71  ClassDef(FairFileHeader, 2);
72 };
73 
74 #endif
void AddTaskClassName(TString taskname)
UInt_t GetRunId()
void SetRunId(UInt_t runid)
void AddInputFile(TFile *f, UInt_t id, UInt_t ChId)
FairFileInfo * GetFileInfo(UInt_t id, UInt_t ChId)
TList * GetListOfTasks()
virtual ~FairFileHeader()