#include <HiEvtPlaneFlatten.h>
Public Member Functions | |
Double_t | bounds (Double_t ang) |
Double_t | bounds2 (Double_t ang) |
void | Fill (double psi, double vtx, int centbin) |
double | GetCnt (int bin) |
int | GetCutIndx (int centbin, double vtx, int iord) |
double | GetFlatPsi (double psi, double vtx, double cent) |
int | GetHBins () |
double | GetX (int bin) |
double | GetY (int bin) |
HiEvtPlaneFlatten () | |
void | Init (int order, int ncentbins, const int centbinCompression, std::string tag, int vord) |
void | SetXDB (int indx, double val) |
void | SetYDB (int indx, double val) |
~HiEvtPlaneFlatten () | |
Private Attributes | |
int | centbinComp |
double | delvtx |
double | flatCnt [MAXCUT] |
double | flatX [MAXCUT] |
double | flatXDB [MAXCUT] |
double | flatY [MAXCUT] |
double | flatYDB [MAXCUT] |
int | hbins |
int | hcentbins |
int | hOrder |
double | minvtx |
int | nvtxbins |
double | pi |
int | vorder |
Definition at line 45 of file HiEvtPlaneFlatten.h.
HiEvtPlaneFlatten::HiEvtPlaneFlatten | ( | ) | [inline, explicit] |
HiEvtPlaneFlatten::~HiEvtPlaneFlatten | ( | ) | [inline] |
Definition at line 118 of file HiEvtPlaneFlatten.h.
{}
Double_t HiEvtPlaneFlatten::bounds | ( | Double_t | ang | ) | [inline] |
Double_t HiEvtPlaneFlatten::bounds2 | ( | Double_t | ang | ) | [inline] |
Definition at line 130 of file HiEvtPlaneFlatten.h.
Referenced by GetFlatPsi().
void HiEvtPlaneFlatten::Fill | ( | double | psi, |
double | vtx, | ||
int | centbin | ||
) | [inline] |
Definition at line 90 of file HiEvtPlaneFlatten.h.
References funct::cos(), flatCnt, flatX, flatY, GetCutIndx(), hOrder, gen::k, funct::sin(), and vorder.
double HiEvtPlaneFlatten::GetCnt | ( | int | bin | ) | [inline] |
Definition at line 122 of file HiEvtPlaneFlatten.h.
References newFWLiteAna::bin, and flatCnt.
int HiEvtPlaneFlatten::GetCutIndx | ( | int | centbin, |
double | vtx, | ||
int | iord | ||
) | [inline] |
Definition at line 78 of file HiEvtPlaneFlatten.h.
References centbinComp, GOODCOLL_filter_cfg::cut, delvtx, hbins, hcentbins, hOrder, minvtx, and nvtxbins.
Referenced by Fill(), and GetFlatPsi().
double HiEvtPlaneFlatten::GetFlatPsi | ( | double | psi, |
double | vtx, | ||
double | cent | ||
) | [inline] |
Definition at line 105 of file HiEvtPlaneFlatten.h.
References bounds(), bounds2(), funct::cos(), flatXDB, flatYDB, GetCutIndx(), hOrder, gen::k, funct::sin(), and vorder.
int HiEvtPlaneFlatten::GetHBins | ( | ) | [inline] |
double HiEvtPlaneFlatten::GetX | ( | int | bin | ) | [inline] |
Definition at line 120 of file HiEvtPlaneFlatten.h.
References newFWLiteAna::bin, and flatX.
double HiEvtPlaneFlatten::GetY | ( | int | bin | ) | [inline] |
Definition at line 121 of file HiEvtPlaneFlatten.h.
References newFWLiteAna::bin, and flatY.
void HiEvtPlaneFlatten::Init | ( | int | order, |
int | ncentbins, | ||
const int | centbinCompression, | ||
std::string | tag, | ||
int | vord | ||
) | [inline] |
Definition at line 58 of file HiEvtPlaneFlatten.h.
References centbinComp, gather_cfg::cout, flatCnt, flatX, flatY, hbins, hcentbins, hOrder, i, MAXCUT, nvtxbins, and vorder.
{ hOrder = order; //order of flattening vorder = vord; //1(v1), 2(v2), 3(v3), 4(v4) hcentbins = ncentbins; centbinComp = centbinCompression; if(hcentbins<=0) hcentbins = 1; hbins = hcentbins*nvtxbins*hOrder; if(hbins>MAXCUT) { std::cout<<"Too many cuts for flattening calculation. RESET to deaults"<<std::endl; hcentbins = 1; hOrder = 21; } for(int i = 0; i<hbins; i++) { flatX[i]=0; flatY[i]=0; flatCnt[i]=0; } }
void HiEvtPlaneFlatten::SetXDB | ( | int | indx, |
double | val | ||
) | [inline] |
void HiEvtPlaneFlatten::SetYDB | ( | int | indx, |
double | val | ||
) | [inline] |
int HiEvtPlaneFlatten::centbinComp [private] |
Definition at line 144 of file HiEvtPlaneFlatten.h.
Referenced by GetCutIndx(), and Init().
double HiEvtPlaneFlatten::delvtx [private] |
Definition at line 151 of file HiEvtPlaneFlatten.h.
Referenced by GetCutIndx(), and HiEvtPlaneFlatten().
double HiEvtPlaneFlatten::flatCnt[MAXCUT] [private] |
Definition at line 141 of file HiEvtPlaneFlatten.h.
double HiEvtPlaneFlatten::flatX[MAXCUT] [private] |
Definition at line 137 of file HiEvtPlaneFlatten.h.
double HiEvtPlaneFlatten::flatXDB[MAXCUT] [private] |
Definition at line 139 of file HiEvtPlaneFlatten.h.
Referenced by GetFlatPsi(), and SetXDB().
double HiEvtPlaneFlatten::flatY[MAXCUT] [private] |
Definition at line 138 of file HiEvtPlaneFlatten.h.
double HiEvtPlaneFlatten::flatYDB[MAXCUT] [private] |
Definition at line 140 of file HiEvtPlaneFlatten.h.
Referenced by GetFlatPsi(), and SetYDB().
int HiEvtPlaneFlatten::hbins [private] |
Definition at line 145 of file HiEvtPlaneFlatten.h.
Referenced by GetCutIndx(), GetHBins(), and Init().
int HiEvtPlaneFlatten::hcentbins [private] |
Definition at line 143 of file HiEvtPlaneFlatten.h.
Referenced by GetCutIndx(), HiEvtPlaneFlatten(), and Init().
int HiEvtPlaneFlatten::hOrder [private] |
Definition at line 142 of file HiEvtPlaneFlatten.h.
Referenced by Fill(), GetCutIndx(), GetFlatPsi(), HiEvtPlaneFlatten(), and Init().
double HiEvtPlaneFlatten::minvtx [private] |
Definition at line 150 of file HiEvtPlaneFlatten.h.
Referenced by GetCutIndx(), and HiEvtPlaneFlatten().
int HiEvtPlaneFlatten::nvtxbins [private] |
Definition at line 149 of file HiEvtPlaneFlatten.h.
Referenced by GetCutIndx(), HiEvtPlaneFlatten(), and Init().
double HiEvtPlaneFlatten::pi [private] |
Definition at line 147 of file HiEvtPlaneFlatten.h.
Referenced by bounds(), bounds2(), and HiEvtPlaneFlatten().
int HiEvtPlaneFlatten::vorder [private] |
Definition at line 146 of file HiEvtPlaneFlatten.h.
Referenced by bounds2(), Fill(), GetFlatPsi(), HiEvtPlaneFlatten(), and Init().