AliPhysics  2c6b7ad (2c6b7ad)

#include <AliForwardMultDists.h>

Inheritance diagram for AliForwardMultDists:

Classes

struct  BinSpec
 
struct  EtaBin
 

Public Types

enum  { kInvalidEta = 999 }
 
enum  {
  kAnalysis = 1, kMC = 2, kTrigger = 3, kVertex = 4,
  kTriggerVertex = 5
}
 

Public Member Functions

 AliForwardMultDists ()
 
 AliForwardMultDists (const char *name)
 
virtual ~AliForwardMultDists ()
 
void SetUsePhiAcc (Bool_t use)
 
void Print (Option_t *option="") const
 
Interface memer functions
Bool_t Book ()
 
Bool_t PreData ()
 
Bool_t PreEvent ()
 
Bool_t Event (AliAODEvent &aod)
 
Bool_t Finalize ()
 
Bin definitions
void AddBin (const BinSpec &spec)
 
void AddBin (Double_t etaLow, Double_t etaMax, const TAxis &nAxis)
 
void AddBin (Double_t etaLow, Double_t etaMax, UShort_t nMax, UShort_t nDiv)
 
- Public Member Functions inherited from AliBaseAODTask
 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 PostEvent ()
 
void Print (Option_t *option="") const
 

Protected Member Functions

 AliForwardMultDists (const AliForwardMultDists &o)
 
AliForwardMultDistsoperator= (const AliForwardMultDists &o)
 
Bool_t CheckEvent (const AliAODForwardMult &fwd)
 
- Protected Member Functions inherited from AliBaseAODTask
 AliBaseAODTask (const AliBaseAODTask &o)
 
AliBaseAODTaskoperator= (const AliBaseAODTask &o)
 
virtual const char * DefaultConfig () const
 
virtual void Init ()
 
virtual void UserCreateOutputObjects ()
 
virtual void UserExec (Option_t *option)
 
virtual void Terminate (Option_t *option)
 
AliAODForwardMultGetForward (const AliAODEvent &aod, Bool_t mc=false, Bool_t verb=true)
 
AliAODMultEventClassGetMultClass (const AliAODEvent &aod, Bool_t verb=true)
 
AliAODCentralMultGetCentral (const AliAODEvent &aod, Bool_t mc=false, Bool_t verb=true)
 
TH2DGetPrimary (const AliAODEvent &aod)
 
virtual void StoreInformation (AliAODForwardMult &forward)
 
virtual Bool_t StoreTrainName (Int_t no)
 
Bool_t HasCentrality () const
 
virtual Double_t GetCentrality (AliAODEvent &event, AliAODForwardMult *forward, Int_t &qual)
 
virtual Double_t GetCentrality (AliAODEvent &event, AliAODForwardMult *forward)
 
virtual Double_t GetIpZ (AliAODEvent &event, AliAODForwardMult *forward)
 
virtual Bool_t GetIpXY (AliAODEvent &aod, Double_t &x, Double_t &y)
 

Static Protected Member Functions

static void ProjectX (const TH2 &input, TH1 &cache, Bool_t usePhiAcc=true)
 
static void ProjectX (const TH2 *input, TH1 *cache)
 
- Static Protected Member Functions inherited from AliBaseAODTask
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

TList fBins
 
TListfSymmetric
 
TListfNegative
 
TListfPositive
 
TH1fMCVertex
 
TH2fDiag
 
TH1fForwardCache
 
TH1fCentralCache
 
TH1fMCCache
 
Bool_t fUsePhiAcc
 
Bool_t fIsSelected
 
- Protected Attributes inherited from AliBaseAODTask
UInt_t fTriggerMask
 
UInt_t fFilterMask
 
TAxis fCentAxis
 
Double_t fAbsMinCent
 
TAxis fIPzAxis
 
TH1IfTriggers
 
TH1IfEventStatus
 
TH1DfVertex
 
TH1DfCent
 
TH1DfAccVertex
 
TH2DfAccVertexXY
 
TH1DfAccCent
 
Bool_t fFirstEvent
 
Bool_t fCloneList
 
TListfSums
 
TListfResults
 

Detailed Description

Class to make raw \( P(N_{ch})\) distributions.

Christian's rough sketch

Definition at line 31 of file AliForwardMultDists.h.

Member Enumeration Documentation

anonymous enum
Enumerator
kInvalidEta 

Mark for invalid pseudo-rapidity

Definition at line 34 of file AliForwardMultDists.h.

anonymous enum

Histogram enumeration

Enumerator
kAnalysis 

Measured

kMC 

MC-truth

kTrigger 

MC-truth Triggered

kVertex 

MC-truth w/vertex

kTriggerVertex 

MC-truth triggered and w/vertex

Definition at line 41 of file AliForwardMultDists.h.

Constructor & Destructor Documentation

AliForwardMultDists::AliForwardMultDists ( )

Default constructor

Definition at line 162 of file AliForwardMultDists.cxx.

AliForwardMultDists::AliForwardMultDists ( const char *  name)

User constructor

Parameters
nameName of the task

Definition at line 178 of file AliForwardMultDists.cxx.

virtual AliForwardMultDists::~AliForwardMultDists ( )
inlinevirtual

Destructor

Definition at line 111 of file AliForwardMultDists.h.

AliForwardMultDists::AliForwardMultDists ( const AliForwardMultDists o)
protected

Copy constructor

Parameters
oobject to copy fron

Member Function Documentation

void AliForwardMultDists::AddBin ( const BinSpec spec)

Add an \( \eta\) bin

Parameters
specBin specification

Definition at line 529 of file AliForwardMultDists.cxx.

Referenced by AddTaskForwardMultDists(), and PreEvent().

void AliForwardMultDists::AddBin ( Double_t  etaLow,
Double_t  etaMax,
const TAxis nAxis 
)

Add an \( \eta\) bin.

Parameters
etaLowLow cut on \(\eta\)
etaMaxHigh cut on \(\eta\)
nAxisAxis to use for measured \( N_{ch}\)

Definition at line 536 of file AliForwardMultDists.cxx.

void AliForwardMultDists::AddBin ( Double_t  etaLow,
Double_t  etaMax,
UShort_t  nMax,
UShort_t  nDiv 
)

Add an \(\eta\) bin

Parameters
etaLowLow cut on \(\eta\)
etaMaxHigh cut on \(\eta\)
nMaxMaximum \( N_{ch}\)
nDivNumber of subdivisions per \( N_{ch}\)

Definition at line 556 of file AliForwardMultDists.cxx.

Bool_t AliForwardMultDists::Book ( )
virtual

Create output objects - called at start of job in slave

Returns
true on success

Implements AliBaseAODTask.

Definition at line 202 of file AliForwardMultDists.cxx.

Referenced by ~AliForwardMultDists().

Bool_t AliForwardMultDists::CheckEvent ( const AliAODForwardMult fwd)
protectedvirtual

Check the event

Parameters
fwdForward data structure
Returns
Always true

Reimplemented from AliBaseAODTask.

Definition at line 390 of file AliForwardMultDists.cxx.

Bool_t AliForwardMultDists::Event ( AliAODEvent aod)
virtual

Analyse a single event

Parameters
aodAOD Event
Returns
true on success

Implements AliBaseAODTask.

Definition at line 299 of file AliForwardMultDists.cxx.

Referenced by PreEvent().

Bool_t AliForwardMultDists::Finalize ( )
virtual

Called at the end of the final processing of the job on the full data set (merged data)

Returns
true on success

Implements AliBaseAODTask.

Definition at line 399 of file AliForwardMultDists.cxx.

Referenced by PreEvent().

AliForwardMultDists& AliForwardMultDists::operator= ( const AliForwardMultDists o)
protected

Assignment operator

Parameters
oobject to assign from
Returns
Reference to this object
Bool_t AliForwardMultDists::PreData ( )
virtual

Set-up internal structures on first seen event

Returns
true on success

Reimplemented from AliBaseAODTask.

Definition at line 212 of file AliForwardMultDists.cxx.

Referenced by ~AliForwardMultDists().

Bool_t AliForwardMultDists::PreEvent ( )
inlinevirtual

Executed before every event

Returns
true on success

Reimplemented from AliBaseAODTask.

Definition at line 133 of file AliForwardMultDists.h.

void AliForwardMultDists::Print ( Option_t option = "") const

Print this task

Parameters
optionNot used

Definition at line 587 of file AliForwardMultDists.cxx.

Referenced by SetUsePhiAcc().

void AliForwardMultDists::ProjectX ( const TH2 input,
TH1 cache,
Bool_t  usePhiAcc = true 
)
staticprotected

Project a 2D histogram into a 1D histogram taking care to use either the \(\phi\) acceptance stored in the overflow bins, or the \(\eta\) coverage stored in the underflow bins.

Parameters
input2D histogram to project
cache1D histogram to project into
usePhiAccIf true, use the \(\phi\) acceptance stored in the overflow bins, or if false the \(\eta\) coverage stored in the underflow bins.

Definition at line 459 of file AliForwardMultDists.cxx.

Referenced by Event().

void AliForwardMultDists::ProjectX ( const TH2 input,
TH1 cache 
)
staticprotected

Project on \(\eta\) axis. If any of the pointers passed is zero, do nothing.

Parameters
input
cache

Definition at line 498 of file AliForwardMultDists.cxx.

void AliForwardMultDists::SetUsePhiAcc ( Bool_t  use)
inline

Whether to use the stored phi acceptance

Parameters
useIf true, use stored phi acceptance

Definition at line 184 of file AliForwardMultDists.h.

Referenced by AddTaskForwardMultDists().

Member Data Documentation

TList AliForwardMultDists::fBins
protected

Definition at line 375 of file AliForwardMultDists.h.

Referenced by AddBin(), Event(), Finalize(), PreData(), and Print().

TH1* AliForwardMultDists::fCentralCache
protected

Definition at line 382 of file AliForwardMultDists.h.

Referenced by Event(), and PreData().

TH2* AliForwardMultDists::fDiag
protected

Definition at line 380 of file AliForwardMultDists.h.

Referenced by Event(), and PreData().

TH1* AliForwardMultDists::fForwardCache
protected

Definition at line 381 of file AliForwardMultDists.h.

Referenced by Event(), and PreData().

Bool_t AliForwardMultDists::fIsSelected
protected

Definition at line 385 of file AliForwardMultDists.h.

Referenced by CheckEvent(), Event(), and PreEvent().

TH1* AliForwardMultDists::fMCCache
protected

Definition at line 383 of file AliForwardMultDists.h.

Referenced by Event(), and PreData().

TH1* AliForwardMultDists::fMCVertex
protected

Definition at line 379 of file AliForwardMultDists.h.

Referenced by Event(), and PreData().

TList* AliForwardMultDists::fNegative
protected

Definition at line 377 of file AliForwardMultDists.h.

TList* AliForwardMultDists::fPositive
protected

Definition at line 378 of file AliForwardMultDists.h.

TList* AliForwardMultDists::fSymmetric
protected

Definition at line 376 of file AliForwardMultDists.h.

Bool_t AliForwardMultDists::fUsePhiAcc
protected

Definition at line 384 of file AliForwardMultDists.h.

Referenced by Event(), Print(), and SetUsePhiAcc().


The documentation for this class was generated from the following files: