AliPhysics  9b6b435 (9b6b435)
AliTrackletAODdNdeta::CentBin Struct Reference
Inheritance diagram for AliTrackletAODdNdeta::CentBin:

Public Member Functions

 CentBin ()
 
 CentBin (Double_t c1, Double_t c2)
 
 CentBin (const CentBin &o)
 
virtual ~CentBin ()
 
CentBinoperator= (const CentBin &)
 
HistosMakeHistos (const char *name, Color_t color, Style_t style, UShort_t mask, UShort_t veto)
 
Bool_t WorkerInit (Container *parent, const TAxis &etaAxis, const TAxis &ipzAxis, const TAxis &deltaAxis)
 
Bool_t IsAllBin () const
 
Bool_t Accept (UInt_t status, Double_t cent, Double_t ipz)
 
Bool_t ProcessTracklet (AliAODTracklet *tracklet, Double_t ipz, UShort_t signal, Double_t weight)
 
void Completed ()
 
Bool_t FinalizeInit (Container *parent)
 
Bool_t MasterFinalize (Container *parent, TH1 *ipz, Double_t tailCut, Double_t tailMax)
 
Bool_t EstimateBackground (Container *result, Container *measCont, Container *genCont, Histos *h, Double_t tailCut, Double_t tailMax)
 
void Print (Option_t *option="") const
 
virtual void SetDebug (UShort_t lvl)
 
- Public Member Functions inherited from AliTrackletAODdNdeta::Sub
 Sub (const char *name="")
 
 Sub (const Sub &o)
 
virtual ~Sub ()
 
Suboperator= (const Sub &)
 
const char * GetName () const
 

Protected Attributes

ContainerfSubs
 
Double_t fLow
 
Double_t fHigh
 
TH1fStatus
 
TH1fIPz
 
TH1fCent
 
TProfile * fCentIPz
 
HistosfMeasured
 
HistosfInjection
 
- Protected Attributes inherited from AliTrackletAODdNdeta::Sub
TString fName
 
ContainerfContainer
 
UShort_t fDebug
 

Detailed Description

A centrality bin. Here, we need

  • \(\eta,\Delta\) distribution of measured \( f_M(\Delta)\)
  • \(\eta,\Delta\) distribution of injected \( f_I(\Delta)\)
  • \(\eta,\mathrm{IP}_z\) distribution of measured \( M_{\eta,z}\)
  • \(\eta,\mathrm{IP}_z\) distribution of injected \( I_{\eta,z}\)

For MC we also need

  • \(\eta,\mathrm{IP}_z\) distribution of combi \( C_{\eta,z}\)
  • \(\eta,\mathrm{IP}_z\) distribution of gen \( P_{\eta,z}\)

Definition at line 745 of file AliTrackletAODdNdeta.C.

Constructor & Destructor Documentation

AliTrackletAODdNdeta::CentBin::CentBin ( )
inline

Default constructor - for ROOT I/O only

Definition at line 750 of file AliTrackletAODdNdeta.C.

AliTrackletAODdNdeta::CentBin::CentBin ( Double_t  c1,
Double_t  c2 
)

User constructor

Parameters
c1Lower bound on centrality
c2Upper bound on centrality

Definition at line 2045 of file AliTrackletAODdNdeta.C.

AliTrackletAODdNdeta::CentBin::CentBin ( const CentBin o)
inline

Copy constructor

Parameters
oObject to copy from

Definition at line 775 of file AliTrackletAODdNdeta.C.

virtual AliTrackletAODdNdeta::CentBin::~CentBin ( )
inlinevirtual

Destructor

Reimplemented in AliTrackletAODMCdNdeta::CentBin.

Definition at line 790 of file AliTrackletAODdNdeta.C.

Member Function Documentation

Bool_t AliTrackletAODdNdeta::CentBin::Accept ( UInt_t  status,
Double_t  cent,
Double_t  ipz 
)

Check if we should process this event

Parameters
statusEvent status
centEvent centrality
ipzEvent Z-coordinate of the interaction
Returns
true if we should process the event

Definition at line 2771 of file AliTrackletAODdNdeta.C.

Referenced by AliTrackletAODdNdeta::ProcessEvent().

void AliTrackletAODdNdeta::CentBin::Completed ( )

Tell bin we're done with the processing.

Definition at line 2891 of file AliTrackletAODdNdeta.C.

Referenced by AliTrackletAODdNdeta::ProcessEvent().

Bool_t AliTrackletAODdNdeta::CentBin::EstimateBackground ( Container result,
Container measCont,
Container genCont,
Histos h,
Double_t  tailCut,
Double_t  tailMax 
)

Estimate the background a given histogram set

Parameters
resultOutput container
measContThe measured results
genContThe generator results (if applicable)
hThe histogram container
tailCutCut on the tail distribution
tailMaxMaximum to integrate tail to
Returns
true on success

Definition at line 3760 of file AliTrackletAODdNdeta.C.

Referenced by MasterFinalize().

Bool_t AliTrackletAODdNdeta::CentBin::FinalizeInit ( Container parent)
virtual

Initialize this sub-component at the time of finalizing the job. Should find sum container in parent and extract data from that container.

Parameters
parentParent container of sum data
Returns
true on success

Implements AliTrackletAODdNdeta::Sub.

Definition at line 2936 of file AliTrackletAODdNdeta.C.

Referenced by AliTrackletAODdNdeta::InitCentBin().

Bool_t AliTrackletAODdNdeta::CentBin::IsAllBin ( ) const

Check if this is the MB "centrality" bin

Returns
True if MB bin

Definition at line 2766 of file AliTrackletAODdNdeta.C.

Referenced by Accept().

AliTrackletAODdNdeta::Histos * AliTrackletAODdNdeta::CentBin::MakeHistos ( const char *  name,
Color_t  color,
Style_t  style,
UShort_t  mask,
UShort_t  veto 
)

Create a histogram set

Parameters
nameName of histogram set
colorColor used by histograms
styleStyle used by histograms
maskTracklet selection mask
vetoTracklet veto mask
Returns
Newly allocated histogram set

Definition at line 2112 of file AliTrackletAODdNdeta.C.

Referenced by CentBin(), and AliTrackletAODMCdNdeta::CentBin::CentBin().

Bool_t AliTrackletAODdNdeta::CentBin::MasterFinalize ( Container parent,
TH1 ipz,
Double_t  tailCut,
Double_t  tailMax 
)
virtual

Called on master when terminating

Parameters
parentParent container
ipzZ-coordinate of the IP
tailCutCut on tails
tailMaxMaximum to integrate tail to
Returns
true on success

Implements AliTrackletAODdNdeta::Sub.

Definition at line 3068 of file AliTrackletAODdNdeta.C.

Referenced by AliTrackletAODdNdeta::MasterFinalize(), and AliTrackletAODdNdeta::Terminate().

CentBin& AliTrackletAODdNdeta::CentBin::operator= ( const CentBin )
inline

Assignment operator

Returns
reference to this

Definition at line 796 of file AliTrackletAODdNdeta.C.

void AliTrackletAODdNdeta::CentBin::Print ( Option_t option = "") const

Print information to standard output

Parameters
optionIgnored

Definition at line 1811 of file AliTrackletAODdNdeta.C.

Referenced by AliTrackletAODdNdeta::Print(), and AliTrackletAODdNdeta::Terminate().

Bool_t AliTrackletAODdNdeta::CentBin::ProcessTracklet ( AliAODTracklet tracklet,
Double_t  ipz,
UShort_t  signal,
Double_t  weight 
)
virtual

Process a single tracklet

Parameters
trackletThe tracklet
ipzZ-coordinate of the IP
signalTrue if a signal
weightWeight of tracklet
Returns
true on success

Implements AliTrackletAODdNdeta::Sub.

Definition at line 2803 of file AliTrackletAODdNdeta.C.

Referenced by AliTrackletAODdNdeta::ProcessEvent().

void AliTrackletAODdNdeta::CentBin::SetDebug ( UShort_t  lvl)
virtual

Set debug flag

Parameters
lvlDebug level

Reimplemented from AliTrackletAODdNdeta::Sub.

Definition at line 1827 of file AliTrackletAODdNdeta.C.

Referenced by AliTrackletAODdNdeta::InitCentBin().

Bool_t AliTrackletAODdNdeta::CentBin::WorkerInit ( Container parent,
const TAxis etaAxis,
const TAxis ipzAxis,
const TAxis deltaAxis 
)
virtual

Initialize the bin

Parameters
parentParent container
etaAxispseudorapidity axis to use
ipzAxisInteraction point Z coordinate axis
deltaAxis\(\Delta\) axis to use
Returns
true on success

Reimplemented from AliTrackletAODdNdeta::Sub.

Definition at line 2122 of file AliTrackletAODdNdeta.C.

Referenced by AliTrackletAODdNdeta::InitCentBin().

Member Data Documentation

TH1* AliTrackletAODdNdeta::CentBin::fCent
protected
TProfile* AliTrackletAODdNdeta::CentBin::fCentIPz
protected

Definition at line 923 of file AliTrackletAODdNdeta.C.

Referenced by Accept(), FinalizeInit(), MasterFinalize(), and WorkerInit().

Double_t AliTrackletAODdNdeta::CentBin::fHigh
protected

Definition at line 919 of file AliTrackletAODdNdeta.C.

Referenced by Accept(), IsAllBin(), and WorkerInit().

Histos* AliTrackletAODdNdeta::CentBin::fInjection
protected

Definition at line 925 of file AliTrackletAODdNdeta.C.

Referenced by CentBin(), and AliTrackletAODMCdNdeta::CentBin::CentBin().

Double_t AliTrackletAODdNdeta::CentBin::fLow
protected

Definition at line 918 of file AliTrackletAODdNdeta.C.

Referenced by Accept(), IsAllBin(), and WorkerInit().

Histos* AliTrackletAODdNdeta::CentBin::fMeasured
protected
Container* AliTrackletAODdNdeta::CentBin::fSubs
protected

The documentation for this struct was generated from the following file: