1 #ifndef __HiEvtPlaneFlatten__
2 #define __HiEvtPlaneFlatten__
58 void Init(
int order,
int ncentbins,
const int centbinCompression, std::string
tag,
int vord)
67 std::cout<<
"Too many cuts for flattening calculation. RESET to deaults"<<std::endl;
82 if(icent < 0 || icent >
hcentbins)
return -1;
84 if(ivtx < 0 || ivtx >
nvtxbins)
return -1;
86 if(cut<0 || cut>
hbins)
return -1;
90 void Fill(
double psi,
double vtx,
int centbin)
92 if(fabs(psi)>4 )
return;
107 double correction = 0;
126 if(ang<-
pi) ang+=2.*
pi;
127 if(ang>
pi) ang-=2.*
pi;
132 if(ang<-range) ang+=2*range;
133 if(ang>range) ang-=2*range;
double GetFlatPsi(double psi, double vtx, double cent)
Double_t bounds2(Double_t ang)
void Init(int order, int ncentbins, const int centbinCompression, std::string tag, int vord)
Sin< T >::type sin(const T &t)
int GetCutIndx(int centbin, double vtx, int iord)
std::map< std::string, int, std::less< std::string > > psi
void SetXDB(int indx, double val)
void SetYDB(int indx, double val)
Cos< T >::type cos(const T &t)
Double_t bounds(Double_t ang)
void Fill(double psi, double vtx, int centbin)