![]() |
AliPhysics
a4b41ad (a4b41ad)
|
#include <AliBasedNdetaTask.h>
Classes | |
class | CentralityBin |
struct | Sum |
Public Types | |
enum | { kNone = 0, kEventLevel = 0x1, kDummy = 0x2, kBackground = 0x4, kTriggerEfficiency = 0x8, kZeroBin = 0x10, kFull = kEventLevel | kBackground | kTriggerEfficiency } |
enum | EPileupMask { kPileupNormal = 0, kPileupSPD = 0x1, kPileupTrk = 0x2, kPileupBC = 0x4, kPileupFull = 0x8, kPileupIgnore = 0x10, kPileupUtil = 0x20, kPileupBins = 0x40 } |
enum | ECentralityEstimator { kCentNone, kCentDefault, kCentV0M, kCentV0A, kCentV0A123, kCentV0C, kCentFMD, kCentTrk, kCentTkl, kCentCL0, kCentCL1, kCentCND, kCentZNA, kCentZNC, kCentZPA, kCentZPC, kCentNPA, kCentV0MvsFMD, kCentTklvsV0M, kCentZEMvsZDC, kMult, kMultV0A, kMultV0M, kMultV0C, kCentTrue = 0x100, kCentEq = 0x200 } |
enum | { kSolid = 0x000, kHollow = 0x001, kCircle = 0x002, kSquare = 0x004, kUpTriangle = 0x006, kDownTriangle = 0x008, kDiamond = 0x00a, kCross = 0x00c, kStar = 0x00e } |
Public Member Functions | |
AliBasedNdetaTask () | |
AliBasedNdetaTask (const char *name) | |
virtual | ~AliBasedNdetaTask () |
void | Print (Option_t *option="R") const |
void | SetGlobalEmpiricalcorrection (TH2D *h) |
void | SetIpzReweight (TF1 *f) |
Task interface | |
virtual Bool_t | Book () |
virtual Bool_t | PreEvent () |
virtual Bool_t | Event (AliAODEvent &aod) |
virtual Bool_t | Finalize () |
![]() | |
AliBaseAODTask () | |
AliBaseAODTask (const char *name, const char *title) | |
virtual | ~AliBaseAODTask () |
virtual Bool_t | Configure (const char *macro="-default-") |
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) |
virtual Bool_t | Connect (const char *sumFile=0, const char *resFile=0) |
virtual Bool_t | PreData () |
virtual Bool_t | PostEvent () |
void | Print (Option_t *option="") const |
Static Public Member Functions | |
static Int_t | GetMarkerStyle (UShort_t bits) |
static UShort_t | GetMarkerBits (Int_t style) |
static Int_t | FlipHollowStyle (Int_t style) |
Services member functions | |
static TH1D * | ProjectX (const TH2D *h, const char *name, Int_t firstbin, Int_t lastbin, bool useROOT=false, bool corr=true, bool error=true) |
static void | ScaleToCoverage (TH2D *copy, const TH1D *norm) |
static void | ScaleToCoverage (TH1D *copy, const TH1D *norm) |
static void | SetHistogramAttributes (TH1D *h, Int_t colour, Int_t marker, const char *title, const char *ytitle=0) |
Static Protected Member Functions | |
static TH1 * | Asymmetry (TH1 *h) |
static Int_t | GetCentMethodID (const TString &meth) |
static const char * | GetCentMethod (UShort_t id) |
![]() | |
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 | |
Bool_t | fCorrEmpty |
Bool_t | fUseROOTProj |
Double_t | fTriggerEff |
Double_t | fTriggerEff0 |
TObjArray * | fListOfCentralities |
UShort_t | fNormalizationScheme |
TString | fFinalMCCorrFile |
Bool_t | fSatelliteVertices |
TH2D * | fEmpiricalCorrection |
TProfile * | fMeanVsC |
TH1D * | fSeenCent |
TH1D * | fTakenCent |
TString | fCentMethod |
AliAnalysisUtils | fAnaUtil |
Bool_t | fUseUtilPileup |
TF1 * | fIpzReweight |
Double_t | fCacheCent |
Int_t | fCacheQual |
![]() | |
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 |
Task configuration | |
virtual void | SetDebugLevel (Int_t level) |
void | SetCorrEmpty (Bool_t use) |
void | SetUseROOTProjectX (Bool_t use) |
void | SetUseUtilPileup (Bool_t use) |
void | SetTriggerEff (Double_t e) |
void | SetTriggerEff0 (Double_t e) |
void | SetSatelliteVertices (Bool_t satVtx) |
Bool_t | SetCentralityMethod (const TString &method) |
AliAnalysisUtils & | GetAnalysisUtils () |
void | SetNormalizationScheme (UShort_t scheme) |
void | SetNormalizationScheme (const char *what) |
void | SetMCFinalCorrFilename (const char *filename) |
static const Char_t * | NormalizationSchemeString (UShort_t scheme) |
static UShort_t | ParseNormalizationScheme (const Char_t *what) |
Base class for tasks to determine \( dN/d\eta\)
Definition at line 49 of file AliBasedNdetaTask.h.
anonymous enum |
Bit mask values of the normalisation scheme
Definition at line 55 of file AliBasedNdetaTask.h.
anonymous enum |
Marker styles
Enumerator | |
---|---|
kSolid | |
kHollow | |
kCircle | |
kSquare | |
kUpTriangle | |
kDownTriangle | |
kDiamond | |
kCross | |
kStar |
Definition at line 376 of file AliBasedNdetaTask.h.
Definition at line 128 of file AliBasedNdetaTask.h.
Mask for selecting pile-up
Definition at line 93 of file AliBasedNdetaTask.h.
AliBasedNdetaTask::AliBasedNdetaTask | ( | ) |
Constructor
Definition at line 119 of file AliBasedNdetaTask.cxx.
AliBasedNdetaTask::AliBasedNdetaTask | ( | const char * | name | ) |
|
virtual |
Destructor
Definition at line 185 of file AliBasedNdetaTask.cxx.
|
inlineprotected |
Copy contructor - not defined
Definition at line 448 of file AliBasedNdetaTask.h.
Add a centrality bin
at | Where in the list to add this bin |
low | Low cut |
high | High cut |
Definition at line 207 of file AliBasedNdetaTask.cxx.
Referenced by InitializeCentBins().
|
protected |
Definition at line 2303 of file AliBasedNdetaTask.cxx.
Referenced by Event().
Static function toe calculate the asymmetry of the input histogram around 0.
h | Input histogram |
Definition at line 2335 of file AliBasedNdetaTask.cxx.
Referenced by Finalize().
|
virtual |
Create output objects.
This is called once per slave process
Implements AliBaseAODTask.
Definition at line 485 of file AliBasedNdetaTask.cxx.
|
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 from AliBaseAODTask.
Definition at line 574 of file AliBasedNdetaTask.cxx.
Referenced by AliBasedNdetaTask::CentralityBin::ProcessEvent().
Massage data histograms if needed
vtx | |
data | |
mcData |
Reimplemented in AliForwarddNdetaTask.
Definition at line 728 of file AliBasedNdetaTask.cxx.
Referenced by Event().
|
protected |
|
virtual |
Process a single event
Implements AliBaseAODTask.
Definition at line 638 of file AliBasedNdetaTask.cxx.
|
virtual |
Called at end of event processing.
This is called once in the master
Implements AliBaseAODTask.
Reimplemented in AliForwarddNdetaTask, and AliMCTruthdNdetaTask.
Definition at line 904 of file AliBasedNdetaTask.cxx.
Referenced by AliMCTruthdNdetaTask::Finalize(), and AliForwarddNdetaTask::Finalize().
Flip an option bit
style | Style parameter |
Definition at line 1197 of file AliBasedNdetaTask.cxx.
Referenced by AliBasedNdetaTask::Sum::CalcSum().
|
inline |
Get reference to the analysis utility
Definition at line 241 of file AliBasedNdetaTask.h.
|
staticprotected |
Get the estimator string from simple ID
id | Simple ID |
Definition at line 410 of file AliBasedNdetaTask.cxx.
Referenced by SetCentralityMethod().
Static member to get a simple ID from a centrality esitmator string. Used to check the validity of the centrality estimator
meth | Method string |
Definition at line 372 of file AliBasedNdetaTask.cxx.
Referenced by Book(), and SetCentralityMethod().
|
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 from AliBaseAODTask.
Definition at line 596 of file AliBasedNdetaTask.cxx.
Referenced by Event(), and GetCentrality().
|
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 from AliBaseAODTask.
Definition at line 627 of file AliBasedNdetaTask.cxx.
|
inlineprotectedvirtual |
Get the colour to use for markers (only pp - in PbPb we use a rainbow)
Reimplemented in AliMCTruthdNdetaTask, AliForwarddNdetaTask, and AliCentraldNdetaTask.
Definition at line 487 of file AliBasedNdetaTask.h.
Referenced by AliBasedNdetaTask::CentralityBin::CreateSums(), Finalize(), and AliBasedNdetaTask::CentralityBin::MakeResult().
|
protectedpure virtual |
Retrieve the histogram
aod | AOD event |
mc | Whether to get the MC histogram or not |
Implemented in AliMCTruthdNdetaTask, AliForwarddNdetaTask, and AliCentraldNdetaTask.
Referenced by Event().
|
inlineprotectedvirtual |
Get the marker style
Reimplemented in AliMCTruthdNdetaTask, and AliCentraldNdetaTask.
Definition at line 493 of file AliBasedNdetaTask.h.
Referenced by Finalize().
Get the marker option bits from a style
style | Style |
Definition at line 1177 of file AliBasedNdetaTask.cxx.
Referenced by AliBasedNdetaTask::Sum::CalcSum(), AliBasedNdetaTask::CentralityBin::End(), and FlipHollowStyle().
Get the marker style from option bits
bits | Option bits |
Definition at line 1160 of file AliBasedNdetaTask.cxx.
Referenced by AliBasedNdetaTask::Sum::CalcSum(), AliMCTruthdNdetaTask::CentralityBin::End(), AliBasedNdetaTask::CentralityBin::End(), FlipHollowStyle(), AliCentraldNdetaTask::GetMarker(), AliMCTruthdNdetaTask::GetMarker(), GetMarker(), and AliBasedNdetaTask::Sum::Init().
|
protectedvirtual |
Create the CentralityBin objects if not already done.
Definition at line 455 of file AliBasedNdetaTask.cxx.
Referenced by Book(), and Finalize().
|
protectedvirtual |
Make a centrality bin
name | Name used for histograms |
low | Low cut in percent |
high | High cut in percent |
Reimplemented in AliForwarddNdetaTask, and AliMCTruthdNdetaTask.
Definition at line 238 of file AliBasedNdetaTask.cxx.
Referenced by AddCentralityBin().
Get a string representing the normalization scheme
scheme | Normalization scheme bits |
Definition at line 262 of file AliBasedNdetaTask.cxx.
Referenced by Finalize(), and Print().
|
protected |
Assignment operator - not defined
Parse a string representing the normalization scheme
what | String of the normalization scheme |
Definition at line 283 of file AliBasedNdetaTask.cxx.
Referenced by SetNormalizationScheme().
|
inlinevirtual |
Called before processing a single event - should not do anything but clear data, etc.
Reimplemented from AliBaseAODTask.
Definition at line 303 of file AliBasedNdetaTask.h.
void AliBasedNdetaTask::Print | ( | Option_t * | option = "R" | ) | const |
Print information
option | If it contains R, print recursive |
Definition at line 1125 of file AliBasedNdetaTask.cxx.
Referenced by Finalize().
|
static |
Project onto the X axis
h | 2D histogram |
name | New name |
firstbin | First bin to use |
lastbin | Last bin to use |
useROOT | Use TH2::ProjectionX instead of custom code |
corr | Whether to do corrections or not |
error | Whether to calculate errors |
Definition at line 811 of file AliBasedNdetaTask.cxx.
Referenced by AliBasedNdetaTask::Sum::CalcSum(), and AliBasedNdetaTask::CentralityBin::MakeResult().
Scale the copy of the 2D histogram by coverage in supplied 1D histogram
copy | Data to scale |
norm | Coverage histogram |
Definition at line 770 of file AliBasedNdetaTask.cxx.
Referenced by AliBasedNdetaTask::Sum::CalcSum(), and AliBasedNdetaTask::CentralityBin::MakeResult().
Scale the copy of the 1D histogram by coverage in supplied 1D histogram
copy | Data to scale |
norm | Coverage histogram |
Definition at line 791 of file AliBasedNdetaTask.cxx.
Set which centrality estimator to use - if not set, use the one from the Forward AOD object. Note, the string is diagnosed, and if found not to be valid, then a the program terminates via a Fatal.
method | String definining centrality method (case insensitive) Typical values are
|
Definition at line 341 of file AliBasedNdetaTask.cxx.
|
inline |
Set whether to correct for empty bins when projecting on the X axis.
use | Whether to correct for empty bins |
Definition at line 188 of file AliBasedNdetaTask.h.
Referenced by dNdetaConfig().
|
virtual |
Set the debug level
level | Debug level |
Definition at line 195 of file AliBasedNdetaTask.cxx.
|
inline |
Setter of empirical correction
h | 2D histogram of ratio of nominal \( 1/N dN_{ch}/d\eta\) to satellite \( 1/N dN_{ch}/d\eta\) in PbPb collisions as a function of \(\eta\) and interaction point Z-coordinate \( IP_{z}\) |
Definition at line 419 of file AliBasedNdetaTask.h.
|
static |
Set histogram graphical options, etc.
h | Histogram to modify |
colour | Marker color |
marker | Marker style |
title | Title of histogram |
ytitle | Title on y-axis. |
Definition at line 736 of file AliBasedNdetaTask.cxx.
Referenced by AliMCTruthdNdetaTask::CentralityBin::End(), and AliBasedNdetaTask::CentralityBin::MakeResult().
|
inline |
Set re-weighing function to correct for different primary vertex distribution in analysed data from what was used in the empirical correction. To use, put code like the following into the configuration file (default dNdetaConfig.C
):
where muIpz and sigmaIpz are the mean and sigma of the data being analysed. The values 0.592 (+/- 0.023) and 6.836 (+/- 0.029) are the best-fit ( \( \chi^2/\nu=0.76\)) values from the empirical base run (138190). Currently, the errors on the parameters are not used.
f | Function to use |
Definition at line 443 of file AliBasedNdetaTask.h.
|
inline |
Filename of final MC correction
filename | filename |
Definition at line 275 of file AliBasedNdetaTask.h.
void AliBasedNdetaTask::SetNormalizationScheme | ( | UShort_t | scheme | ) |
Setthe normalisation scheme to use
scheme | Normalisation scheme |
Definition at line 334 of file AliBasedNdetaTask.cxx.
Referenced by AliBasedNdetaTask(), and SetNormalizationScheme().
void AliBasedNdetaTask::SetNormalizationScheme | ( | const char * | what | ) |
Space, pipe, or comma separated list of options
what | List of options |
Definition at line 324 of file AliBasedNdetaTask.cxx.
|
inline |
|
inline |
Trigger efficiency for selected trigger(s)
e | Trigger efficiency |
Definition at line 202 of file AliBasedNdetaTask.h.
|
inline |
Trigger efficiency for 0-bin for selected trigger(s)
e | Trigger efficiency for 0-bin |
Definition at line 208 of file AliBasedNdetaTask.h.
|
inline |
Set whether to use the ROOT TH2::ProjectionX method when projecting on the X axis.
use | Whether to use TH2::ProjectionX |
Definition at line 195 of file AliBasedNdetaTask.h.
Referenced by dNdetaConfig().
|
inline |
Definition at line 196 of file AliBasedNdetaTask.h.
|
protected |
Definition at line 1051 of file AliBasedNdetaTask.h.
Referenced by Event(), and GetAnalysisUtils().
|
protected |
Definition at line 1054 of file AliBasedNdetaTask.h.
Referenced by GetCentrality(), and PreEvent().
|
protected |
Definition at line 1055 of file AliBasedNdetaTask.h.
Referenced by GetCentrality(), and PreEvent().
|
protected |
Definition at line 1050 of file AliBasedNdetaTask.h.
Referenced by Book(), CheckEvent(), Finalize(), GetCentrality(), InitializeCentBins(), Print(), and SetCentralityMethod().
|
protected |
Definition at line 1038 of file AliBasedNdetaTask.h.
Referenced by AliCentraldNdetaTask::AliCentraldNdetaTask(), AliForwarddNdetaTask::CheckEventData(), Finalize(), Print(), and SetCorrEmpty().
|
protected |
Definition at line 1046 of file AliBasedNdetaTask.h.
Referenced by ApplyEmpiricalCorrection(), Book(), and SetGlobalEmpiricalcorrection().
|
protected |
Definition at line 1044 of file AliBasedNdetaTask.h.
Referenced by Finalize(), and SetMCFinalCorrFilename().
|
protected |
Definition at line 1053 of file AliBasedNdetaTask.h.
Referenced by Book(), Event(), Print(), and SetIpzReweight().
|
protected |
Definition at line 1042 of file AliBasedNdetaTask.h.
Referenced by AddCentralityBin(), AliBasedNdetaTask(), Book(), Event(), AliMCTruthdNdetaTask::Finalize(), Finalize(), InitializeCentBins(), Print(), and SetDebugLevel().
|
protected |
Definition at line 1047 of file AliBasedNdetaTask.h.
Referenced by Book(), Event(), and Finalize().
|
protected |
Definition at line 1043 of file AliBasedNdetaTask.h.
Referenced by Book(), Event(), Finalize(), Print(), and SetNormalizationScheme().
|
protected |
Definition at line 1045 of file AliBasedNdetaTask.h.
Referenced by AddCentralityBin(), AliBasedNdetaTask::CentralityBin::MakeResult(), AliBasedNdetaTask::CentralityBin::operator=(), AliBasedNdetaTask::CentralityBin::Print(), and SetSatelliteVertices().
|
protected |
Definition at line 1048 of file AliBasedNdetaTask.h.
|
protected |
Definition at line 1049 of file AliBasedNdetaTask.h.
|
protected |
Definition at line 1040 of file AliBasedNdetaTask.h.
Referenced by Finalize(), Print(), and SetTriggerEff().
|
protected |
Definition at line 1041 of file AliBasedNdetaTask.h.
Referenced by Finalize(), Print(), and SetTriggerEff0().
|
protected |
Definition at line 1039 of file AliBasedNdetaTask.h.
Referenced by Finalize(), Print(), and SetUseROOTProjectX().
|
protected |
Definition at line 1052 of file AliBasedNdetaTask.h.
Referenced by Event(), Print(), and SetUseUtilPileup().