1 |
– |
// $Id$ |
2 |
– |
|
3 |
– |
#ifndef DATAUTIL_DEBUG_H |
4 |
– |
#define DATAUTIL_DEBUG_H |
5 |
– |
|
6 |
– |
#include <Rtypes.h> |
7 |
– |
#include <TError.h> |
8 |
– |
|
1 |
|
//-------------------------------------------------------------------------------------------------- |
2 |
+ |
// $Id$ |
3 |
|
// |
4 |
< |
// Debug |
4 |
> |
// Debug - detailed logging / debug scheme |
5 |
|
// |
6 |
< |
// Detailed logging / debug scheme: |
7 |
< |
// This class defines the debuging masks (EDebugMask), which |
8 |
< |
// are used with the MDB (MIT DeBug) macro together with |
9 |
< |
// the log levels to control the verbosity. |
10 |
< |
// As a rule of thumb: |
11 |
< |
// level 1 and 2 should not be used in (event) loops, |
12 |
< |
// level 3 and 4 might be used in loops. |
13 |
< |
// Please, do not introduce more levels! |
6 |
> |
// This class defines the debuging masks (EDebugMask), which are used with the MDB (MIT DeBug) |
7 |
> |
// macro together with the log levels to control the verbosity. For example you can do in |
8 |
> |
// your code: |
9 |
> |
// MDB(kAnalysis, 2) |
10 |
> |
// Info("AddFile", "Added %s to list of files.", pname); |
11 |
> |
// |
12 |
> |
// This will printout the Info message provided that the gDebugLevel is >=2 (and provided |
13 |
> |
// the gDebugMask contains the kAnalysis bit. |
14 |
|
// |
15 |
< |
// Authors: C.Loizides |
15 |
> |
// As a rule of thumb: |
16 |
> |
// level 1 and 2 should not be used in (event) loops, level 3 and 4 might be used in loops. |
17 |
|
// |
18 |
+ |
// Please, do not introduce more levels! |
19 |
+ |
// |
20 |
+ |
// Authors: C.Loizides |
21 |
|
//-------------------------------------------------------------------------------------------------- |
22 |
|
|
23 |
+ |
#ifndef MITANA_DATAUTIL_DEBUG_H |
24 |
+ |
#define MITANA_DATAUTIL_DEBUG_H |
25 |
+ |
|
26 |
+ |
#include <Rtypes.h> |
27 |
+ |
#include <TError.h> |
28 |
+ |
|
29 |
|
namespace mithep |
30 |
|
{ |
31 |
|
class Debug |
44 |
|
virtual ~Debug() {} |
45 |
|
Debug(const Debug &cpy); |
46 |
|
|
47 |
< |
ClassDef(Debug, 0) // Defines different debug masks |
45 |
< |
|
47 |
> |
ClassDef(Debug, 0) // Defines different debug masks |
48 |
|
}; |
49 |
< |
|
48 |
< |
} /*namespace mithep*/ |
49 |
> |
} |
50 |
|
|
51 |
|
R__EXTERN mithep::Debug::EDebugMask gDebugMask; |
52 |
|
R__EXTERN Int_t gDebugLevel; |
60 |
|
#define MitAssertStatic(f,e) \ |
61 |
|
if (!(e)) ::Fatal(f, kAssertMsg, _QUOTE_(e), __LINE__, __FILE__) |
62 |
|
|
63 |
< |
#endif /*DATAUTIL_DEBUG_H*/ |
63 |
> |
#endif |