13 #if defined(__GNUC__) && ! defined(__CINT__)
14 # define __PRETTYF__ __PRETTY_FUNCTION__
16 # define __PRETTYF__ __FILE__
21 #ifndef FORCEDDEBUGMESSAGE
22 #define FORCEDDEBUGMESSAGE(x) cout << "##### " << __PRETTYF__ << " ##### " << x << endl;
23 #define DEBUGMESSAGE(x) if (StMuDebug::level()> 0) cout << "##### " << __PRETTYF__ << " ##### " << x << endl;
24 #define DEBUGMESSAGE1(x) if (StMuDebug::level()>=1) cout << "##### " << __PRETTYF__ << " ##### " << x << endl;
25 #define DEBUGMESSAGE2(x) if (StMuDebug::level()>=2) cout << "##### " << __PRETTYF__ << " ##### " << x << endl;
26 #define DEBUGMESSAGE3(x) if (StMuDebug::level()>=3) cout << "##### " << __PRETTYF__ << " ##### " << x << endl;
29 #ifndef FORCEDDEBUGVALUE
30 #define FORCEDDEBUGVALUE(x) cout << "##### " << __PRETTYF__ << " ##### " << (#x) << "=" << x << endl;
31 #define DEBUGVALUE(x) if (StMuDebug::level()> 0) cout << "##### " << __PRETTYF__ << " ##### " << (#x) << "=" << x << endl;
32 #define DEBUGVALUE1(x) if (StMuDebug::level()>=1) cout << "##### " << __PRETTYF__ << " ##### " << (#x) << "=" << x << endl;
33 #define DEBUGVALUE2(x) if (StMuDebug::level()>=2) cout << "##### " << __PRETTYF__ << " ##### " << (#x) << "=" << x << endl;
34 #define DEBUGVALUE3(x) if (StMuDebug::level()>=3) cout << "##### " << __PRETTYF__ << " ##### " << (#x) << "=" << x << endl;
38 #define IFDEBUG(x) if (StMuDebug::level()> 0) { DEBUGMESSAGE(""); (x);}
39 #define IFDEBUG1(x) if (StMuDebug::level()>=1) { DEBUGMESSAGE(""); (x);}
40 #define IFDEBUG2(x) if (StMuDebug::level()>=2) { DEBUGMESSAGE(""); (x);}
41 #define IFDEBUG3(x) if (StMuDebug::level()>=3) { DEBUGMESSAGE(""); (x);}
81 static int absolut(
int i) {
return (i>0) ? i : -i; }
static void off()
switch of debug level, but remember last
static int absolut(int i)
returns the absolute of the debug level
static void setLevel(unsigned int level)
sets the debug level
static int mDebug
debug level
static int level()
returns debug level
static void on()
switch debug output on ( to last known level)