![]() |
AliPhysics
a4b41ad (a4b41ad)
|
#include <AliBaseAODTask.h>
Public Member Functions | |
AliBaseAODTask () | |
AliBaseAODTask (const char *name, const char *title) | |
virtual | ~AliBaseAODTask () |
virtual Bool_t | Configure (const char *macro="-default-") |
Set parameters | |
void | SetIPzAxis (Int_t n, Double_t min, Double_t max) |
void | SetIPzAxis (Int_t n, Double_t max) |
void | SetIPzAxis (const TString &spec) |
void | SetCentralityAxis (UShort_t n, Short_t *bins) |
void | SetCentralityAxis (UShort_t n, Double_t *bins) |
void | SetCentralityAxis (Short_t low, Short_t high) |
void | SetCentralityAxis (const char *bins) |
void | SetAbsMinCent (Double_t x=-1) |
void | SetTriggerMask (UInt_t mask) |
void | SetTriggerMask (const char *mask) |
void | SetFilterMask (UInt_t mask) |
void | SetFilterMask (const char *mask) |
Interface member functions | |
virtual Bool_t | Connect (const char *sumFile=0, const char *resFile=0) |
virtual Bool_t | Book ()=0 |
virtual Bool_t | PreData () |
virtual Bool_t | PreEvent () |
virtual Bool_t | Event (AliAODEvent &aod)=0 |
virtual Bool_t | PostEvent () |
virtual Bool_t | Finalize ()=0 |
Utilities | |
void | Print (Option_t *option="") const |
Static Protected Member Functions | |
Service functions to set axis limits | |
static void | FixAxis (TAxis &axis, const char *title=0) |
static void | SetAxis (TAxis &axis, Int_t n, Double_t *borders) |
static void | SetAxis (TAxis &axis, const TString &spec, const char *sep=":,") |
static void | SetAxis (TAxis &axis, Int_t n, Double_t l, Double_t h) |
static void | SetAxis (TAxis &axis, Int_t n, Double_t m) |
static void | PrintAxis (const TAxis &axis, Int_t nSig=2, const char *alt=0) |
Protected Attributes | |
UInt_t | fTriggerMask |
UInt_t | fFilterMask |
TAxis | fCentAxis |
Double_t | fAbsMinCent |
TAxis | fIPzAxis |
TH1I * | fTriggers |
TH1I * | fEventStatus |
TH1D * | fVertex |
TH1D * | fCent |
TH1D * | fAccVertex |
TH2D * | fAccVertexXY |
TH1D * | fAccCent |
Bool_t | fFirstEvent |
Bool_t | fCloneList |
TList * | fSums |
TList * | fResults |
Base class for reading in AOD stuff
Definition at line 15 of file AliBaseAODTask.h.
AliBaseAODTask::AliBaseAODTask | ( | ) |
Constructor (for I/O - do not use)
Definition at line 16 of file AliBaseAODTask.cxx.
AliBaseAODTask::AliBaseAODTask | ( | const char * | name, |
const char * | title | ||
) |
Constructor
name | Name of task |
title | Class name used in configuration script |
Definition at line 37 of file AliBaseAODTask.cxx.
|
inlinevirtual |
Destructor
Definition at line 33 of file AliBaseAODTask.h.
|
protected |
Copyt constructor - not defined
o | Object to copy from |
|
pure virtual |
Book output objects. Derived class should define this to book output objects on the processing output list fList
before the actual event processing. This is called on the master and on each slave.
If this member function returns false, the execution is stopped with a fatal signal.
Implemented in AliBasedNdetaTask, AliBaseMultTask, AliForwardMultDists, and AliFMDEventPlaneTask.
Referenced by UserCreateOutputObjects().
|
protectedvirtual |
Check if the event corresponds to the selected trigger(s), vertex, and centrality. Derived classes can overload this to enable event processing - even if the event is not within cuts.
forward | Forward object |
Reimplemented in AliBasedNdetaTask, AliForwardMultDists, AliBaseMultTask, and AliForwardMultiplicityDistribution.
Definition at line 592 of file AliBaseAODTask.cxx.
Referenced by AliForwardMultiplicityDistribution::CheckEvent(), AliBaseMultTask::CheckEvent(), AliForwardMultDists::CheckEvent(), AliBasedNdetaTask::CheckEvent(), and UserExec().
|
virtual |
Configure this task via a macro
macro | Macro to configure va |
Definition at line 66 of file AliBaseAODTask.cxx.
Referenced by AddTaskdNdeta().
|
virtual |
Add this task to the manager and connect the outputs. If sumFile is null or the empty string, then the sum container is stored in the default output file of the manager. If resFile is null or the empty string, then it is set to resFile if defined, otherwise to the default output file of the manager.
sumFile | Output file for sums |
resFile | Output file for sums |
Definition at line 289 of file AliBaseAODTask.cxx.
Referenced by AddTaskCreateRespMatr(), AddTaskdNdeta(), AddTaskMultDistributions(), AddTaskMultDists(), and AddTaskTriggerCorrection().
|
inlineprotectedvirtual |
Get the name of the default configuration script to use. Sub-classes can override this to give another default configuration script. Note, it should problably only return the base name (not full path) of the script.
Definition at line 453 of file AliBaseAODTask.h.
Referenced by Configure().
|
pure virtual |
Process a single event
aod | Input event |
Implemented in AliBasedNdetaTask, AliBaseMultTask, AliForwardMultDists, and AliFMDEventPlaneTask.
Referenced by UserExec().
|
pure virtual |
Do the final analysis on the merged output.
Implemented in AliBasedNdetaTask, AliBaseMultTask, AliForwardMultDists, AliFMDEventPlaneTask, AliForwarddNdetaTask, and AliMCTruthdNdetaTask.
Referenced by Terminate().
|
staticprotected |
Fix axis attributes
axis | Axis to fix |
title | Possible title for axis |
Definition at line 135 of file AliBaseAODTask.cxx.
Referenced by SetAxis().
|
protected |
Get the central object from the AOD
aod | AOD event |
mc | If true, for MC |
verb | If truem be verbose |
Definition at line 512 of file AliBaseAODTask.cxx.
Referenced by AliForwardMultDists::Event(), AliBaseMultTask::Event(), and AliCentraldNdetaTask::GetHistogram().
|
protectedvirtual |
Get the centrality. The trigger mask of the forward object is not modified
event | Our event |
forward | Our FMD event |
qual | On return, the quality flag |
Reimplemented in AliBasedNdetaTask.
Definition at line 457 of file AliBaseAODTask.cxx.
Referenced by GetCentrality(), AliBasedNdetaTask::GetCentrality(), and UserExec().
|
protectedvirtual |
Get the centrality. If the quality is bad, set the corresponding bit on the forward object.
event | Our event |
forward | Our FMD event |
Reimplemented in AliBasedNdetaTask.
Definition at line 470 of file AliBaseAODTask.cxx.
|
protected |
Get the forward object from the AOD
aod | AOD event |
mc | If true, for MC |
verb | If truem be verbose |
Definition at line 429 of file AliBaseAODTask.cxx.
Referenced by AliFMDEventPlaneTask::Event(), AliForwardMultDists::Event(), AliBaseMultTask::Event(), AliBasedNdetaTask::Event(), AliForwarddNdetaTask::GetHistogram(), AliForwardMultDists::PreData(), and UserExec().
|
protectedvirtual |
Get the IPs (x,y) coordinates
aod | Input event |
x | On return, the X coordinate |
y | On return, the Y coordinate |
Definition at line 488 of file AliBaseAODTask.cxx.
Referenced by UserExec().
|
protectedvirtual |
Get the Z coordinate of the interaction point
event | Our event |
forward | Our FMD event |
Definition at line 481 of file AliBaseAODTask.cxx.
Referenced by UserExec().
|
protected |
Get the Mult event class object from the AOD
aod | AOD event |
verb | If truem be verbose |
Definition at line 444 of file AliBaseAODTask.cxx.
|
protected |
Get the histogram of primary particles
aod | AOD event |
Definition at line 527 of file AliBaseAODTask.cxx.
Referenced by AliForwardMultDists::Event(), AliBaseMultTask::Event(), AliMCTruthdNdetaTask::GetHistogram(), and AliForwardMultDists::PreData().
|
inlineprotected |
Check if we have centrality bins defined
Definition at line 396 of file AliBaseAODTask.h.
Referenced by AliBasedNdetaTask::AddCentralityBin(), AliBasedNdetaTask::Book(), CheckEvent(), AliBasedNdetaTask::Event(), AliMCTruthdNdetaTask::Finalize(), AliBasedNdetaTask::Finalize(), GetCentrality(), AliBasedNdetaTask::InitializeCentBins(), and UserExec().
|
inlineprotectedvirtual |
Initialise on master - does nothing
Definition at line 253 of file AliBaseAODTask.h.
|
protected |
Assignment operatoer - not defined
o | Object to assign from |
|
inlinevirtual |
Called after processing a single event - should not do anything but clear data, etc.
Definition at line 211 of file AliBaseAODTask.h.
Referenced by UserExec().
|
inlinevirtual |
Called after reading in the first event. Here we can setup stuff depending on the conditions we're running under.
Reimplemented in AliForwardMultDists.
Definition at line 189 of file AliBaseAODTask.h.
Referenced by UserExec().
|
inlinevirtual |
Called before processing a single event - should not do anything but clear data, etc.
Reimplemented in AliBasedNdetaTask, AliBaseMultTask, and AliForwardMultDists.
Definition at line 196 of file AliBaseAODTask.h.
Referenced by UserExec().
void AliBaseAODTask::Print | ( | Option_t * | option = "" | ) | const |
Print information
option | Not used |
Print this task
option | Not used |
Definition at line 669 of file AliBaseAODTask.cxx.
Referenced by AliForwardMultDists::Print(), AliBasedNdetaTask::Print(), and UserCreateOutputObjects().
|
staticprotected |
Print axis
axis | Axis to print |
nSig | Number of significant digits |
alt | Alternative |
Definition at line 213 of file AliBaseAODTask.cxx.
Referenced by Print().
|
inline |
Set the very least centrality to consider. This is for cases where the centrality calibration of simulated data doesn't really match the real-data one, but we want to keep the original centrality bins. E.g., for LHC15k1b1, the calibration of the DPMJet centrality does not give the same mean number of tracklets for the very most central bin. We therefor need to rule out the event with a very large number of tracklets from the sample by setting this parameter to for example 0.1. If this parameter is set to a negative value (default) it is not considered.
x | Absolute lowest centrality to consider |
Definition at line 127 of file AliBaseAODTask.h.
Set an axis based on bin borders
axis | Axis to set |
n | Number of bins |
borders | Bin borders (n+1 entries) |
Definition at line 151 of file AliBaseAODTask.cxx.
Referenced by SetAxis(), SetCentralityAxis(), and SetIPzAxis().
|
staticprotected |
Set an axis based on test string of specs. The token separator is given in sep.
axis | Axis to set |
spec | Specification |
sep | Token separate |
Definition at line 157 of file AliBaseAODTask.cxx.
Set axis with least and largest values
axis | Axis to set |
n | Number of bins |
l | Least value |
h | Largest value |
Definition at line 199 of file AliBaseAODTask.cxx.
Set a symmetric axis
axis | Axis to set |
n | Number of bins |
m | Maximum absolute value |
Definition at line 208 of file AliBaseAODTask.cxx.
Set the centrality bins to use.
n | Number of bins (elements in bins minus 1) |
bins | Bin limits |
Definition at line 234 of file AliBaseAODTask.cxx.
Referenced by AddTaskMultDistributions().
Set the centrality bins to use.
n | Number of bins (elements in bins minus 1) |
bins | Bin limits |
Definition at line 274 of file AliBaseAODTask.cxx.
Define a single centrality bin from low to high
low | Lower bound |
high | Upper bound |
Definition at line 281 of file AliBaseAODTask.cxx.
void AliBaseAODTask::SetCentralityAxis | ( | const char * | bins | ) |
Set the centrality axis to use based on a string. The bin edges are separated by colons.
bins | String of bin edges |
Definition at line 245 of file AliBaseAODTask.cxx.
void AliBaseAODTask::SetFilterMask | ( | UInt_t | mask | ) |
Set mask of events to filter out
mask | The fitler mask |
Definition at line 129 of file AliBaseAODTask.cxx.
Referenced by SetFilterMask().
void AliBaseAODTask::SetFilterMask | ( | const char * | mask | ) |
Set the \( \mathrm{IP}_z\) axis
n | Number of bins |
min | Least value |
max | Largest value |
Definition at line 53 of file AliBaseAODTask.h.
Referenced by AliBasedNdetaTask::AliBasedNdetaTask().
Set the \( \mathrm{IP}_z\) axis
n | Number of bins |
max | Largest absolute value |
Definition at line 63 of file AliBaseAODTask.h.
|
inline |
Set the interaction point Z axis
spec | bin specification |
Definition at line 72 of file AliBaseAODTask.h.
void AliBaseAODTask::SetTriggerMask | ( | UInt_t | mask | ) |
Set the trigger maskl
mask | Trigger mask |
Definition at line 109 of file AliBaseAODTask.cxx.
Referenced by AddTaskCreateRespMatr(), AddTaskForwardMultDists(), AddTaskMultDistributions(), AddTaskMultDists(), AddTaskTriggerCorrection(), and SetTriggerMask().
void AliBaseAODTask::SetTriggerMask | ( | const char * | mask | ) |
|
protectedvirtual |
Store information about the job on output
forward | Forward object |
Definition at line 616 of file AliBaseAODTask.cxx.
Referenced by UserExec().
|
protectedvirtual |
Called at end of event processing.
This is called once in the master
option | Not used |
Definition at line 624 of file AliBaseAODTask.cxx.
|
protectedvirtual |
Create output objects.
This is called once per slave process
Definition at line 336 of file AliBaseAODTask.cxx.
|
protectedvirtual |
|
protected |
The absolute minimum centrality to consider - for MC with poor match
Definition at line 462 of file AliBaseAODTask.h.
Referenced by AliBasedNdetaTask::Finalize(), Print(), SetAbsMinCent(), and UserExec().
|
protected |
Centrality distribution of accepted events
Definition at line 478 of file AliBaseAODTask.h.
Referenced by AliBasedNdetaTask::Book(), UserCreateOutputObjects(), and UserExec().
|
protected |
Vertex distribution of accepted events
Definition at line 474 of file AliBaseAODTask.h.
Referenced by UserCreateOutputObjects(), and UserExec().
|
protected |
Vertex (x,y) distribution of accepted events
Definition at line 476 of file AliBaseAODTask.h.
Referenced by UserCreateOutputObjects(), and UserExec().
|
protected |
Centrality distribution of all events
Definition at line 472 of file AliBaseAODTask.h.
Referenced by AliBasedNdetaTask::Book(), UserCreateOutputObjects(), and UserExec().
|
protected |
Centrality axis
Definition at line 460 of file AliBaseAODTask.h.
Referenced by AliBasedNdetaTask::AddCentralityBin(), AliBaseAODTask(), AliBasedNdetaTask::Book(), CheckEvent(), AliBasedNdetaTask::Event(), AliBasedNdetaTask::Finalize(), GetCentrality(), HasCentrality(), AliBasedNdetaTask::InitializeCentBins(), Print(), SetCentralityAxis(), and UserCreateOutputObjects().
|
protected |
Wether to clone sum list for results
Definition at line 482 of file AliBaseAODTask.h.
Referenced by Terminate().
|
protected |
Histogram of event selection
Definition at line 468 of file AliBaseAODTask.h.
Referenced by CheckEvent(), AliBasedNdetaTask::CheckEvent(), and UserCreateOutputObjects().
|
protected |
Events to filter out
Definition at line 458 of file AliBaseAODTask.h.
Referenced by CheckEvent(), AliBasedNdetaTask::CheckEvent(), AliBasedNdetaTask::Event(), Print(), SetFilterMask(), and UserCreateOutputObjects().
|
protected |
Information stored or not
Definition at line 480 of file AliBaseAODTask.h.
Referenced by UserExec().
|
protected |
Collision point axis
Definition at line 464 of file AliBaseAODTask.h.
Referenced by CheckEvent(), AliBasedNdetaTask::CheckEvent(), AliForwarddNdetaTask::CheckEventData(), AliForwardMultDists::Event(), AliBasedNdetaTask::Event(), AliBasedNdetaTask::Finalize(), AliForwardMultDists::PreData(), Print(), AliBaseMultTask::Process(), and SetIPzAxis().
|
protected |
Output list of results
Definition at line 486 of file AliBaseAODTask.h.
Referenced by AliMCTruthdNdetaTask::Finalize(), AliForwardMultDists::Finalize(), AliBasedNdetaTask::Finalize(), AliForwarddNdetaTask::LoadEmpirical(), and Terminate().
|
protected |
Output list of sums
Definition at line 484 of file AliBaseAODTask.h.
Referenced by AliFMDEventPlaneTask::Book(), AliBaseMultTask::Book(), AliBasedNdetaTask::Book(), AliBasedNdetaTask::CentralityBin::CreateOutputObjects(), AliBasedNdetaTask::CentralityBin::CreateSums(), AliMCTruthdNdetaTask::CentralityBin::End(), AliBasedNdetaTask::CentralityBin::End(), AliForwardMultDists::Finalize(), AliBasedNdetaTask::Finalize(), AliBasedNdetaTask::InitializeCentBins(), AliForwarddNdetaTask::LoadEmpirical(), AliBasedNdetaTask::CentralityBin::operator=(), AliForwardMultDists::PreData(), StoreInformation(), Terminate(), UserCreateOutputObjects(), and UserExec().
|
protected |
Trigger mask
Definition at line 456 of file AliBaseAODTask.h.
Referenced by AliBasedNdetaTask::AliBasedNdetaTask(), AliBasedNdetaTask::Book(), CheckEvent(), AliBasedNdetaTask::CheckEvent(), AliForwardMultDists::Event(), AliBasedNdetaTask::Event(), AliBasedNdetaTask::Finalize(), Print(), SetTriggerMask(), and UserCreateOutputObjects().
|
protected |
Histogram of triggers
Definition at line 466 of file AliBaseAODTask.h.
Referenced by CheckEvent(), AliBasedNdetaTask::CheckEvent(), AliBasedNdetaTask::CentralityBin::CheckEvent(), AliBasedNdetaTask::CentralityBin::CreateOutputObjects(), AliForwarddNdetaTask::CentralityBin::End(), AliMCTruthdNdetaTask::CentralityBin::End(), AliBasedNdetaTask::CentralityBin::End(), AliBasedNdetaTask::CentralityBin::operator=(), and UserCreateOutputObjects().
|
protected |
Vertex distribution of all events
Definition at line 470 of file AliBaseAODTask.h.
Referenced by AliForwardMultDists::PreData(), UserCreateOutputObjects(), and UserExec().