AliPhysics  71e3bc7 (71e3bc7)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliFMDEventPlaneFinder Class Reference

#include <AliFMDEventPlaneFinder.h>

Inheritance diagram for AliFMDEventPlaneFinder:

Public Member Functions

 AliFMDEventPlaneFinder ()
 
 AliFMDEventPlaneFinder (const char *name)
 
 AliFMDEventPlaneFinder (const AliFMDEventPlaneFinder &o)
 
virtual ~AliFMDEventPlaneFinder ()
 
AliFMDEventPlaneFinderoperator= (const AliFMDEventPlaneFinder &o)
 
virtual void SetupForData (const TAxis &etaAxis)
 
Bool_t FindEventplane (AliVEvent *esd, AliAODForwardEP &aodEp, TH2D *h, AliForwardUtil::Histos *hists)
 
virtual void CreateOutputObjects (TList *dir)
 
void Print (Option_t *option="") const
 
void SetDebug (Int_t dbg=1)
 
void CalcQVectors (TH2D *h, TH1D *eHist)
 
Double_t CalcEventplane (const TVector2 &v) const
 
void SetRunNumber (Int_t run)
 
Int_t GetRunNumber ()
 
void GetPhiDist ()
 
void SetUsePhiWeights (Bool_t use=kTRUE)
 
void FillHists (AliAODForwardEP *fmdEP)
 
void SetOADBPath (Char_t *fname)
 

Protected Member Functions

Double_t GetPhiWeight (Int_t etaBin, Int_t phiBin) const
 
Double_t CalcDifference (Double_t a1, Double_t a2) const
 
TH1DMakePsiRHist (const char *name, const char *title, Int_t color)
 
TH1DMakeDiffHist (const char *name, const char *first, const char *second, Int_t color)
 
TH2FMakeCorrHist (const char *name, const char *first, const char *second)
 
 ClassDef (AliFMDEventPlaneFinder, 2)
 

Protected Attributes

TListfList
 
AliVEvent * fEvent
 
TVector2 fQt
 
TVector2 fQa
 
TVector2 fQc
 
TVector2 fQ1
 
TVector2 fQ2
 
TVector2 fQeta
 
TH1DfHepFMD
 
TH1DfHepFMDA
 
TH1DfHepFMDC
 
TH1DfHepFMDQC1
 
TH1DfHepFMDQC2
 
TH1DfHdiffFMDAC
 
TH1DfHdiffFMDTPC
 
TH1DfHdiffFMDVZERO
 
TH2FfHcorrFMDAC
 
TH2FfHcorrFMDTPC
 
TH2FfHcorrFMDVZERO
 
TH2DfHPhi
 
Int_t fDebug
 
TString fOADBFileName
 
AliOADBContainer * fOADBContainer
 
TH2DfPhiDist
 
Int_t fRunNumber
 
Bool_t fUsePhiWeights
 

Detailed Description

Find the event plane using the FMD

Definition at line 31 of file AliFMDEventPlaneFinder.h.

Constructor & Destructor Documentation

AliFMDEventPlaneFinder::AliFMDEventPlaneFinder ( )

Constructor

AliFMDEventPlaneFinder::AliFMDEventPlaneFinder ( const char *  name)

Constructor

Parameters
nameName of object

Definition at line 67 of file AliFMDEventPlaneFinder.cxx.

AliFMDEventPlaneFinder::AliFMDEventPlaneFinder ( const AliFMDEventPlaneFinder o)

Copy constructor

Parameters
oObject to copy from

Definition at line 106 of file AliFMDEventPlaneFinder.cxx.

AliFMDEventPlaneFinder::~AliFMDEventPlaneFinder ( )
virtual

Destructor

Definition at line 146 of file AliFMDEventPlaneFinder.cxx.

Member Function Documentation

Double_t AliFMDEventPlaneFinder::CalcDifference ( Double_t  a1,
Double_t  a2 
) const
protected

Calculat the difference \(a_1 - a_2\) between two angles \(a_1, a_2\) and normalize to \([-\pi/2,\pi/2]\)

Parameters
a1First angle \(a_1\)
a2Second angle \(a_2\)
Returns
\(a_1 - a_2 \in[-\pi/2,\pi/2]\)

Definition at line 448 of file AliFMDEventPlaneFinder.cxx.

Referenced by FillHists().

Double_t AliFMDEventPlaneFinder::CalcEventplane ( const TVector2 &  v) const

Calculate the eventplane from a vector

Parameters
vTVector2 of Q-vectors
Returns
the eventplane as a double

Definition at line 427 of file AliFMDEventPlaneFinder.cxx.

Referenced by CalcQVectors(), and FindEventplane().

void AliFMDEventPlaneFinder::CalcQVectors ( TH2D h,
TH1D eHist 
)

Calculate Q vectors

Parameters
hdN/detadphi histogram
eHisthistogram for ep vs. eta

Definition at line 383 of file AliFMDEventPlaneFinder.cxx.

Referenced by FindEventplane().

AliFMDEventPlaneFinder::ClassDef ( AliFMDEventPlaneFinder  ,
 
)
protected
void AliFMDEventPlaneFinder::CreateOutputObjects ( TList dir)
virtual

Output diagnostic histograms to directory

Parameters
dirList to write in

Definition at line 313 of file AliFMDEventPlaneFinder.cxx.

Referenced by AliFMDEventPlaneTask::Book(), and AliForwardMultiplicityBase::Book().

void AliFMDEventPlaneFinder::FillHists ( AliAODForwardEP fmdEP)

Fill diagnostics hists

Parameters
fmdEPObject containing results of FMD EP calculations

Definition at line 458 of file AliFMDEventPlaneFinder.cxx.

Referenced by FindEventplane().

Bool_t AliFMDEventPlaneFinder::FindEventplane ( AliVEvent *  esd,
AliAODForwardEP aodEp,
TH2D h,
AliForwardUtil::Histos hists 
)

Do the calculations

Parameters
histsHistogram cache
esdEvent
aodEpOutput object
hOutput histogram
Returns
true on successs

Definition at line 332 of file AliFMDEventPlaneFinder.cxx.

Referenced by AliFMDEventPlaneTask::Event(), AliForwardMultiplicityTask::Event(), and AliForwardMCMultiplicityTask::Event().

void AliFMDEventPlaneFinder::GetPhiDist ( )

Get the OADB phi distribution for flattening

Definition at line 531 of file AliFMDEventPlaneFinder.cxx.

Referenced by SetRunNumber().

Double_t AliFMDEventPlaneFinder::GetPhiWeight ( Int_t  etaBin,
Int_t  phiBin 
) const
protected

Get the phi weight from OADB histogram for the ep flattening

Parameters
etaBinwhich eta bin
phiBinwhich phi bin
Returns
phi weight for etaBin, phiBin as double

Definition at line 496 of file AliFMDEventPlaneFinder.cxx.

Referenced by CalcQVectors().

Int_t AliFMDEventPlaneFinder::GetRunNumber ( )
inline

Get the run number

Returns
returns the run number

Definition at line 127 of file AliFMDEventPlaneFinder.h.

Referenced by AliFMDEventPlaneTask::Event().

TH2F * AliFMDEventPlaneFinder::MakeCorrHist ( const char *  name,
const char *  first,
const char *  second 
)
protected

Make a correlation histogram, and add it to the output list.

Parameters
nameName of histogram
firstFirst variable to correlate (X axis)
secondSecond variable to correlate (Y axis)
Returns
Newly allocated histogram

Definition at line 240 of file AliFMDEventPlaneFinder.cxx.

Referenced by SetupForData().

TH1D * AliFMDEventPlaneFinder::MakeDiffHist ( const char *  name,
const char *  first,
const char *  second,
Int_t  color 
)
protected

Make a difference histogram, and add to the output list

Parameters
nameName of histogram
firstFirst variable to correlate (X axis)
secondSecond variable to correlate (Y axis)
colorFill and line color of histogram
Returns
Newly allocated histogram

Definition at line 220 of file AliFMDEventPlaneFinder.cxx.

Referenced by SetupForData().

TH1D * AliFMDEventPlaneFinder::MakePsiRHist ( const char *  name,
const char *  title,
Int_t  color 
)
protected

Make a histogram of \(\Psi_R\) values

Parameters
nameName of histogram
titleSource
colorColor of histogram
Returns
Newly allocated histogram

Definition at line 202 of file AliFMDEventPlaneFinder.cxx.

Referenced by SetupForData().

AliFMDEventPlaneFinder & AliFMDEventPlaneFinder::operator= ( const AliFMDEventPlaneFinder o)

Assignement operator

Parameters
oObject to assign from
Returns
Reference to this object

Definition at line 155 of file AliFMDEventPlaneFinder.cxx.

void AliFMDEventPlaneFinder::Print ( Option_t option = "") const

Print information

Parameters
optionPrint options
  • max Print max weights

Definition at line 558 of file AliFMDEventPlaneFinder.cxx.

Referenced by AliForwardMultiplicityBase::Print().

void AliFMDEventPlaneFinder::SetDebug ( Int_t  dbg = 1)
inline

Set the debug level. The higher the value the more output

Parameters
dbgDebug level

Definition at line 100 of file AliFMDEventPlaneFinder.h.

Referenced by AliForwardMultiplicityBase::SetDebug().

void AliFMDEventPlaneFinder::SetOADBPath ( Char_t fname)
inline

Set the OADB path, for using a custom OADB path and file

Parameters
fnameName of the custom OADB file, including path

Definition at line 149 of file AliFMDEventPlaneFinder.h.

void AliFMDEventPlaneFinder::SetRunNumber ( Int_t  run)

Set the run number, used for OADB object

Parameters
runRun number

Definition at line 516 of file AliFMDEventPlaneFinder.cxx.

Referenced by AliFMDEventPlaneTask::Event(), and AliForwardMultiplicityBase::PreData().

void AliFMDEventPlaneFinder::SetupForData ( const TAxis etaAxis)
virtual

Initialize this sub-algorithm

Parameters
etaAxisEta axis to use

Definition at line 257 of file AliFMDEventPlaneFinder.cxx.

Referenced by AliFMDEventPlaneTask::Book(), and AliForwardMultiplicityBase::PreData().

void AliFMDEventPlaneFinder::SetUsePhiWeights ( Bool_t  use = kTRUE)
inline

Flag for setting the use of phi weights for flattening

Parameters
usetrue or false

Definition at line 137 of file AliFMDEventPlaneFinder.h.

Referenced by AddTaskFMDEventPlane(), ForwardAODConfig(), and TunedConfig().

Member Data Documentation

AliVEvent* AliFMDEventPlaneFinder::fEvent
protected

Definition at line 210 of file AliFMDEventPlaneFinder.h.

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

TH2F* AliFMDEventPlaneFinder::fHcorrFMDAC
protected

Definition at line 225 of file AliFMDEventPlaneFinder.h.

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

TH2F* AliFMDEventPlaneFinder::fHcorrFMDTPC
protected

Definition at line 226 of file AliFMDEventPlaneFinder.h.

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

TH2F* AliFMDEventPlaneFinder::fHcorrFMDVZERO
protected

Definition at line 227 of file AliFMDEventPlaneFinder.h.

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

TH1D* AliFMDEventPlaneFinder::fHdiffFMDAC
protected

Definition at line 222 of file AliFMDEventPlaneFinder.h.

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

TH1D* AliFMDEventPlaneFinder::fHdiffFMDTPC
protected

Definition at line 223 of file AliFMDEventPlaneFinder.h.

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

TH1D* AliFMDEventPlaneFinder::fHdiffFMDVZERO
protected

Definition at line 224 of file AliFMDEventPlaneFinder.h.

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

TH1D* AliFMDEventPlaneFinder::fHepFMD
protected

Definition at line 217 of file AliFMDEventPlaneFinder.h.

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

TH1D* AliFMDEventPlaneFinder::fHepFMDA
protected

Definition at line 218 of file AliFMDEventPlaneFinder.h.

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

TH1D* AliFMDEventPlaneFinder::fHepFMDC
protected

Definition at line 219 of file AliFMDEventPlaneFinder.h.

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

TH1D* AliFMDEventPlaneFinder::fHepFMDQC1
protected

Definition at line 220 of file AliFMDEventPlaneFinder.h.

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

TH1D* AliFMDEventPlaneFinder::fHepFMDQC2
protected

Definition at line 221 of file AliFMDEventPlaneFinder.h.

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

TH2D* AliFMDEventPlaneFinder::fHPhi
protected

Definition at line 228 of file AliFMDEventPlaneFinder.h.

Referenced by CalcQVectors(), operator=(), and SetupForData().

TList* AliFMDEventPlaneFinder::fList
protected
AliOADBContainer* AliFMDEventPlaneFinder::fOADBContainer
protected

Definition at line 231 of file AliFMDEventPlaneFinder.h.

Referenced by GetPhiDist(), operator=(), and SetupForData().

TString AliFMDEventPlaneFinder::fOADBFileName
protected

Definition at line 230 of file AliFMDEventPlaneFinder.h.

Referenced by operator=(), SetOADBPath(), and SetupForData().

TH2D* AliFMDEventPlaneFinder::fPhiDist
protected

Definition at line 232 of file AliFMDEventPlaneFinder.h.

Referenced by GetPhiDist(), GetPhiWeight(), and operator=().

TVector2 AliFMDEventPlaneFinder::fQ1
protected

Definition at line 214 of file AliFMDEventPlaneFinder.h.

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

TVector2 AliFMDEventPlaneFinder::fQ2
protected

Definition at line 215 of file AliFMDEventPlaneFinder.h.

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

TVector2 AliFMDEventPlaneFinder::fQa
protected

Definition at line 212 of file AliFMDEventPlaneFinder.h.

Referenced by CalcQVectors(), FindEventplane(), and operator=().

TVector2 AliFMDEventPlaneFinder::fQc
protected

Definition at line 213 of file AliFMDEventPlaneFinder.h.

Referenced by CalcQVectors(), FindEventplane(), and operator=().

TVector2 AliFMDEventPlaneFinder::fQeta
protected

Definition at line 216 of file AliFMDEventPlaneFinder.h.

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

TVector2 AliFMDEventPlaneFinder::fQt
protected

Definition at line 211 of file AliFMDEventPlaneFinder.h.

Referenced by CalcQVectors(), FindEventplane(), and operator=().

Int_t AliFMDEventPlaneFinder::fRunNumber
protected

Definition at line 233 of file AliFMDEventPlaneFinder.h.

Referenced by GetPhiDist(), GetRunNumber(), operator=(), Print(), and SetRunNumber().

Bool_t AliFMDEventPlaneFinder::fUsePhiWeights
protected

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