AliPhysics  0b37c46 (0b37c46)

#include <AliBasedNdetaTask.h> [legend]

## 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

Bool_t IsInclusiveBin () 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 bool 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

Constructor

Definition at line 1440 of file AliBasedNdetaTask.cxx.

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

Constructor

Parameters
 name Name used for histograms (e.g., Forward) low Lower centrality cut in percent high Upper centrality cut in percent

Definition at line 1462 of file AliBasedNdetaTask.cxx.

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

Copy constructor

Parameters
 other Object to copy from

Definition at line 1499 of file AliBasedNdetaTask.cxx.

virtual

Destructor

Definition at line 1522 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
 forward Event input triggerMask The used trigger mask vzMin Least $$v_z$$ vzMax Largest $$v_z$$ filter Mask of trigger bits to filter out
Returns
true if the event is to be used

Definition at line 1713 of file AliBasedNdetaTask.cxx.

virtual

Create output objects

Parameters

Definition at line 1618 of file AliBasedNdetaTask.cxx.

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

Create sum histogram

Parameters
 data Data histogram to clone mc (optional) MC histogram to clone

Definition at line 1686 of file AliBasedNdetaTask.cxx.

 bool 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
 sums List of sums results Output list of results scheme Normalisation scheme options trigEff Trigger efficiency trigEff0 0-bin trigger efficiency rootProj If true, use TH2::ProjectionX corrEmpty Whether to correct for empty bins triggerMask Trigger mask marker Marker style color Color of markers mclist List of MC data truthlist List of MC truth data
Returns
true on success

Definition at line 2177 of file AliBasedNdetaTask.cxx.

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

Get the color of the markers

Parameters
 fallback Fall-back color
Returns
Color for this centrality bin

Definition at line 1583 of file AliBasedNdetaTask.cxx.

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

Get the list name

Returns
List Name

Definition at line 1602 of file AliBasedNdetaTask.cxx.

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

Get a result

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

Definition at line 1962 of file AliBasedNdetaTask.cxx.

 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
 postfix Possible postfix (e.g., "MC")
Returns

Definition at line 1951 of file AliBasedNdetaTask.cxx.

inline

Get list of results

Returns
List of results

Definition at line 953 of file AliBasedNdetaTask.h.

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

Get trigger histogram

Returns
Trigger histogram

Definition at line 930 of file AliBasedNdetaTask.h.

inline

Get trigger histogram

Returns
Trigger histogram

Definition at line 936 of file AliBasedNdetaTask.h.

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

Get sum histogram

Parameters
 mc If true, return MC histogram
Returns
Sum histogram

Definition at line 904 of file AliBasedNdetaTask.h.

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

Get sum histogram

Parameters
 mc If true, return MC histogram
Returns
Sum histogram

Definition at line 912 of file AliBasedNdetaTask.h.

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

Get trigger histogram

Returns
Trigger histogram

Definition at line 918 of file AliBasedNdetaTask.h.

inline

Get trigger histogram

Returns
Trigger histogram

Definition at line 924 of file AliBasedNdetaTask.h.

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.

inline

Definition at line 740 of file AliBasedNdetaTask.h.

 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
 sum Sum of 2D hists postfix Post fix on names rootProj Whether to use ROOT TH2::ProjectionX corrEmpty Correct for empty bins scaler Event-level normalization scaler marker Marker style color Color of markers mclist List of MC data truthlist List of MC truth data

Definition at line 1983 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
 t Histogram of triggers scheme Normalisation scheme trgEff Trigger efficiency ntotal On return, the total number of events to normalise to. text If non-null, fill with normalization calculation
Returns
$$N_A/N$$ or negative number in case of errors.

Definition at line 1784 of file AliBasedNdetaTask.cxx.

Assignment operator

Parameters
 other Object to assign from
Returns
Reference to this

Definition at line 1535 of file AliBasedNdetaTask.cxx.

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

Print this centrality bin.

Parameters
 option Options.
• R Also print sums

Definition at line 2278 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
 forward Forward data (for trigger, vertex, & centrality) triggerMask Trigger mask isZero True if this is a zero bin event vzMin Minimum IP z coordinate vzMax Maximum IP z coordinate data Data histogram mc MC histogram filter Mask of trigger bits to filter out weight Event weight
Returns
true if the event was selected

Definition at line 1746 of file AliBasedNdetaTask.cxx.

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

Read in sum hisotgram from list

Parameters
 list List to read from mc True for MC input
Returns
true if sum histogram is found

Definition at line 1655 of file AliBasedNdetaTask.cxx.

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

Definition at line 947 of file AliBasedNdetaTask.h.

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

Set the debug level

Parameters
 lvl Debug level

Definition at line 1646 of file AliBasedNdetaTask.cxx.

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

Set satellite vertex flag

Parameters
 satVtx

Definition at line 984 of file AliBasedNdetaTask.h.

## Member Data Documentation

protected

Definition at line 1037 of file AliBasedNdetaTask.h.

Referenced by SetColor().

protected

Definition at line 1036 of file AliBasedNdetaTask.h.

Referenced by CentralityBin().

protected

Definition at line 1034 of file AliBasedNdetaTask.h.

Referenced by operator=().

protected

Definition at line 1033 of file AliBasedNdetaTask.h.

protected

Definition at line 1032 of file AliBasedNdetaTask.h.

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

protected

Definition at line 1027 of file AliBasedNdetaTask.h.

protected

Definition at line 1035 of file AliBasedNdetaTask.h.

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

protected

Definition at line 1031 of file AliBasedNdetaTask.h.

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

protected
protected

Definition at line 1029 of file AliBasedNdetaTask.h.

Referenced by GetSum(), and operator=().
{"ft_lang_label":"__label__en","ft_lang_prob":0.57346,"math_prob":0.66296655,"size":10805,"snap":"2023-14-2023-23","text_gpt3_token_len":3293,"char_repetition_ratio":0.25627255,"word_repetition_ratio":0.14570552,"special_character_ratio":0.24340583,"punctuation_ratio":0.18713105,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9789431,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,null,null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-03-28T03:26:31Z\",\"WARC-Record-ID\":\"<urn:uuid:6908e1c3-7d8a-4425-95d2-5c91e56c675a>\",\"Content-Length\":\"98662\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:b00af2bb-e8bc-4b35-8409-41cc811746e7>\",\"WARC-Concurrent-To\":\"<urn:uuid:03da0e74-6e2c-4e2e-8ae0-7a6f1ae3de2e>\",\"WARC-IP-Address\":\"137.138.47.222\",\"WARC-Target-URI\":\"http://alidoc.cern.ch/AliPhysics/vAN-20171226/class_ali_based_ndeta_task_1_1_centrality_bin.html\",\"WARC-Payload-Digest\":\"sha1:WF5X6VDQBR4GPAAK2AZXU6LURIZVCNNQ\",\"WARC-Block-Digest\":\"sha1:RKBNFA5OSXMX3ZDJS6GZ2WEEGGUJC4PF\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-14/CC-MAIN-2023-14_segments_1679296948756.99_warc_CC-MAIN-20230328011555-20230328041555-00172.warc.gz\"}"}