1 |
mzanetti |
1.1 |
#ifndef BINS_H
|
2 |
|
|
#define BINS_H
|
3 |
|
|
|
4 |
|
|
#include "TMath.h"
|
5 |
|
|
|
6 |
|
|
|
7 |
|
|
class Bins{
|
8 |
|
|
public:
|
9 |
|
|
const static int nRhoBins=40; //18
|
10 |
|
|
const static int nPtBins=20; //20
|
11 |
|
|
const static int Pt0=20; //20
|
12 |
|
|
const static int Pt1=2000; //1000
|
13 |
|
|
const static int Rho0=0; //2
|
14 |
|
|
const static int Rho1=40; //20
|
15 |
|
|
const static int PtLastExtend=4000; //3500
|
16 |
|
|
|
17 |
|
|
static int getBins(double *bins,int nBins,double MinBin=15.0,double MaxBin=1000.,bool log=false);
|
18 |
|
|
static int getBin(int nBins,double *bins,double value,double*x0=0,double*x1=0);
|
19 |
|
|
static void getBins_int( int nBins_total, Double_t* Lower, Double_t xmin, Double_t xmax, bool plotLog=true);
|
20 |
|
|
|
21 |
|
|
};
|
22 |
|
|
|
23 |
|
|
|
24 |
|
|
|
25 |
|
|
#endif
|