1 #ifndef __HiEvtPlaneFlatten__
2 #define __HiEvtPlaneFlatten__
66 std::cout<<
"Too many cuts for flattening calculation. RESET to deaults"<<std::endl;
81 if(icent < 0 || icent >
hcentbins)
return -1;
83 if(ivtx < 0 || ivtx >
nvtxbins)
return -1;
85 if(cut<0 || cut>
hbins)
return -1;
89 void Fill(
double psi,
double vtx,
int centbin)
91 if(fabs(psi)>4 )
return;
106 double correction = 0;
125 if(ang<-
pi) ang+=2.*
pi;
126 if(ang>
pi) ang-=2.*
pi;
131 if(ang<-range) ang+=2*range;
132 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)