![]() |
AliPhysics
eae49ab (eae49ab)
|
#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 19 of file AliBaseAODTask.cxx.
Referenced by PostEvent().
AliBaseAODTask::AliBaseAODTask | ( | const char * | name, |
const char * | title | ||
) |
Constructor
name | Name of task |
title | Class name used in configuration script |
Definition at line 40 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 SetAbsMinCent(), and 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 596 of file AliBaseAODTask.cxx.
Referenced by AliForwardMultiplicityDistribution::CheckEvent(), AliBaseMultTask::CheckEvent(), AliForwardMultDists::CheckEvent(), AliBasedNdetaTask::CheckEvent(), Init(), and UserExec().
|
virtual |
Configure this task via a macro
macro | Macro to configure va |
Definition at line 69 of file AliBaseAODTask.cxx.
Referenced by AddTaskdNdeta(), and ~AliBaseAODTask().
|
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 293 of file AliBaseAODTask.cxx.
Referenced by AddTaskCreateRespMatr(), AddTaskdNdeta(), AddTaskMultDistributions(), AddTaskMultDists(), AddTaskTriggerCorrection(), and SetAbsMinCent().
|
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 460 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 PreEvent(), and UserExec().
|
pure virtual |
Do the final analysis on the merged output.
Implemented in AliBasedNdetaTask, AliBaseMultTask, AliForwardMultDists, AliFMDEventPlaneTask, AliForwarddNdetaTask, and AliMCTruthdNdetaTask.
Referenced by PostEvent(), and Terminate().
|
staticprotected |
Fix axis attributes
axis | Axis to fix |
title | Possible title for axis |
Definition at line 138 of file AliBaseAODTask.cxx.
|
protected |
Get the central object from the AOD
aod | AOD event |
mc | If true, for MC |
verb | If truem be verbose |
Definition at line 516 of file AliBaseAODTask.cxx.
Referenced by AliForwardMultDists::Event(), AliBaseMultTask::Event(), AliCentraldNdetaTask::GetHistogram(), and Init().
|
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 461 of file AliBaseAODTask.cxx.
Referenced by GetCentrality(), AliBasedNdetaTask::GetCentrality(), HasCentrality(), 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 474 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 433 of file AliBaseAODTask.cxx.
Referenced by AliFMDEventPlaneTask::Event(), AliForwardMultDists::Event(), AliBaseMultTask::Event(), AliBasedNdetaTask::Event(), AliForwarddNdetaTask::GetHistogram(), Init(), 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 492 of file AliBaseAODTask.cxx.
Referenced by HasCentrality(), and UserExec().
|
protectedvirtual |
Get the Z coordinate of the interaction point
event | Our event |
forward | Our FMD event |
Definition at line 485 of file AliBaseAODTask.cxx.
Referenced by HasCentrality(), and UserExec().
|
protected |
Get the Mult event class object from the AOD
aod | AOD event |
verb | If truem be verbose |
Definition at line 448 of file AliBaseAODTask.cxx.
Referenced by Init().
|
protected |
Get the histogram of primary particles
aod | AOD event |
Definition at line 531 of file AliBaseAODTask.cxx.
Referenced by AliForwardMultDists::Event(), AliBaseMultTask::Event(), AliMCTruthdNdetaTask::GetHistogram(), Init(), and AliForwardMultDists::PreData().
|
inlineprotected |
Check if we have centrality bins defined
Definition at line 403 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 |
Referenced by PostEvent().
|
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 718 of file AliBaseAODTask.cxx.
Referenced by PostEvent(), AliForwardMultDists::Print(), AliBasedNdetaTask::Print(), and UserCreateOutputObjects().
|
staticprotected |
Print axis
axis | Axis to print |
nSig | Number of significant digits |
alt | Alternative |
Definition at line 216 of file AliBaseAODTask.cxx.
|
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 154 of file AliBaseAODTask.cxx.
Referenced by Init(), 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 160 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 202 of file AliBaseAODTask.cxx.
Set a symmetric axis
axis | Axis to set |
n | Number of bins |
m | Maximum absolute value |
Definition at line 211 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 237 of file AliBaseAODTask.cxx.
Referenced by AddTaskMultDistributions(), and SetIPzAxis().
Set the centrality bins to use.
n | Number of bins (elements in bins minus 1) |
bins | Bin limits |
Definition at line 278 of file AliBaseAODTask.cxx.
Define a single centrality bin from low to high
low | Lower bound |
high | Upper bound |
Definition at line 285 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 248 of file AliBaseAODTask.cxx.
void AliBaseAODTask::SetFilterMask | ( | UInt_t | mask | ) |
Set mask of events to filter out
mask | The fitler mask |
Definition at line 132 of file AliBaseAODTask.cxx.
Referenced by SetAbsMinCent(), and 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 112 of file AliBaseAODTask.cxx.
Referenced by AddTaskCreateRespMatr(), AddTaskForwardMultDists(), AddTaskMultDistributions(), AddTaskMultDists(), AddTaskTriggerCorrection(), SetAbsMinCent(), and SetTriggerMask().
void AliBaseAODTask::SetTriggerMask | ( | const char * | mask | ) |
|
protectedvirtual |
Store information about the job on output
forward | Forward object |
Definition at line 620 of file AliBaseAODTask.cxx.
Referenced by Init(), and UserExec().
Store the analysis trains name on the output pointed to by slot number no.
no | Output slot |
Definition at line 628 of file AliBaseAODTask.cxx.
Referenced by Init(), and Terminate().
|
protectedvirtual |
Called at end of event processing.
This is called once in the master
option | Not used |
Definition at line 667 of file AliBaseAODTask.cxx.
Referenced by AliForwardMultDists::EtaBin::GetName(), and Init().
|
protectedvirtual |
Create output objects.
This is called once per slave process
Definition at line 340 of file AliBaseAODTask.cxx.
Referenced by Init().
|
protectedvirtual |
Process a single event
option | Not used |
Definition at line 541 of file AliBaseAODTask.cxx.
Referenced by Init().
|
protected |
The absolute minimum centrality to consider - for MC with poor match
Definition at line 469 of file AliBaseAODTask.h.
Referenced by AliBasedNdetaTask::Finalize(), Print(), SetAbsMinCent(), and UserExec().
|
protected |
Centrality distribution of accepted events
Definition at line 485 of file AliBaseAODTask.h.
Referenced by AliBasedNdetaTask::Book(), UserCreateOutputObjects(), and UserExec().
|
protected |
Vertex distribution of accepted events
Definition at line 481 of file AliBaseAODTask.h.
Referenced by UserCreateOutputObjects(), and UserExec().
|
protected |
Vertex (x,y) distribution of accepted events
Definition at line 483 of file AliBaseAODTask.h.
Referenced by UserCreateOutputObjects(), and UserExec().
|
protected |
Centrality distribution of all events
Definition at line 479 of file AliBaseAODTask.h.
Referenced by AliBasedNdetaTask::Book(), UserCreateOutputObjects(), and UserExec().
|
protected |
Centrality axis
Definition at line 467 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 489 of file AliBaseAODTask.h.
Referenced by Terminate().
|
protected |
Histogram of event selection
Definition at line 475 of file AliBaseAODTask.h.
Referenced by CheckEvent(), AliBasedNdetaTask::CheckEvent(), and UserCreateOutputObjects().
|
protected |
Events to filter out
Definition at line 465 of file AliBaseAODTask.h.
Referenced by CheckEvent(), AliBasedNdetaTask::CheckEvent(), AliBasedNdetaTask::Event(), Print(), SetFilterMask(), and UserCreateOutputObjects().
|
protected |
Information stored or not
Definition at line 487 of file AliBaseAODTask.h.
Referenced by UserExec().
|
protected |
Collision point axis
Definition at line 471 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 493 of file AliBaseAODTask.h.
Referenced by AliMCTruthdNdetaTask::Finalize(), AliForwardMultDists::Finalize(), AliBasedNdetaTask::Finalize(), AliForwarddNdetaTask::LoadEmpirical(), and Terminate().
|
protected |
Output list of sums
Definition at line 491 of file AliBaseAODTask.h.
Referenced by AliFMDEventPlaneTask::Book(), AliBaseMultTask::Book(), AliBasedNdetaTask::Book(), AliMCTruthdNdetaTask::CentralityBin::End(), AliForwardMultDists::Finalize(), AliBasedNdetaTask::Finalize(), AliBasedNdetaTask::InitializeCentBins(), AliForwarddNdetaTask::LoadEmpirical(), AliForwardMultDists::PreData(), AliMCTruthdNdetaTask::CentralityBin::ProcessEvent(), StoreInformation(), Terminate(), UserCreateOutputObjects(), and UserExec().
|
protected |
Trigger mask
Definition at line 463 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 473 of file AliBaseAODTask.h.
Referenced by CheckEvent(), AliBasedNdetaTask::CheckEvent(), AliForwarddNdetaTask::CentralityBin::End(), AliMCTruthdNdetaTask::CentralityBin::End(), AliBasedNdetaTask::CentralityBin::GetTriggers(), and UserCreateOutputObjects().
|
protected |
Vertex distribution of all events
Definition at line 477 of file AliBaseAODTask.h.
Referenced by AliForwardMultDists::PreData(), UserCreateOutputObjects(), and UserExec().