AliPhysics  9538fdd (9538fdd)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FastCentHelper Struct Reference

Public Member Functions

 FastCentHelper (const char *method)
 
void SetCentAxis (Int_t n, Double_t low, Double_t high)
 
void SetCentAxis (Int_t n, Double_t *edges)
 
void SetCentAxis (const char *spec)
 
Int_t GetCentralityColor (Double_t, Double_t high) const
 
virtual const char * HistName (Double_t low, Double_t high) const
 
virtual const char * HistTitle (Double_t low, Double_t high) const
 
void ModHist (TH1 *h, Double_t low, Double_t high)
 
void CreateHistos (TCollection *output, TH1D *(*callback)())
 
void CreateDiagnostics (TCollection *output, TH1 *centHist)
 
Int_t CheckCentrality (Double_t cent, Double_t mult, Double_t b, Double_t nPart, Double_t nBin)
 
TObjectGetOutputObject (TCollection *output, const char *name, TClass *cls)
 
Bool_t Finalize (TCollection *output, Long_t minEvents)
 
 ClassDef (FastCentHelper, 1)
 

Public Attributes

TAxisfCentAxis
 
TString fCentMeth
 
TListfCentList
 
TH1fCentAll
 
TH1fCentAcc
 
TH2fCentMult
 
TH2fCentNPart
 
TH2fCentNBin
 
TH2fCentB
 

Detailed Description

Definition at line 24 of file FastCentHelper.C.

Constructor & Destructor Documentation

FastCentHelper::FastCentHelper ( const char *  method)
inline

Definition at line 35 of file FastCentHelper.C.

Member Function Documentation

Int_t FastCentHelper::CheckCentrality ( Double_t  cent,
Double_t  mult,
Double_t  b,
Double_t  nPart,
Double_t  nBin 
)
inline

Check the centrality

Parameters
centCentrality
multEstimator value
bImpact parameter
nPartNumber of participants
nBinNumber of binary collisions
Returns
Centrality bin, or -1 in case of problems

Definition at line 372 of file FastCentHelper.C.

Referenced by dNdy::Cent::ProcessHeader(), and dNdeta::Cent::ProcessHeader().

FastCentHelper::ClassDef ( FastCentHelper  ,
 
)
void FastCentHelper::CreateDiagnostics ( TCollection output,
TH1 centHist 
)
inline

Create diagnostics histograms

Parameters
output
centHistCentrality histogram

Definition at line 285 of file FastCentHelper.C.

Referenced by dNdy::Cent::SetupEstimator(), and dNdeta::Cent::SetupEstimator().

void FastCentHelper::CreateHistos ( TCollection output,
TH1D *(*)()  callback 
)
inline

Create histograms

Parameters
output
callbackCall back to create histograms

Definition at line 222 of file FastCentHelper.C.

Referenced by dNdy::Cent::SlaveBegin(), and dNdeta::Cent::SlaveBegin().

Bool_t FastCentHelper::Finalize ( TCollection output,
Long_t  minEvents 
)
inline

Definition at line 427 of file FastCentHelper.C.

Referenced by dNdy::Cent::Terminate(), and dNdeta::Cent::Terminate().

Int_t FastCentHelper::GetCentralityColor ( Double_t  ,
Double_t  high 
) const
inline

Get the color associated with a centrality bin.

Parameters
highHigh edge
Returns
Color identifier.

Definition at line 152 of file FastCentHelper.C.

Referenced by ModHist().

TObject* FastCentHelper::GetOutputObject ( TCollection output,
const char *  name,
TClass *  cls 
)
inline

Get an object from the output list, possibly checking the type

Parameters
outputContainer
nameName of object
clsPossible class pointer
Returns
Found object, or null

Definition at line 412 of file FastCentHelper.C.

Referenced by Finalize().

virtual const char* FastCentHelper::HistName ( Double_t  low,
Double_t  high 
) const
inlinevirtual

Get the histogram name

Parameters
lowLow edge
highHigh edge
Returns
String

Definition at line 169 of file FastCentHelper.C.

Referenced by ModHist().

virtual const char* FastCentHelper::HistTitle ( Double_t  low,
Double_t  high 
) const
inlinevirtual

Get the histogram title

Parameters
lowLow edge
highHigh edge
Returns
String

Definition at line 183 of file FastCentHelper.C.

Referenced by ModHist().

void FastCentHelper::ModHist ( TH1 h,
Double_t  low,
Double_t  high 
)
inline

Modify a histogram. Sets the line, marker, and fill styles and colors, as well as the name and title.

Parameters
hHistogram to modify
lowLow edge of our bin
highHigh edge of our bin

Definition at line 204 of file FastCentHelper.C.

Referenced by CreateHistos().

void FastCentHelper::SetCentAxis ( Int_t  n,
Double_t  low,
Double_t  high 
)
inline

Set the centrality axis (equi-distant)

Parameters
nNumber of bin
lowLowest bound
highHighest bound

Definition at line 68 of file FastCentHelper.C.

Referenced by FastCentHelper(), dNdy::Mult::Mult(), dNdeta::Mult::Mult(), and SetCentAxis().

void FastCentHelper::SetCentAxis ( Int_t  n,
Double_t edges 
)
inline

Set the centrality axis.

Parameters
nNumber of bins
edgesBin edges

Definition at line 82 of file FastCentHelper.C.

void FastCentHelper::SetCentAxis ( const char *  spec)
inline

Set the centrality axis. Spec is either a pre-defined string, or a list of colon separated bin edges. Pre-defined settings are

  • pbpb, aa, default: For PbPb
  • ppb, pbp, pa, ap: For pPb/Pbp
  • pp: for pp centrality

Example of specs could be

  • 0:5:10:20:30:40:50:60:80:100
  • 0:0.1:1:5:10:20:40:70:100
Parameters
spec

Definition at line 105 of file FastCentHelper.C.

Member Data Documentation

TH1* FastCentHelper::fCentAcc

Definition at line 30 of file FastCentHelper.C.

Referenced by CheckCentrality(), CreateHistos(), and Finalize().

TH1* FastCentHelper::fCentAll

Definition at line 29 of file FastCentHelper.C.

Referenced by CheckCentrality(), CreateHistos(), and Finalize().

TH2* FastCentHelper::fCentB

Definition at line 34 of file FastCentHelper.C.

Referenced by CheckCentrality(), and CreateDiagnostics().

TList* FastCentHelper::fCentList
TString FastCentHelper::fCentMeth
TH2* FastCentHelper::fCentMult

Definition at line 31 of file FastCentHelper.C.

Referenced by CheckCentrality(), CreateDiagnostics(), and Finalize().

TH2* FastCentHelper::fCentNBin

Definition at line 33 of file FastCentHelper.C.

Referenced by CheckCentrality(), CreateDiagnostics(), and Finalize().

TH2* FastCentHelper::fCentNPart

Definition at line 32 of file FastCentHelper.C.

Referenced by CheckCentrality(), CreateDiagnostics(), and Finalize().


The documentation for this struct was generated from the following file: