AliPhysics  97344c9 (97344c9)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliBasedNdetaTask::CentralityBin Class Reference

#include <AliBasedNdetaTask.h>

Inheritance diagram for AliBasedNdetaTask::CentralityBin:

Public Member Functions

 CentralityBin ()
 
 CentralityBin (const char *name, Float_t low, Float_t high)
 
 CentralityBin (const CentralityBin &other)
 
virtual ~CentralityBin ()
 
CentralityBinoperator= (const CentralityBin &other)
 
Bool_t IsAllBin () const
 
const char * GetListName () const
 
virtual void CreateOutputObjects (TList *dir, Int_t mask)
 
virtual Bool_t ProcessEvent (const AliAODForwardMult *forward, UInt_t triggerMask, Bool_t isZero, Double_t vzMin, Double_t vzMax, const TH2D *data, const TH2D *mc, UInt_t filter, Double_t weight)
 
virtual Double_t Normalization (const TH1I &t, UShort_t scheme, Double_t trgEff, Double_t &ntotal, TString *text) const
 
virtual void MakeResult (const TH2D *sum, const char *postfix, bool rootProj, bool corrEmpty, Double_t scaler, Int_t marker, Int_t color, TList *mclist, TList *truthlist)
 
virtual void End (TList *sums, TList *results, UShort_t scheme, Double_t trigEff, Double_t trigEff0, Bool_t rootProj, Bool_t corrEmpty, Int_t triggerMask, Int_t marker, Int_t color, TList *mclist, TList *truthlist)
 
Int_t GetColor (Int_t fallback=kRed+2) const
 
void SetColor (Color_t colour)
 
TListGetResults () const
 
const char * GetResultName (const char *postfix="") const
 
TH1GetResult (const char *postfix="", Bool_t verbose=true) const
 
void SetDebugLevel (Int_t lvl)
 
void SetSatelliteVertices (Bool_t satVtx)
 
virtual void Print (Option_t *option="") const
 
Access histograms
const SumGetSum (Bool_t mc=false) const
 
SumGetSum (Bool_t mc=false)
 
const TH1IGetTriggers () const
 
TH1IGetTriggers ()
 
const TH1IGetStatus () const
 
TH1IGetStatus ()
 

Protected Member Functions

virtual Bool_t ReadSum (TList *list, bool mc=false)
 
virtual void CreateSums (const TH2D *data, const TH2D *mc)
 
virtual Bool_t CheckEvent (const AliAODForwardMult *forward, Int_t triggerMask, Double_t vzMin, Double_t vzMax, Int_t filter)
 

Protected Attributes

TListfSums
 
TListfOutput
 
SumfSum
 
SumfSumMC
 
TH1IfTriggers
 
TH1IfStatus
 
Float_t fLow
 
Float_t fHigh
 
Bool_t fDoFinalMCCorrection
 
Bool_t fSatelliteVertices
 
Int_t fDebug
 
Color_t fColor
 

Detailed Description

Calculations done per centrality. These objects are only used internally and are never streamed. We do not make dictionaries for this (and derived) classes as they are constructed on the fly.

Definition at line 701 of file AliBasedNdetaTask.h.

Constructor & Destructor Documentation

AliBasedNdetaTask::CentralityBin::CentralityBin ( )

Constructor

Definition at line 1426 of file AliBasedNdetaTask.cxx.

AliBasedNdetaTask::CentralityBin::CentralityBin ( const char *  name,
Float_t  low,
Float_t  high 
)

Constructor

Parameters
nameName used for histograms (e.g., Forward)
lowLower centrality cut in percent
highUpper centrality cut in percent

Definition at line 1448 of file AliBasedNdetaTask.cxx.

AliBasedNdetaTask::CentralityBin::CentralityBin ( const CentralityBin other)

Copy constructor

Parameters
otherObject to copy from

Definition at line 1485 of file AliBasedNdetaTask.cxx.

AliBasedNdetaTask::CentralityBin::~CentralityBin ( )
virtual

Destructor

Reimplemented in AliMCTruthdNdetaTask::CentralityBin, and AliForwarddNdetaTask::CentralityBin.

Definition at line 1508 of file AliBasedNdetaTask.cxx.

Member Function Documentation

Bool_t AliBasedNdetaTask::CentralityBin::CheckEvent ( const AliAODForwardMult forward,
Int_t  triggerMask,
Double_t  vzMin,
Double_t  vzMax,
Int_t  filter 
)
protectedvirtual

Check the trigger, vertex, and centrality

Parameters
forwardEvent input
triggerMaskThe used trigger mask
vzMinLeast \( v_z\)
vzMaxLargest \( v_z\)
filterMask of trigger bits to filter out
Returns
true if the event is to be used

Definition at line 1699 of file AliBasedNdetaTask.cxx.

Referenced by AliMCTruthdNdetaTask::CentralityBin::ProcessEvent().

void AliBasedNdetaTask::CentralityBin::CreateOutputObjects ( TList dir,
Int_t  mask 
)
virtual

Create output objects

Parameters
dirParent list
maskTrigger mask

Definition at line 1604 of file AliBasedNdetaTask.cxx.

Referenced by AliBasedNdetaTask::Book().

void AliBasedNdetaTask::CentralityBin::CreateSums ( const TH2D data,
const TH2D mc 
)
protectedvirtual

Create sum histogram

Parameters
dataData histogram to clone
mc(optional) MC histogram to clone

Definition at line 1672 of file AliBasedNdetaTask.cxx.

Referenced by AliMCTruthdNdetaTask::CentralityBin::ProcessEvent().

void AliBasedNdetaTask::CentralityBin::End ( TList sums,
TList results,
UShort_t  scheme,
Double_t  trigEff,
Double_t  trigEff0,
Bool_t  rootProj,
Bool_t  corrEmpty,
Int_t  triggerMask,
Int_t  marker,
Int_t  color,
TList mclist,
TList truthlist 
)
virtual

End of processing

Parameters
sumsList of sums
resultsOutput list of results
schemeNormalisation scheme options
trigEffTrigger efficiency
trigEff00-bin trigger efficiency
rootProjIf true, use TH2::ProjectionX
corrEmptyWhether to correct for empty bins
triggerMaskTrigger mask
markerMarker style
colorColor of markers
mclistList of MC data
truthlistList of MC truth data

Reimplemented in AliMCTruthdNdetaTask::CentralityBin, and AliForwarddNdetaTask::CentralityBin.

Definition at line 2182 of file AliBasedNdetaTask.cxx.

Referenced by AliForwarddNdetaTask::CentralityBin::End(), AliMCTruthdNdetaTask::CentralityBin::End(), and AliBasedNdetaTask::Finalize().

Int_t AliBasedNdetaTask::CentralityBin::GetColor ( Int_t  fallback = kRed+2) const

Get the color of the markers

Parameters
fallbackFall-back color
Returns
Color for this centrality bin

Definition at line 1569 of file AliBasedNdetaTask.cxx.

const char * AliBasedNdetaTask::CentralityBin::GetListName ( ) const

Get the list name

Returns
List Name

Definition at line 1588 of file AliBasedNdetaTask.cxx.

TH1 * AliBasedNdetaTask::CentralityBin::GetResult ( const char *  postfix = "",
Bool_t  verbose = true 
) const

Get a result

Parameters
postfixPossible postfix (e.g., "MC")
verboseIf true, complain about missing histogram
Returns
Pointer to histogram or null

Definition at line 1967 of file AliBasedNdetaTask.cxx.

Referenced by AliBasedNdetaTask::Finalize().

const char * AliBasedNdetaTask::CentralityBin::GetResultName ( const char *  postfix = "") const

Get name of result histogram. Note, the returned pointer points to static memory and should be copied/used immediately.

Parameters
postfixPossible postfix (e.g., "MC")
Returns

Definition at line 1956 of file AliBasedNdetaTask.cxx.

TList* AliBasedNdetaTask::CentralityBin::GetResults ( ) const
inline

Get list of results

Returns
List of results

Definition at line 950 of file AliBasedNdetaTask.h.

Referenced by AliMCTruthdNdetaTask::Finalize().

const TH1I* AliBasedNdetaTask::CentralityBin::GetStatus ( ) const
inline

Get trigger histogram

Returns
Trigger histogram

Definition at line 927 of file AliBasedNdetaTask.h.

TH1I* AliBasedNdetaTask::CentralityBin::GetStatus ( )
inline

Get trigger histogram

Returns
Trigger histogram

Definition at line 933 of file AliBasedNdetaTask.h.

const Sum* AliBasedNdetaTask::CentralityBin::GetSum ( Bool_t  mc = false) const
inline

Get sum histogram

Parameters
mcIf true, return MC histogram
Returns
Sum histogram

Definition at line 901 of file AliBasedNdetaTask.h.

Sum* AliBasedNdetaTask::CentralityBin::GetSum ( Bool_t  mc = false)
inline

Get sum histogram

Parameters
mcIf true, return MC histogram
Returns
Sum histogram

Definition at line 909 of file AliBasedNdetaTask.h.

const TH1I* AliBasedNdetaTask::CentralityBin::GetTriggers ( ) const
inline

Get trigger histogram

Returns
Trigger histogram

Definition at line 915 of file AliBasedNdetaTask.h.

TH1I* AliBasedNdetaTask::CentralityBin::GetTriggers ( )
inline

Get trigger histogram

Returns
Trigger histogram

Definition at line 921 of file AliBasedNdetaTask.h.

Bool_t AliBasedNdetaTask::CentralityBin::IsAllBin ( ) const
inline

Check if this is the 'all' bin

Returns
true if low and high cuts are both zero

Definition at line 739 of file AliBasedNdetaTask.h.

Referenced by AliBasedNdetaTask::AddCentralityBin(), AliMCTruthdNdetaTask::Finalize(), AliBasedNdetaTask::Finalize(), and AliMCTruthdNdetaTask::CentralityBin::ProcessEvent().

void AliBasedNdetaTask::CentralityBin::MakeResult ( const TH2D sum,
const char *  postfix,
bool  rootProj,
bool  corrEmpty,
Double_t  scaler,
Int_t  marker,
Int_t  color,
TList mclist,
TList truthlist 
)
virtual

Generate the dN/deta result from input

Parameters
sumSum of 2D hists
postfixPost fix on names
rootProjWhether to use ROOT TH2::ProjectionX
corrEmptyCorrect for empty bins
scalerEvent-level normalization scaler
markerMarker style
colorColor of markers
mclistList of MC data
truthlistList of MC truth data

Definition at line 1988 of file AliBasedNdetaTask.cxx.

Double_t AliBasedNdetaTask::CentralityBin::Normalization ( const TH1I t,
UShort_t  scheme,
Double_t  trgEff,
Double_t ntotal,
TString text 
) const
virtual

Calculate the Event-Level normalization.

The full event level normalization for trigger \(X\) is given by

\begin{eqnarray*} N &=& \frac{1}{\epsilon_X} \left(N_A+\frac{N_A}{N_V}(N_{-V}-\beta)\right)\\ &=& \frac{1}{\epsilon_X}N_A \left(1+\frac{1}{N_V}(N_T-N_V-\beta)\right)\\ &=& \frac{1}{\epsilon_X}N_A \left(1+\frac{N_T}{N_V}-1-\frac{\beta}{N_V}\right)\\ &=& \frac{1}{\epsilon_X}N_A \left(\frac{1}{\epsilon_V}-\frac{\beta}{N_V}\right) \end{eqnarray*}

where

  • \(\epsilon_X=\frac{N_{T,X}}{N_X}\) is the trigger efficiency evaluated in simulation.
  • \(\epsilon_V=\frac{N_V}{N_T}\) is the vertex efficiency evaluated from the data
  • \(N_X\) is the Monte-Carlo truth number of events of type \(X\).
  • \(N_{T,X}\) is the Monte-Carlo truth number of events of type \(X\) which was also triggered as such.
  • \(N_T\) is the number of data events that where triggered as type \(X\) and had a collision trigger (CINT1B)
  • \(N_V\) is the number of data events that where triggered as type \(X\), had a collision trigger (CINT1B), and had a vertex.
  • \(N_{-V}\) is the number of data events that where triggered as type \(X\), had a collision trigger (CINT1B), but no vertex.
  • \(N_A\) is the number of data events that where triggered as type \(X\), had a collision trigger (CINT1B), and had a vertex in the selected range.
  • \(\beta=N_a+N_c-N_e\) is the number of control triggers that were also triggered as type \(X\).
  • \(N_a\) Number of beam-empty events also triggered as type \(X\) events (CINT1-A or CINT1-AC).
  • \(N_c\) Number of empty-beam events also triggered as type \(X\) events (CINT1-C).
  • \(N_e\) Number of empty-empty events also triggered as type \(X\) events (CINT1-E).

Note, that if \( \beta \ll N_A\) the last term can be ignored, and the expression simplyfies to

\[ N = \frac{1}{\epsilon_X}\frac{1}{\epsilon_V}N_A \]

Parameters
tHistogram of triggers
schemeNormalisation scheme
trgEffTrigger efficiency
ntotalOn return, the total number of events to normalise to.
textIf non-null, fill with normalization calculation
Returns
\(N_A/N\) or negative number in case of errors.

Definition at line 1770 of file AliBasedNdetaTask.cxx.

AliBasedNdetaTask::CentralityBin & AliBasedNdetaTask::CentralityBin::operator= ( const CentralityBin other)

Assignment operator

Parameters
otherObject to assign from
Returns
Reference to this

Definition at line 1521 of file AliBasedNdetaTask.cxx.

void AliBasedNdetaTask::CentralityBin::Print ( Option_t option = "") const
virtual

Print this centrality bin.

Parameters
optionOptions.
  • R Also print sums

Definition at line 2282 of file AliBasedNdetaTask.cxx.

Bool_t AliBasedNdetaTask::CentralityBin::ProcessEvent ( const AliAODForwardMult forward,
UInt_t  triggerMask,
Bool_t  isZero,
Double_t  vzMin,
Double_t  vzMax,
const TH2D data,
const TH2D mc,
UInt_t  filter,
Double_t  weight 
)
virtual

Process an event

Parameters
forwardForward data (for trigger, vertex, & centrality)
triggerMaskTrigger mask
isZeroTrue if this is a zero bin event
vzMinMinimum IP z coordinate
vzMaxMaximum IP z coordinate
dataData histogram
mcMC histogram
filterMask of trigger bits to filter out
weightEvent weight
Returns
true if the event was selected

Reimplemented in AliMCTruthdNdetaTask::CentralityBin.

Definition at line 1732 of file AliBasedNdetaTask.cxx.

Referenced by AliBasedNdetaTask::Event().

Bool_t AliBasedNdetaTask::CentralityBin::ReadSum ( TList list,
bool  mc = false 
)
protectedvirtual

Read in sum hisotgram from list

Parameters
listList to read from
mcTrue for MC input
Returns
true if sum histogram is found

Definition at line 1641 of file AliBasedNdetaTask.cxx.

void AliBasedNdetaTask::CentralityBin::SetColor ( Color_t  colour)
inline

Definition at line 944 of file AliBasedNdetaTask.h.

Referenced by AliBasedNdetaTask::AddCentralityBin().

void AliBasedNdetaTask::CentralityBin::SetDebugLevel ( Int_t  lvl)

Set the debug level

Parameters
lvlDebug level

Definition at line 1632 of file AliBasedNdetaTask.cxx.

Referenced by AliBasedNdetaTask::AddCentralityBin(), and AliBasedNdetaTask::SetDebugLevel().

void AliBasedNdetaTask::CentralityBin::SetSatelliteVertices ( Bool_t  satVtx)
inline

Set satellite vertex flag

Parameters
satVtx

Definition at line 981 of file AliBasedNdetaTask.h.

Referenced by AliBasedNdetaTask::AddCentralityBin().

Member Data Documentation

Color_t AliBasedNdetaTask::CentralityBin::fColor
protected

Definition at line 1034 of file AliBasedNdetaTask.h.

Referenced by SetColor().

Int_t AliBasedNdetaTask::CentralityBin::fDebug
protected

Definition at line 1033 of file AliBasedNdetaTask.h.

Referenced by CentralityBin().

Bool_t AliBasedNdetaTask::CentralityBin::fDoFinalMCCorrection
protected

Definition at line 1031 of file AliBasedNdetaTask.h.

Referenced by operator=().

Float_t AliBasedNdetaTask::CentralityBin::fHigh
protected
Float_t AliBasedNdetaTask::CentralityBin::fLow
protected

Definition at line 1029 of file AliBasedNdetaTask.h.

Referenced by CentralityBin(), IsAllBin(), and operator=().

TList* AliBasedNdetaTask::CentralityBin::fOutput
protected
Bool_t AliBasedNdetaTask::CentralityBin::fSatelliteVertices
protected

Definition at line 1032 of file AliBasedNdetaTask.h.

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

TH1I* AliBasedNdetaTask::CentralityBin::fStatus
protected

Definition at line 1028 of file AliBasedNdetaTask.h.

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

Sum* AliBasedNdetaTask::CentralityBin::fSum
protected
Sum* AliBasedNdetaTask::CentralityBin::fSumMC
protected

Definition at line 1026 of file AliBasedNdetaTask.h.

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

TList* AliBasedNdetaTask::CentralityBin::fSums
protected
TH1I* AliBasedNdetaTask::CentralityBin::fTriggers
protected

Definition at line 1027 of file AliBasedNdetaTask.h.

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


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