AliPhysics  2c6b7ad (2c6b7ad)
AliForwardFlowTaskQC::VertexBin Class Reference

#include <AliForwardFlowTaskQC.h>

Inheritance diagram for AliForwardFlowTaskQC::VertexBin:

Public Types

enum  {
  kW2Two = 1, kW2, kW4Four, kW4,
  kCosphi1phi2, kSinphi1phi2, kCosphi1phi2phi3m, kSinphi1phi2phi3m,
  k3pWeight, kCosphi1phi2phi3p, kSinphi1phi2phi3p
}
 

Public Member Functions

 VertexBin ()
 
 VertexBin (Int_t vLow, Int_t vHigh, UShort_t moment, TString type, UShort_t flags, Double_t cut=-1, Double_t etaGap=-1.)
 
 VertexBin (const VertexBin &o)
 
VertexBinoperator= (const VertexBin &v)
 
 ~VertexBin ()
 
void AddOutput (TList *list, TAxis *centAxis)
 
Bool_t FillHists (TH2D &dNdetadphi, Double_t cent, UShort_t mode)
 
Bool_t FillTracks (TObjArray *trList, AliESDEvent *esd, AliAnalysisFilter *trFilter, UShort_t mode)
 
void CumulantsAccumulate (Double_t cent)
 
void CumulantsAccumulate3Cor (Double_t cent)
 
void GetLimits (Int_t bin, Int_t &aLow, Int_t &aHigh, Int_t &bLow, Int_t &bHigh) const
 
void CumulantsTerminate (TList *inlist, TList *outlist)
 

Protected Member Functions

void CalculateReferenceFlow (CumuHistos &cumu2h, CumuHistos &cumu4h, TH2I *quality, TH1D *chist, TH2D *dNdetaRef) const
 
void CalculateDifferentialFlow (CumuHistos &cumu2h, CumuHistos &cumu4h, TH2I *quality, TH2D *dNdetaDiff) const
 
void Calculate3CorFlow (CumuHistos &cumu2h, TH2I *quality, TH1D *chist, TH2D *dNdetaRef, TH2D *dNdetaDiff) const
 
void SolveCoupledFlowEquations (CumuHistos &cumu, Char_t type) const
 
Double_t CalculateNUAMatrixElement (Int_t n, Int_t m, Char_t type, Int_t binA, Int_t cBin) const
 
void AddVertexBins (CumuHistos &cumu, TList *list, UInt_t nNUA) const
 
Int_t GetBinNumberCos (Int_t n=0) const
 
Int_t GetBinNumberSin (Int_t n=0) const
 
void SetupNUALabels (TAxis *a) const
 
TH2I * MakeQualityHist (const Char_t *name) const
 
TH2DMakeOutputHist (Int_t qc, Int_t n, const Char_t *ctype, UInt_t nua) const
 

Protected Attributes

UShort_t fMaxMoment
 
Int_t fVzMin
 
Int_t fVzMax
 
TString fType
 
UShort_t fFlags
 
Double_t fSigmaCut
 
Double_t fEtaGap
 
Double_t fEtaLims [6]
 
TH2DfCumuRef
 
TH2DfCumuDiff
 
CumuHistos fCumuHists
 
TH3DfCumuNUARef
 
TH3DfCumuNUADiff
 
TH2FfdNdedpRefAcc
 
TH2FfdNdedpDiffAcc
 
TH2FfOutliers
 
UShort_t fDebug
 

Detailed Description

Nested class to handle cumulant calculations in vertex bins. Used internally and never streamed.

Definition at line 307 of file AliForwardFlowTaskQC.h.

Member Enumeration Documentation

anonymous enum
Enumerator
kW2Two 
kW2 
kW4Four 
kW4 
kCosphi1phi2 
kSinphi1phi2 
kCosphi1phi2phi3m 
kSinphi1phi2phi3m 
k3pWeight 
kCosphi1phi2phi3p 
kSinphi1phi2phi3p 

Definition at line 417 of file AliForwardFlowTaskQC.h.

Constructor & Destructor Documentation

AliForwardFlowTaskQC::VertexBin::VertexBin ( )

Definition at line 984 of file AliForwardFlowTaskQC.cxx.

AliForwardFlowTaskQC::VertexBin::VertexBin ( Int_t  vLow,
Int_t  vHigh,
UShort_t  moment,
TString  type,
UShort_t  flags,
Double_t  cut = -1,
Double_t  etaGap = -1. 
)

Constructor

Parameters
vLowMin vertex z-coordinate
vHighMax vertex z-coordinate
momentFlow moment
typeData type (FMD/VZERO/SPD/FMDTR/SPDTR/MC)
flagsFlags
cutCut value
etaGap\(\eta\) gap

Definition at line 1009 of file AliForwardFlowTaskQC.cxx.

AliForwardFlowTaskQC::VertexBin::VertexBin ( const VertexBin o)
inline

Copy constructor

Parameters
oObject to copy from
Returns
VertexBin

Definition at line 336 of file AliForwardFlowTaskQC.h.

AliForwardFlowTaskQC::VertexBin::~VertexBin ( )
inline

Destructor

Definition at line 348 of file AliForwardFlowTaskQC.h.

Member Function Documentation

void AliForwardFlowTaskQC::VertexBin::AddOutput ( TList list,
TAxis centAxis 
)

Add vertex bin output to list

Parameters
listHistograms are added to this list
centAxisAxis to handle centrality binning
Returns
void

Definition at line 1101 of file AliForwardFlowTaskQC.cxx.

Referenced by AliForwardMCFlowTaskQC::InitHists(), and AliForwardFlowTaskQC::InitHists().

void AliForwardFlowTaskQC::VertexBin::AddVertexBins ( CumuHistos cumu,
TList list,
UInt_t  nNUA 
) const
protected

Adds up the vertex bins to master profiles

Parameters
cumuQC histos
listoutput list
nNUAnumber of nua calculations

Definition at line 2680 of file AliForwardFlowTaskQC.cxx.

Referenced by CumulantsTerminate().

void AliForwardFlowTaskQC::VertexBin::Calculate3CorFlow ( CumuHistos cumu2h,
TH2I *  quality,
TH1D chist,
TH2D dNdetaRef,
TH2D dNdetaDiff 
) const
protected

Calculate 3 correlator ref and fiff flow

Parameters
cumu2hQC2 histos
qualityQC Quality diag. histo
chistCentrality histogram
dNdetaRefdN/deta histogram
dNdetaDiffdN/deta histogram

Definition at line 2289 of file AliForwardFlowTaskQC.cxx.

Referenced by CumulantsTerminate().

void AliForwardFlowTaskQC::VertexBin::CalculateDifferentialFlow ( CumuHistos cumu2h,
CumuHistos cumu4h,
TH2I *  quality,
TH2D dNdetaDiff 
) const
protected

Calculate differential flow

Parameters
cumu2hQC2 histos
cumu4hQC4 histos
qualityQC Quality diag. histo
dNdetaDiffdN/deta histogram

Definition at line 2120 of file AliForwardFlowTaskQC.cxx.

Referenced by CumulantsTerminate().

Double_t AliForwardFlowTaskQC::VertexBin::CalculateNUAMatrixElement ( Int_t  n,
Int_t  m,
Char_t  type,
Int_t  binA,
Int_t  cBin 
) const
protected

Calculate NUA matrix elements to fill into the matrix

Parameters
nrow
mcolumn
typereference of differential flow ('r'/'d'/'a'/'b')
binAEta bin of phi1
cBinCentrality bin
Returns
maxtrix element

Definition at line 2523 of file AliForwardFlowTaskQC.cxx.

Referenced by SolveCoupledFlowEquations().

void AliForwardFlowTaskQC::VertexBin::CalculateReferenceFlow ( CumuHistos cumu2h,
CumuHistos cumu4h,
TH2I *  quality,
TH1D chist,
TH2D dNdetaRef 
) const
protected

Calculate reference flow

Parameters
cumu2hQC2 histos
cumu4hQC4 histos
qualityQC Quality diag. histo
chistCentrality histogram
dNdetaRefdN/deta histogram

Definition at line 1975 of file AliForwardFlowTaskQC.cxx.

Referenced by CumulantsTerminate().

void AliForwardFlowTaskQC::VertexBin::CumulantsAccumulate ( Double_t  cent)

Do cumulants calculations for current event with centrality cent

Parameters
centEvent centrality

Definition at line 1436 of file AliForwardFlowTaskQC.cxx.

Referenced by AliForwardFlowTaskQC::FillVtxBinList(), and AliForwardFlowTaskQC::FillVtxBinListEtaGap().

void AliForwardFlowTaskQC::VertexBin::CumulantsAccumulate3Cor ( Double_t  cent)

Do 3 correlator cumulants calculations for current event with centrality cent

Parameters
centEvent centrality

Definition at line 1699 of file AliForwardFlowTaskQC.cxx.

Referenced by AliForwardFlowTaskQC::FillVtxBinList3Cor().

void AliForwardFlowTaskQC::VertexBin::CumulantsTerminate ( TList inlist,
TList outlist 
)

Finish cumulants calculations. Takes input and output lists in case Terminate is called separately

Parameters
inlistList with input histograms
outlistList with output histograms

Definition at line 1790 of file AliForwardFlowTaskQC.cxx.

Referenced by AliForwardFlowTaskQC::EndVtxBinList().

Bool_t AliForwardFlowTaskQC::VertexBin::FillHists ( TH2D dNdetadphi,
Double_t  cent,
UShort_t  mode 
)

Fill reference and differential flow histograms for analysis using histograms as input

Parameters
dNdetadphi2D data histogram
centCentrality
modefill ref/diff or both
Returns
false if bad event (det. hotspot)

Definition at line 1253 of file AliForwardFlowTaskQC.cxx.

Referenced by AliForwardFlowTaskQC::FillVtxBinList(), AliForwardFlowTaskQC::FillVtxBinList3Cor(), and AliForwardFlowTaskQC::FillVtxBinListEtaGap().

Bool_t AliForwardFlowTaskQC::VertexBin::FillTracks ( TObjArray trList,
AliESDEvent esd,
AliAnalysisFilter *  trFilter,
UShort_t  mode 
)

Fill reference and differential flow histograms for analysis using tracks as input

Parameters
trListArray with tracks
esdESD event
trFilteranalysis filter
modefill ref/diff or both
Returns
false if bad event (det. hotspot)

Definition at line 1351 of file AliForwardFlowTaskQC.cxx.

Referenced by AliForwardFlowTaskQC::FillTracks().

Int_t AliForwardFlowTaskQC::VertexBin::GetBinNumberCos ( Int_t  n = 0) const
protected

Get the bin number of <<cos(nphi)>>

Parameters
nmoment
Returns
bin number

Definition at line 2741 of file AliForwardFlowTaskQC.cxx.

Referenced by Calculate3CorFlow(), CalculateDifferentialFlow(), CalculateNUAMatrixElement(), CalculateReferenceFlow(), CumulantsAccumulate(), CumulantsAccumulate3Cor(), FillHists(), and FillTracks().

Int_t AliForwardFlowTaskQC::VertexBin::GetBinNumberSin ( Int_t  n = 0) const
protected
void AliForwardFlowTaskQC::VertexBin::GetLimits ( Int_t  bin,
Int_t aLow,
Int_t aHigh,
Int_t bLow,
Int_t bHigh 
) const

Get limits to do reference flow calculations for 3 correlator method

Parameters
binDifferential bin
aLowLowest bin to be used for v_A
aHighHighest bin to be used for v_A
bLowLowest bin to be used for v_B
bHighHighest bin to be used for v_B

Definition at line 1628 of file AliForwardFlowTaskQC.cxx.

Referenced by Calculate3CorFlow(), CalculateNUAMatrixElement(), and CumulantsAccumulate3Cor().

TH2D * AliForwardFlowTaskQC::VertexBin::MakeOutputHist ( Int_t  qc,
Int_t  n,
const Char_t ctype,
UInt_t  nua 
) const
protected

Make output histogram

Parameters
qc# of particle correlations
nflow moment
ctypeType of flow
nuaFor nua corrected hists
Returns
hist

Definition at line 2828 of file AliForwardFlowTaskQC.cxx.

Referenced by CumulantsTerminate().

TH2I * AliForwardFlowTaskQC::VertexBin::MakeQualityHist ( const Char_t name) const
protected

Make diagnostics hitogram

Parameters
nameName
Returns
hist

Definition at line 2798 of file AliForwardFlowTaskQC.cxx.

Referenced by CumulantsTerminate().

AliForwardFlowTaskQC::VertexBin & AliForwardFlowTaskQC::VertexBin::operator= ( const VertexBin v)

Assignment operator

Parameters
vObject to assing from
Returns
reference to this

Definition at line 1071 of file AliForwardFlowTaskQC.cxx.

void AliForwardFlowTaskQC::VertexBin::SetupNUALabels ( TAxis a) const
protected

Setup NUA axis with labels

Parameters
aNUA axis

Definition at line 2779 of file AliForwardFlowTaskQC.cxx.

Referenced by AddOutput().

void AliForwardFlowTaskQC::VertexBin::SolveCoupledFlowEquations ( CumuHistos cumu,
Char_t  type 
) const
protected

Solve coupled eqs. to get v_n

Parameters
cumuCumuHistos object with non-corrected flow results
typereference of differential flow ('r'/'d'/'a'/'b')

Definition at line 2463 of file AliForwardFlowTaskQC.cxx.

Referenced by CumulantsTerminate().

Member Data Documentation

TH2D* AliForwardFlowTaskQC::VertexBin::fCumuDiff
protected
TH2D* AliForwardFlowTaskQC::VertexBin::fCumuRef
protected
UShort_t AliForwardFlowTaskQC::VertexBin::fDebug
protected
TH2F* AliForwardFlowTaskQC::VertexBin::fdNdedpDiffAcc
protected

Definition at line 542 of file AliForwardFlowTaskQC.h.

Referenced by AddOutput(), FillHists(), FillTracks(), and operator=().

TH2F* AliForwardFlowTaskQC::VertexBin::fdNdedpRefAcc
protected

Definition at line 541 of file AliForwardFlowTaskQC.h.

Referenced by AddOutput(), FillHists(), FillTracks(), and operator=().

Double_t AliForwardFlowTaskQC::VertexBin::fEtaGap
protected
Double_t AliForwardFlowTaskQC::VertexBin::fEtaLims[6]
protected
TH2F* AliForwardFlowTaskQC::VertexBin::fOutliers
protected

Definition at line 543 of file AliForwardFlowTaskQC.h.

Referenced by AddOutput(), FillHists(), and operator=().

Double_t AliForwardFlowTaskQC::VertexBin::fSigmaCut
protected

Definition at line 533 of file AliForwardFlowTaskQC.h.

Referenced by FillHists(), and operator=().

Int_t AliForwardFlowTaskQC::VertexBin::fVzMax
protected
Int_t AliForwardFlowTaskQC::VertexBin::fVzMin
protected

The documentation for this class was generated from the following files: