EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairRunInfo.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file FairRunInfo.h
1 #ifndef FAIRRUNINFO_H
2 #define FAIRRUNINFO_H
3 
4 
5 #include "TObject.h"
6 #include "TSystem.h"
7 #include "TTimeStamp.h"
8 
9 #include <vector>
10 
11 class FairLogger;
12 class TList;
13 
14 class FairRunInfo : public TObject
15 {
16 
17  public:
18 
19  FairRunInfo();
20 
21  ~FairRunInfo();
22 
23  void StoreInfo();
24 
25  void WriteInfo();
26 
27  void Reset();
28 
29  private:
30 
31  TTimeStamp fTimeStamp;
32  CpuInfo_t fCpuInfo;
33  MemInfo_t fMemInfo;
34  ProcInfo_t fProcInfo;
35  std::vector<Double_t> fTimeDiff;
36  std::vector<Double_t> fTime;
37  std::vector<Long_t> fResidentMemory;
38  std::vector<Long_t> fVirtualMemory;
40 
42 
43  void PrintInfo();
44 
45  void GetInfo();
46 
47  void CreateAndFillHistograms(TList* histoList);
48 
49  void WriteHistosToFile(TList* histoList);
50 
51  FairRunInfo(const FairRunInfo&);
53 
54  ClassDef(FairRunInfo,1)
55 
56 };
57 #endif