Project
Loading...
Searching...
No Matches
FairRunInfo.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#ifndef FAIRRUNINFO_H
9#define FAIRRUNINFO_H
10
11#include <Rtypes.h> // for Double_t, Long_t, etc
12#include <TObject.h> // for TObject
13#include <TSystem.h> // for CpuInfo_t, MemInfo_t, etc
14#include <TTimeStamp.h> // for TTimeStamp
15#include <vector> // for vector
16
17class TList;
18
19class FairRunInfo : public TObject
20{
21 public:
24
25 void StoreInfo();
26 void WriteInfo();
27 void Reset();
28
29 private:
30 TTimeStamp fTimeStamp;
31 CpuInfo_t fCpuInfo;
32 MemInfo_t fMemInfo;
33 ProcInfo_t fProcInfo;
34 std::vector<Double_t> fTimeDiff;
35 std::vector<Double_t> fTime;
36 std::vector<Long_t> fResidentMemory;
37 std::vector<Long_t> fVirtualMemory;
38
39 void CalculateTimeDifference();
40 void PrintInfo();
41 void GetInfo();
42 void CreateAndFillHistograms(TList* histoList);
43 void WriteHistosToFile(TList* histoList);
44
46 FairRunInfo& operator=(const FairRunInfo&);
47
48 ClassDef(FairRunInfo, 2);
49};
50
51#endif
void StoreInfo()
void WriteInfo()