1 #ifndef __HiEvtPlaneFlatten__
2 #define __HiEvtPlaneFlatten__
57 std::cout<<
"Too many cuts for flattening calculation. RESET to deaults"<<std::endl;
72 if(icent < 0 || icent >
hcentbins)
return -1;
74 if(ivtx < 0 || ivtx >
nvtxbins)
return -1;
76 if(cut<0 || cut>
hbins)
return -1;
80 void Fill(
double psi,
double vtx,
int centbin)
82 if(fabs(psi)>4 )
return;
97 double correction = 0;
116 if(ang<-
pi) ang+=2.*
pi;
117 if(ang>
pi) ang-=2.*
pi;
122 if(ang<-range) ang+=2*range;
123 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)