![]() |
AliPhysics
d84cbc0 (d84cbc0)
|
#include <AliBasedNdetaTask.h>
Public Member Functions | |
CentralityBin () | |
CentralityBin (const char *name, Float_t low, Float_t high) | |
CentralityBin (const CentralityBin &other) | |
virtual | ~CentralityBin () |
CentralityBin & | operator= (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 |
TList * | GetResults () const |
const char * | GetResultName (const char *postfix="") const |
TH1 * | GetResult (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 Sum * | GetSum (Bool_t mc=false) const |
Sum * | GetSum (Bool_t mc=false) |
const TH1I * | GetTriggers () const |
TH1I * | GetTriggers () |
const TH1I * | GetStatus () const |
TH1I * | GetStatus () |
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 | |
TList * | fSums |
TList * | fOutput |
Sum * | fSum |
Sum * | fSumMC |
TH1I * | fTriggers |
TH1I * | fStatus |
Float_t | fLow |
Float_t | fHigh |
Bool_t | fDoFinalMCCorrection |
Bool_t | fSatelliteVertices |
Int_t | fDebug |
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 700 of file AliBasedNdetaTask.h.
AliBasedNdetaTask::CentralityBin::CentralityBin | ( | ) |
Constructor
Definition at line 1288 of file AliBasedNdetaTask.cxx.
Constructor
name | Name used for histograms (e.g., Forward) |
low | Lower centrality cut in percent |
high | Upper centrality cut in percent |
Definition at line 1310 of file AliBasedNdetaTask.cxx.
AliBasedNdetaTask::CentralityBin::CentralityBin | ( | const CentralityBin & | other | ) |
Copy constructor
other | Object to copy from |
Definition at line 1347 of file AliBasedNdetaTask.cxx.
|
virtual |
Destructor
Reimplemented in AliMCTruthdNdetaTask::CentralityBin, and AliForwarddNdetaTask::CentralityBin.
Definition at line 1370 of file AliBasedNdetaTask.cxx.
|
protectedvirtual |
Check the trigger, vertex, and centrality
forward | Event input |
triggerMask | The used trigger mask |
vzMin | Least \( v_z\) |
vzMax | Largest \( v_z\) |
filter | Mask of trigger bits to filter out |
Definition at line 1558 of file AliBasedNdetaTask.cxx.
Referenced by AliMCTruthdNdetaTask::CentralityBin::ProcessEvent().
Create output objects
dir | Parent list |
mask | Trigger mask |
Definition at line 1463 of file AliBasedNdetaTask.cxx.
Referenced by AliBasedNdetaTask::Book().
|
protectedvirtual |
Create sum histogram
data | Data histogram to clone |
mc | (optional) MC histogram to clone |
Definition at line 1531 of file AliBasedNdetaTask.cxx.
Referenced by AliMCTruthdNdetaTask::CentralityBin::ProcessEvent().
|
virtual |
End of processing
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 |
Reimplemented in AliMCTruthdNdetaTask::CentralityBin, and AliForwarddNdetaTask::CentralityBin.
Definition at line 2007 of file AliBasedNdetaTask.cxx.
Referenced by AliForwarddNdetaTask::CentralityBin::End(), AliMCTruthdNdetaTask::CentralityBin::End(), and AliBasedNdetaTask::Finalize().
Get the color of the markers
fallback | Fall-back color |
Definition at line 1431 of file AliBasedNdetaTask.cxx.
const char * AliBasedNdetaTask::CentralityBin::GetListName | ( | ) | const |
TH1 * AliBasedNdetaTask::CentralityBin::GetResult | ( | const char * | postfix = "" , |
Bool_t | verbose = true |
||
) | const |
Get a result
postfix | Possible postfix (e.g., "MC") |
verbose | If true, complain about missing histogram |
Definition at line 1792 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.
postfix | Possible postfix (e.g., "MC") |
Definition at line 1781 of file AliBasedNdetaTask.cxx.
|
inline |
Get list of results
Definition at line 948 of file AliBasedNdetaTask.h.
Referenced by AliMCTruthdNdetaTask::Finalize().
|
inline |
|
inline |
Get sum histogram
mc | If true, return MC histogram |
Definition at line 900 of file AliBasedNdetaTask.h.
Get sum histogram
mc | If true, return MC histogram |
Definition at line 908 of file AliBasedNdetaTask.h.
|
inline |
|
inline |
|
inline |
Check if this is the 'all' bin
Definition at line 738 of file AliBasedNdetaTask.h.
Referenced by AliMCTruthdNdetaTask::Finalize(), AliBasedNdetaTask::Finalize(), and AliMCTruthdNdetaTask::CentralityBin::ProcessEvent().
|
virtual |
Generate the dN/deta result from input
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 1813 of file AliBasedNdetaTask.cxx.
|
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
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 \]
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 |
Definition at line 1623 of file AliBasedNdetaTask.cxx.
AliBasedNdetaTask::CentralityBin & AliBasedNdetaTask::CentralityBin::operator= | ( | const CentralityBin & | other | ) |
Assignment operator
other | Object to assign from |
Definition at line 1383 of file AliBasedNdetaTask.cxx.
|
virtual |
Print this centrality bin.
option | Options. |
Definition at line 2107 of file AliBasedNdetaTask.cxx.
|
virtual |
Process an event
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 |
Reimplemented in AliMCTruthdNdetaTask::CentralityBin.
Definition at line 1586 of file AliBasedNdetaTask.cxx.
Referenced by AliBasedNdetaTask::Event().
Read in sum hisotgram from list
list | List to read from |
mc | True for MC input |
Definition at line 1500 of file AliBasedNdetaTask.cxx.
void AliBasedNdetaTask::CentralityBin::SetDebugLevel | ( | Int_t | lvl | ) |
Set the debug level
lvl | Debug level |
Definition at line 1491 of file AliBasedNdetaTask.cxx.
Referenced by AliBasedNdetaTask::AddCentralityBin(), and AliBasedNdetaTask::SetDebugLevel().
|
inline |
Set satellite vertex flag
satVtx |
Definition at line 979 of file AliBasedNdetaTask.h.
Referenced by AliBasedNdetaTask::AddCentralityBin().
|
protected |
Definition at line 1031 of file AliBasedNdetaTask.h.
Referenced by CentralityBin().
|
protected |
Definition at line 1029 of file AliBasedNdetaTask.h.
Referenced by operator=().
|
protected |
Definition at line 1028 of file AliBasedNdetaTask.h.
Referenced by CentralityBin(), IsAllBin(), operator=(), and AliMCTruthdNdetaTask::CentralityBin::ProcessEvent().
|
protected |
Definition at line 1027 of file AliBasedNdetaTask.h.
Referenced by CentralityBin(), IsAllBin(), and operator=().
|
protected |
Definition at line 1022 of file AliBasedNdetaTask.h.
Referenced by AliForwarddNdetaTask::CentralityBin::EmpiricalCorrection(), GetResults(), and operator=().
|
protected |
Definition at line 1030 of file AliBasedNdetaTask.h.
Referenced by operator=(), and SetSatelliteVertices().
|
protected |
Definition at line 1026 of file AliBasedNdetaTask.h.
Referenced by GetStatus(), and operator=().
|
protected |
Definition at line 1023 of file AliBasedNdetaTask.h.
Referenced by GetSum(), operator=(), and AliMCTruthdNdetaTask::CentralityBin::ProcessEvent().
|
protected |
Definition at line 1024 of file AliBasedNdetaTask.h.
Referenced by GetSum(), and operator=().
|
protected |
Definition at line 1021 of file AliBasedNdetaTask.h.
Referenced by operator=(), and AliMCTruthdNdetaTask::CentralityBin::ProcessEvent().
|
protected |
Definition at line 1025 of file AliBasedNdetaTask.h.
Referenced by GetTriggers(), and operator=().