]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliSysInfo.h
Fixing CONSTANT_EXPRESSION_RESULT Coverity defect
[u/mrichter/AliRoot.git] / STEER / AliSysInfo.h
CommitLineData
0e8bc704 1#ifndef ALISYSINFO_H
2#define ALISYSINFO_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6//-------------------------------------------------------------------------
7// This is the class which is to be used during the writing of
8// simulated raw data (DDL files format).
9// It is using the root functionality in order to deal correctly
10// with little/big endian issue. By convention the detector raw
11// data payload is stored always with little endian (this corresponds
12// to the real life situation when the detector data is coming from
13// the hardware).
14//-------------------------------------------------------------------------
15
16#include <TObject.h>
17class TStopwatch;
18class TTree;
6efecea1 19class TMemStatManager;
0e8bc704 20
21class AliSysInfo : public TObject {
22public:
23 AliSysInfo();
24 static AliSysInfo * Instance();
6efecea1 25 static void AddStamp(const char *sname, Int_t id0=-1, Int_t id1=-1, Int_t id2=-1);
0e8bc704 26 static TTree * MakeTree(const char *lname);
6efecea1 27 static void OpenMemStat();
28 static void CloseMemStat();
29 static Bool_t Contain(const char * str1, const char * str2);
d1d8b044 30 typedef void (*StampCallback_t)(const Char_t * desription);
31 static void AddCallBack(StampCallback_t callback);
ab557934 32 static TTree* Test();
0e8bc704 33private:
34 AliSysInfo(const AliSysInfo& source);
35 AliSysInfo& operator= (const AliSysInfo& rec);
36
6efecea1 37 fstream *fSysWatch; // system watch - Memory and CPU usage
38 TStopwatch *fTimer; // timer
39 TMemStatManager *fMemStat;
0e8bc704 40 static AliSysInfo * fInstance; //instance pointer
d1d8b044 41 StampCallback_t *fCallBackFunc; // call back functions
42 Int_t fNCallBack; // number of call back functions
0e8bc704 43 ClassDef(AliSysInfo,0)
44};
45
46#endif