AliPhysics  5364b50 (5364b50)
AliForwardFlowTaskQC Class Reference

#include <AliForwardFlowTaskQC.h>

Inheritance diagram for AliForwardFlowTaskQC:

Classes

struct  CumuHistos
 
class  VertexBin
 

Public Types

enum  EFlowFlags {
  kStdQC = 0x0001, kEtaGap = 0x0002, k3Cor = 0x0004, kSymEta = 0x0008,
  kSatVtx = 0x0010, kNUAcorr = 0x0020, kFMD = 0x0040, kVZERO = 0x0080,
  kSPD = 0x0100, kMC = 0x0200, kTracks = 0x1000, kTPC = 0x3000,
  kHybrid = 0x5000
}
 

Public Member Functions

 AliForwardFlowTaskQC ()
 
 AliForwardFlowTaskQC (const char *name)
 
virtual ~AliForwardFlowTaskQC ()
 
TListGetOutputList ()
 
void SetMaxFlowMoment (Short_t n)
 
void SetVertexAxis (TAxis *axis)
 
void SetCentralityAxis (TAxis *axis)
 
void SetCentralityAxis (const char *bins)
 
void SetDetectorCuts (Double_t fmdCut, Double_t spdCut)
 
void SetFlowFlags (UShort_t flags)
 
void SetEtaGapValue (Double_t eg)
 
void SetTrackCuts (AliAnalysisFilter *trCuts)
 
Task interface methods
virtual void UserCreateOutputObjects ()
 
virtual void Init ()
 
virtual void UserExec (Option_t *option)
 
virtual void Terminate (Option_t *option)
 

Static Public Member Functions

static const Char_tGetQCType (UShort_t flags, Bool_t prependUS=kTRUE)
 

Protected Types

enum  { kFillRef = 0x1, kFillDiff = 0x2, kFillBoth = 0x3, kReset = 0x4 }
 
enum  {
  kNoEvent = 1, kNoForward, kNoCentral, kNoTrigger,
  kNoCent, kInvCent, kNoVtx, kInvVtx,
  kOK
}
 

Protected Member Functions

 AliForwardFlowTaskQC (const AliForwardFlowTaskQC &o)
 
AliForwardFlowTaskQCoperator= (const AliForwardFlowTaskQC &)
 
virtual void InitVertexBins ()
 
virtual void InitHists ()
 
virtual Bool_t Analyze ()
 
virtual void Finalize ()
 
void FillVtxBinList (const TList &list, TH2D &h1, Int_t vtx, UShort_t flags=0x0) const
 
void FillVtxBinListEtaGap (const TList &list, TH2D &href, TH2D &hdiff, Int_t vtx, UShort_t flags=0x0) const
 
void FillVtxBinList3Cor (const TList &list, TH2D &hcent, TH2D &hfwd, Int_t vtx, UShort_t flags=0x0)
 
TH2DCombineHists (TH2D &hcent, TH2D &hfwd)
 
Bool_t FillTracks (VertexBin *bin, UShort_t mode) const
 
void EndVtxBinList (const TList &list) const
 
void MakeCentralityHists (TList *list) const
 
virtual Bool_t CheckEvent (const AliAODForwardMult *aodfm)
 
virtual Bool_t CheckTrigger (const AliAODForwardMult *aodfm) const
 
virtual Bool_t GetCentrality (const AliAODForwardMult *aodfm)
 
virtual Bool_t GetVertex (const AliAODForwardMult *aodfm)
 
AliVVZERO * GetVZERO () const
 
void FillVZEROHist (AliVVZERO *vzero)
 
void PrintFlowSetup () const
 

Protected Attributes

TAxisfVtxAxis
 
TAxisfCentAxis
 
Double_t fFMDCut
 
Double_t fSPDCut
 
UShort_t fFlowFlags
 
Double_t fEtaGap
 
TList fBinsForward
 
TList fBinsCentral
 
TListfSumList
 
TListfOutputList
 
AliAODEventfAOD
 
AliAnalysisFilter * fTrackCuts
 
Int_t fMaxMoment
 
Float_t fVtx
 
Double_t fCent
 
TH2D fHistdNdedpV0
 
TH2D fHistdNdedp3Cor
 
TH2DfHistFMDSPDCorr
 
TH1DfHistCent
 
TH1DfHistVertexSel
 
TH1IfHistEventSel
 

Detailed Description

Calculate the flow in the forward regions using the Q cumulants method

Inputs:

Outputs:

  • forward_flow.root

Definition at line 46 of file AliForwardFlowTaskQC.h.

Member Enumeration Documentation

anonymous enum
protected

Enum for filling flow histos

Enumerator
kFillRef 
kFillDiff 
kFillBoth 
kReset 

Definition at line 282 of file AliForwardFlowTaskQC.h.

anonymous enum
protected

Enum for event diagnostics

Enumerator
kNoEvent 
kNoForward 
kNoCentral 
kNoTrigger 
kNoCent 
kInvCent 
kNoVtx 
kInvVtx 
kOK 

Definition at line 291 of file AliForwardFlowTaskQC.h.

Enum for flow flags

Enumerator
kStdQC 
kEtaGap 
k3Cor 
kSymEta 
kSatVtx 
kNUAcorr 
kFMD 
kVZERO 
kSPD 
kMC 
kTracks 
kTPC 
kHybrid 

Definition at line 152 of file AliForwardFlowTaskQC.h.

Constructor & Destructor Documentation

AliForwardFlowTaskQC::AliForwardFlowTaskQC ( )

Constructor

Definition at line 47 of file AliForwardFlowTaskQC.cxx.

AliForwardFlowTaskQC::AliForwardFlowTaskQC ( const char *  name)

Constructor

Parameters
nameName of task

Definition at line 76 of file AliForwardFlowTaskQC.cxx.

virtual AliForwardFlowTaskQC::~AliForwardFlowTaskQC ( )
inlinevirtual

Destructor

Definition at line 62 of file AliForwardFlowTaskQC.h.

AliForwardFlowTaskQC::AliForwardFlowTaskQC ( const AliForwardFlowTaskQC o)
protected

Copy constructor

Parameters
oObject to copy from

Definition at line 110 of file AliForwardFlowTaskQC.cxx.

Member Function Documentation

Bool_t AliForwardFlowTaskQC::Analyze ( )
protectedvirtual

Analyze event

Returns
true on success

Reimplemented in AliForwardMCFlowTaskQC.

Definition at line 373 of file AliForwardFlowTaskQC.cxx.

Referenced by AliForwardMCFlowTaskQC::Analyze(), and UserExec().

Bool_t AliForwardFlowTaskQC::CheckEvent ( const AliAODForwardMult aodfm)
protectedvirtual

Check AODevent object for trigger, vertex and centrality uses aod header if object is null returns true if event is OK

Parameters
aodfmAliAODForwardMult object
Returns
Bool_t

Reimplemented in AliForwardMCFlowTaskQC.

Definition at line 786 of file AliForwardFlowTaskQC.cxx.

Referenced by Analyze(), and AliForwardMCFlowTaskQC::CheckEvent().

Bool_t AliForwardFlowTaskQC::CheckTrigger ( const AliAODForwardMult aodfm) const
protectedvirtual

Check trigger from AODForwardMult object uses aod header if object is null returns true if offline trigger is present

Parameters
aodfmAliAODForwardMult object
Returns
Bool_t

Reimplemented in AliForwardMCFlowTaskQC.

Definition at line 822 of file AliForwardFlowTaskQC.cxx.

Referenced by CheckEvent().

TH2D & AliForwardFlowTaskQC::CombineHists ( TH2D hcent,
TH2D hfwd 
)
protected

Combine forward and central detector histograms to one histogram, to be used for 3 correlator method

Parameters
hcentCentral data
hfwdForward data
Returns
combined hist

Definition at line 541 of file AliForwardFlowTaskQC.cxx.

Referenced by FillVtxBinList3Cor().

void AliForwardFlowTaskQC::EndVtxBinList ( const TList list) const
protected

Loops over VertexBin list and calls terminate on each

Parameters
listVertexBin list

Definition at line 736 of file AliForwardFlowTaskQC.cxx.

Referenced by AliForwardMCFlowTaskQC::Finalize(), and Finalize().

Bool_t AliForwardFlowTaskQC::FillTracks ( VertexBin bin,
UShort_t  mode 
) const
protected

Get Fill tracks from ESD or AOD input event

Returns
true on success

Definition at line 621 of file AliForwardFlowTaskQC.cxx.

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

void AliForwardFlowTaskQC::FillVtxBinList ( const TList list,
TH2D h1,
Int_t  vtx,
UShort_t  flags = 0x0 
) const
protected

Loops of vertex bins in list and runs analysis on those for current vertex

Parameters
listList of vertex bins
h1dN/detadphi histogram
vtxCurrent vertex bin
flagsExtra flags

Definition at line 444 of file AliForwardFlowTaskQC.cxx.

Referenced by AliForwardMCFlowTaskQC::Analyze(), and Analyze().

void AliForwardFlowTaskQC::FillVtxBinList3Cor ( const TList list,
TH2D hcent,
TH2D hfwd,
Int_t  vtx,
UShort_t  flags = 0x0 
)
protected

Loops of vertex bins in list and runs analysis on those for current vertex

Parameters
listList of vertex bins
hcentdN/detadphi histogram for central barrel
hfwddN/detadphi histogram for fwd detectors
vtxCurrent vertex bin
flagsExtra flags

Definition at line 512 of file AliForwardFlowTaskQC.cxx.

Referenced by AliForwardMCFlowTaskQC::Analyze(), and Analyze().

void AliForwardFlowTaskQC::FillVtxBinListEtaGap ( const TList list,
TH2D href,
TH2D hdiff,
Int_t  vtx,
UShort_t  flags = 0x0 
) const
protected

Loops of vertex bins in list and runs analysis on those for current vertex

Parameters
listList of vertex bins
hrefdN/detadphi histogram for ref flow
hdiffdN/detadphi histogram for diff flow
vtxCurrent vertex bin
flagsExtra flags

Definition at line 479 of file AliForwardFlowTaskQC.cxx.

Referenced by AliForwardMCFlowTaskQC::Analyze(), and Analyze().

void AliForwardFlowTaskQC::FillVZEROHist ( AliVVZERO *  vzero)
protected

Fill VZERO d^2N/detadphi hist

Parameters
vzeroAliAODVZERO object

Definition at line 948 of file AliForwardFlowTaskQC.cxx.

Referenced by Analyze().

void AliForwardFlowTaskQC::Finalize ( )
protectedvirtual

Finalize analysis

Reimplemented in AliForwardMCFlowTaskQC.

Definition at line 719 of file AliForwardFlowTaskQC.cxx.

Referenced by AliForwardMCFlowTaskQC::Finalize(), and Terminate().

Bool_t AliForwardFlowTaskQC::GetCentrality ( const AliAODForwardMult aodfm)
protectedvirtual

Check for centrality in AliAODForwardMult object, uses aod header if object is null if present return true - also sets fCent value

Parameters
aodfmAliAODForwardMult object
Returns
Bool_t

Reimplemented in AliForwardMCFlowTaskQC.

Definition at line 839 of file AliForwardFlowTaskQC.cxx.

Referenced by CheckEvent(), and AliForwardMCFlowTaskQC::GetCentrality().

TList* AliForwardFlowTaskQC::GetOutputList ( )
inline

Returns the outputlist

Returns
TList*

Definition at line 93 of file AliForwardFlowTaskQC.h.

Bool_t AliForwardFlowTaskQC::GetVertex ( const AliAODForwardMult aodfm)
protectedvirtual

Check for vertex in AliAODForwardMult uses aod header if object is null returns true if in range of fVtxAXis, also sets fVtx value

Parameters
aodfmAliAODForwardMult object
Returns
Bool_t

Reimplemented in AliForwardMCFlowTaskQC.

Definition at line 880 of file AliForwardFlowTaskQC.cxx.

Referenced by CheckEvent(), and AliForwardMCFlowTaskQC::GetVertex().

AliVVZERO * AliForwardFlowTaskQC::GetVZERO ( ) const
protected

Get VZERO Data

Returns
VZERO data object

Definition at line 921 of file AliForwardFlowTaskQC.cxx.

Referenced by Analyze().

virtual void AliForwardFlowTaskQC::Init ( )
inlinevirtual

Initialize the task

Definition at line 74 of file AliForwardFlowTaskQC.h.

void AliForwardFlowTaskQC::InitHists ( )
protectedvirtual

Initiate diagnostics histograms

Reimplemented in AliForwardMCFlowTaskQC.

Definition at line 287 of file AliForwardFlowTaskQC.cxx.

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

void AliForwardFlowTaskQC::InitVertexBins ( )
protectedvirtual

Initiate vertex bin objects

Reimplemented in AliForwardMCFlowTaskQC.

Definition at line 266 of file AliForwardFlowTaskQC.cxx.

Referenced by Finalize(), AliForwardMCFlowTaskQC::InitVertexBins(), and UserCreateOutputObjects().

void AliForwardFlowTaskQC::MakeCentralityHists ( TList list) const
protected

Projects a list of TH2D's with flow results to TH1's in centrality bins

Parameters
listList of flow results

Definition at line 752 of file AliForwardFlowTaskQC.cxx.

Referenced by Terminate().

AliForwardFlowTaskQC & AliForwardFlowTaskQC::operator= ( const AliForwardFlowTaskQC o)
protected

Assignment operator

Returns
Reference to this object

Definition at line 143 of file AliForwardFlowTaskQC.cxx.

void AliForwardFlowTaskQC::PrintFlowSetup ( ) const
protected

Print the setup of the task

Definition at line 2865 of file AliForwardFlowTaskQC.cxx.

Referenced by UserCreateOutputObjects().

void AliForwardFlowTaskQC::SetCentralityAxis ( TAxis axis)
inline

Set centrality/multiplicity binning and range

Parameters
axisUse this binning

Definition at line 111 of file AliForwardFlowTaskQC.h.

Referenced by SetCentralityAxis().

void AliForwardFlowTaskQC::SetCentralityAxis ( const char *  bins)

Set the centrality axis to use based on a string. The bin edges are separated by colons.

Parameters
binsString of bin edges

Definition at line 210 of file AliForwardFlowTaskQC.cxx.

void AliForwardFlowTaskQC::SetDetectorCuts ( Double_t  fmdCut,
Double_t  spdCut 
)
inline

Set detector sigma cuts

Parameters
fmdCutFMD sigma cut
spdCutSPD sigma cut

Definition at line 125 of file AliForwardFlowTaskQC.h.

void AliForwardFlowTaskQC::SetEtaGapValue ( Double_t  eg)
inline

Set \(|\eta|\) value to make cut for \(\eta\) gap at

Parameters
eggap value

Definition at line 147 of file AliForwardFlowTaskQC.h.

void AliForwardFlowTaskQC::SetFlowFlags ( UShort_t  flags)

Set flow flags, \(\eta\)-gap, sym. around \(\eta=0\) or sat. vtx. interactions, also sets which forward detector to use

Parameters
flagsEFlowFlags

Definition at line 238 of file AliForwardFlowTaskQC.cxx.

Referenced by SetDetectorCuts().

void AliForwardFlowTaskQC::SetMaxFlowMoment ( Short_t  n)
inline

Set max flow moment to calculate.

Parameters
nDo v_2 to v_n

Definition at line 99 of file AliForwardFlowTaskQC.h.

void AliForwardFlowTaskQC::SetTrackCuts ( AliAnalysisFilter *  trCuts)
inline

Definition at line 148 of file AliForwardFlowTaskQC.h.

void AliForwardFlowTaskQC::SetVertexAxis ( TAxis axis)
inline

Set vertex binning and range

Parameters
axisUse this vtx axis

Definition at line 105 of file AliForwardFlowTaskQC.h.

void AliForwardFlowTaskQC::Terminate ( Option_t option)
virtual

End of job

Parameters
optionNot used

Definition at line 639 of file AliForwardFlowTaskQC.cxx.

Referenced by Init().

void AliForwardFlowTaskQC::UserCreateOutputObjects ( )
virtual

Create output objects

Definition at line 253 of file AliForwardFlowTaskQC.cxx.

Referenced by ~AliForwardFlowTaskQC().

void AliForwardFlowTaskQC::UserExec ( Option_t option)
virtual

Process each event

Parameters
optionNot used

Definition at line 353 of file AliForwardFlowTaskQC.cxx.

Referenced by Init().

Member Data Documentation

TList AliForwardFlowTaskQC::fBinsCentral
protected

Definition at line 700 of file AliForwardFlowTaskQC.h.

Referenced by Analyze(), Finalize(), InitHists(), and InitVertexBins().

TList AliForwardFlowTaskQC::fBinsForward
protected

Definition at line 699 of file AliForwardFlowTaskQC.h.

Referenced by Analyze(), Finalize(), InitHists(), and InitVertexBins().

Double_t AliForwardFlowTaskQC::fEtaGap
protected
Double_t AliForwardFlowTaskQC::fFMDCut
protected
TH1D* AliForwardFlowTaskQC::fHistCent
protected

Definition at line 711 of file AliForwardFlowTaskQC.h.

Referenced by CheckEvent(), InitHists(), and operator=().

TH2D AliForwardFlowTaskQC::fHistdNdedp3Cor
protected

Definition at line 709 of file AliForwardFlowTaskQC.h.

Referenced by CombineHists(), InitHists(), and operator=().

TH2D AliForwardFlowTaskQC::fHistdNdedpV0
protected

Definition at line 708 of file AliForwardFlowTaskQC.h.

Referenced by Analyze(), FillVZEROHist(), InitHists(), and operator=().

TH2D* AliForwardFlowTaskQC::fHistFMDSPDCorr
protected

Definition at line 710 of file AliForwardFlowTaskQC.h.

Referenced by Analyze(), InitHists(), and operator=().

TH1D* AliForwardFlowTaskQC::fHistVertexSel
protected

Definition at line 712 of file AliForwardFlowTaskQC.h.

Referenced by CheckEvent(), InitHists(), and operator=().

Int_t AliForwardFlowTaskQC::fMaxMoment
protected
TList* AliForwardFlowTaskQC::fOutputList
protected

Definition at line 702 of file AliForwardFlowTaskQC.h.

Referenced by EndVtxBinList(), GetOutputList(), operator=(), and Terminate().

Double_t AliForwardFlowTaskQC::fSPDCut
protected
TList* AliForwardFlowTaskQC::fSumList
protected
AliAnalysisFilter* AliForwardFlowTaskQC::fTrackCuts
protected

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