AlcapDAQ  1
Macros | Functions
Mql.h File Reference
#include <math.h>

Go to the source code of this file.

Macros

#define MIN(a, b)   (((a) < (b))? (a) : (b))
 
#define MAX(a, b)   (((a) > (b))? (a) : (b))
 

Functions

static double safe_fmod (double x, double y)
 
TTree * MqlRegisterTree (char *treeName)
 

Macro Definition Documentation

#define MAX (   a,
 
)    (((a) > (b))? (a) : (b))

Definition at line 11 of file Mql.h.

Referenced by MMuPC1AnalysisMQL(), MMuSCAnalysisMQL(), scheduler(), and vme_open().

#define MIN (   a,
 
)    (((a) < (b))? (a) : (b))

Function Documentation

TTree* MqlRegisterTree ( char *  treeName)
static double safe_fmod ( double  x,
double  y 
)
inlinestatic

Definition at line 14 of file Mql.h.

15 {
16  if(x >= 0) return fmod(x, y);
17  else {
18  x += (((int)(-x/y))+1)*y;
19  return fmod(x,y);
20  }
21 }