AliPhysics  b752f14 (b752f14)
 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 * HistName (Int_t i) const
 
virtual const char * HistTitle (Double_t low, Double_t high) const
 
void ModHist (TObject *o, Double_t low, Double_t high, Int_t lvl=0)
 
void CreateHistos (TCollection *output, TObject *(*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)
 
TObjectCentObject (Int_t bin, TClass *cls=0) const
 
TH1CentHist (Int_t bin) const
 
TCollectionCentCollection (Int_t bin) const
 
TObjectGetOutputObject (TCollection *output, const char *name, TClass *cls)
 
TH2Get2DDiag (TCollection *output, const char *name, Bool_t projX)
 
Bool_t Finalize (TCollection *output, Long_t minEvents, TH1 *(*callback)(TObject *, Int_t))
 
void Print (Option_t *option="") const
 
 ClassDef (FastCentHelper, 1)
 

Public Attributes

TAxisfCentAxis
 
TString fCentMeth
 
TListfCentList
 
TH1fCentAll
 
TH1fCentAcc
 
TH2fCentMult
 
TH2fCentNPart
 
TH2fCentNBin
 
TH2fCentB
 
TArrayI fMapping
 

Detailed Description

Definition at line 26 of file FastCentHelper.C.

Constructor & Destructor Documentation

FastCentHelper::FastCentHelper ( const char *  method)
inline

Definition at line 38 of file FastCentHelper.C.

Member Function Documentation

TCollection* FastCentHelper::CentCollection ( Int_t  bin) const
inline

Get the collection associated with the centrality bin bin in the range from 1 to the number of bins defined.

Parameters
binBin number
Returns
Collection if found (and of the right class), null otherwise

Definition at line 506 of file FastCentHelper.C.

Referenced by spectra::Cent::Terminate().

TH1* FastCentHelper::CentHist ( Int_t  bin) const
inline

Get the histogram associated with the centrality bin bin in the range from 1 to the number of bins defined.

Parameters
binBin number
Returns
Histogram if found (and of the right class), null otherwise

Definition at line 493 of file FastCentHelper.C.

Referenced by dNdy::Cent::Terminate().

TObject* FastCentHelper::CentObject ( Int_t  bin,
TClass *  cls = 0 
) const
inline

Get the object associated with the centrality bin bin in the range from 1 to the number of bins defined.

Parameters
binBin number
clsOptional class to check the object against
Returns
Object if found (and optionally of the right class), null otherwise

Definition at line 450 of file FastCentHelper.C.

Referenced by CentCollection(), and CentHist().

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 409 of file FastCentHelper.C.

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

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

Create diagnostics histograms

Parameters
output
centHistCentrality histogram

Definition at line 322 of file FastCentHelper.C.

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

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

Create histograms

Parameters
output
callbackCall back to create histograms

Definition at line 254 of file FastCentHelper.C.

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

Bool_t FastCentHelper::Finalize ( TCollection output,
Long_t  minEvents,
TH1 *(*)(TObject *, Int_t callback 
)
inline
TH2* FastCentHelper::Get2DDiag ( TCollection output,
const char *  name,
Bool_t  projX 
)
inline

Definition at line 535 of file FastCentHelper.C.

Referenced by Finalize().

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 156 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 520 of file FastCentHelper.C.

Referenced by Finalize(), and Get2DDiag().

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 173 of file FastCentHelper.C.

Referenced by HistName(), and ModHist().

virtual const char* FastCentHelper::HistName ( Int_t  i) const
inlinevirtual

Definition at line 179 of file FastCentHelper.C.

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 192 of file FastCentHelper.C.

Referenced by ModHist().

void FastCentHelper::ModHist ( TObject o,
Double_t  low,
Double_t  high,
Int_t  lvl = 0 
)
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 213 of file FastCentHelper.C.

Referenced by CreateHistos().

void FastCentHelper::Print ( Option_t option = "") const
inline

Definition at line 639 of file FastCentHelper.C.

Referenced by dNdeta::Cent::Print(), and spectra::Cent::Print().

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 72 of file FastCentHelper.C.

Referenced by FastCentHelper(), dNdeta::Mult::Mult(), dNdy::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 86 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 109 of file FastCentHelper.C.

Member Data Documentation

TH1* FastCentHelper::fCentAcc

Definition at line 32 of file FastCentHelper.C.

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

TH1* FastCentHelper::fCentAll
TH2* FastCentHelper::fCentB

Definition at line 36 of file FastCentHelper.C.

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

TH2* FastCentHelper::fCentMult

Definition at line 33 of file FastCentHelper.C.

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

TH2* FastCentHelper::fCentNBin

Definition at line 35 of file FastCentHelper.C.

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

TH2* FastCentHelper::fCentNPart

Definition at line 34 of file FastCentHelper.C.

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

TArrayI FastCentHelper::fMapping

Definition at line 37 of file FastCentHelper.C.

Referenced by CentObject(), and Finalize().


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