]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliSysInfo.h
c45a45a08cbfb9e3988408328e9a7440f80fd33a
[u/mrichter/AliRoot.git] / STEER / AliSysInfo.h
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>
17 class TStopwatch;
18 class TTree;
19
20 class AliSysInfo : public TObject {
21 public:
22   AliSysInfo();
23   static AliSysInfo * Instance();
24   static void AddStamp(const char *stamp);
25   void Print(Option_t* option = "") const;
26   static TTree * MakeTree(const char *lname);
27 private:
28   AliSysInfo(const AliSysInfo& source);
29   AliSysInfo& operator= (const AliSysInfo& rec);
30
31   fstream        *fSysWatch;       // system watch - Memory and CPU usage 
32   TStopwatch     *fTimer;          // timer
33   static AliSysInfo *   fInstance; //instance pointer
34   ClassDef(AliSysInfo,0)
35 };
36
37 #endif