AliPhysics  a76316e (a76316e)
AliForwardMultDists::EtaBin Struct Reference

#include <AliForwardMultDists.h>

Inheritance diagram for AliForwardMultDists::EtaBin:

Public Member Functions

 EtaBin ()
 
 EtaBin (Double_t minEta, Double_t maxEta, const TAxis &mAxis)
 
 EtaBin (const EtaBin &o)
 
EtaBinoperator= (const EtaBin &o)
 
virtual ~EtaBin ()
 
const char * GetName () const
 
Bool_t IsSymmetric () const
 
Bool_t IsNegative () const
 
Bool_t IsPositive () const
 
const char * ParentName () const
 
TListFindParent (TList *l, Bool_t create=true) const
 
void SetupForData (TList *list, const TH2 &hist, Bool_t useMC)
 
void Process (const TH1 &sumForward, const TH1 &sumCentral, const TH2 &forward, const TH2 &central, Bool_t accepted, const TH1 *mc)
 
void Terminate (TList *in, TList *out)
 

Static Public Member Functions

static TH1CreateH1 (const char *name, const char *title, const TAxis &xAxis)
 
static TH2CreateH2 (const char *name, const char *title, const TAxis &xAxis, const TAxis &yAxis)
 

Public Attributes

TString fName
 
TAxis fMAxis
 
TAxis fTAxis
 
Double_t fMinEta
 
Double_t fMaxEta
 
Int_t fMinBin
 
Int_t fMaxBin
 
TH1fSum
 
TH2fCorr
 
TH2fResponse
 
TH1fTruth
 
TH1fTruthAccepted
 
TH1fCoverage
 

Detailed Description

An \(\eta\) bin. Objects of this class are streamed and we should make a dictionary for them. That means the class should be public. That does not mean that the class should be used outside of this (or a derived) class.

Definition at line 197 of file AliForwardMultDists.h.

Constructor & Destructor Documentation

AliForwardMultDists::EtaBin::EtaBin ( )

I/O constructor

Definition at line 610 of file AliForwardMultDists.cxx.

AliForwardMultDists::EtaBin::EtaBin ( Double_t  minEta,
Double_t  maxEta,
const TAxis mAxis 
)

User constructor

Parameters
minEtaLeast \(\eta\) to consider
maxEtaLargest \(\eta\) to consider
mAxisThe \( N_{ch}\) axis to use for measured data

Definition at line 631 of file AliForwardMultDists.cxx.

AliForwardMultDists::EtaBin::EtaBin ( const EtaBin o)

Copy constructor

Parameters
oobject to copy fron

Definition at line 686 of file AliForwardMultDists.cxx.

virtual AliForwardMultDists::EtaBin::~EtaBin ( )
inlinevirtual

Destructor

Definition at line 228 of file AliForwardMultDists.h.

Member Function Documentation

TH1 * AliForwardMultDists::EtaBin::CreateH1 ( const char *  name,
const char *  title,
const TAxis xAxis 
)
static

Create a 1D histogram with specified axis

Parameters
nameName of histogram
titleTitle of histogram
xAxisX-axis to use
Returns
Created histogram

Definition at line 783 of file AliForwardMultDists.cxx.

Referenced by SetupForData().

TH2 * AliForwardMultDists::EtaBin::CreateH2 ( const char *  name,
const char *  title,
const TAxis xAxis,
const TAxis yAxis 
)
static

Create a 2D histogram with specified axis

Parameters
nameName of histogram
titleTitle of histogram
xAxisX-axis to use
yAxisY-axis to use
Returns
Created histogram

Definition at line 797 of file AliForwardMultDists.cxx.

Referenced by SetupForData().

TList * AliForwardMultDists::EtaBin::FindParent ( TList l,
Bool_t  create = true 
) const

Find the parent container. if not found, and create is true, then make the container.

Parameters
lTop container
createIf true, create container if not found
Returns
Container, or null

Definition at line 753 of file AliForwardMultDists.cxx.

Referenced by SetupForData(), and Terminate().

const char* AliForwardMultDists::EtaBin::GetName ( ) const
inline

Get the name of the bin

Definition at line 232 of file AliForwardMultDists.h.

Referenced by AliForwardMultDists::Print(), SetupForData(), and Terminate().

Bool_t AliForwardMultDists::EtaBin::IsNegative ( ) const

Is this bin positive only?

Definition at line 732 of file AliForwardMultDists.cxx.

Referenced by AliForwardMultDists::Finalize(), and ParentName().

Bool_t AliForwardMultDists::EtaBin::IsPositive ( ) const

Is this bin positive only?

Definition at line 738 of file AliForwardMultDists.cxx.

Referenced by AliForwardMultDists::Finalize(), and ParentName().

Bool_t AliForwardMultDists::EtaBin::IsSymmetric ( ) const

Is this bin symmetric around 0?

Definition at line 726 of file AliForwardMultDists.cxx.

Referenced by AliForwardMultDists::Finalize(), and ParentName().

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

Assignment operator

Parameters
oobject to assign from
Returns
Reference to this object

Definition at line 704 of file AliForwardMultDists.cxx.

const char * AliForwardMultDists::EtaBin::ParentName ( ) const

Get parent container name

Returns
Parent container name

Definition at line 744 of file AliForwardMultDists.cxx.

Referenced by FindParent(), and Terminate().

void AliForwardMultDists::EtaBin::Process ( const TH1 sumForward,
const TH1 sumCentral,
const TH2 forward,
const TH2 central,
Bool_t  accepted,
const TH1 mc 
)

Process a single event

Parameters
sumForwardProjection of forward data
sumCentralProjection of the central data
forwardThe original forward data
centralThe original central data
acceptedTrue if event is accepted for analysis
mcDistribution of primary particles from MC

Definition at line 934 of file AliForwardMultDists.cxx.

Referenced by AliForwardMultDists::Event().

void AliForwardMultDists::EtaBin::SetupForData ( TList list,
const TH2 hist,
Bool_t  useMC 
)

Set-up internal structures on first event.

Parameters
listList to add information to
histTemplate histogram
useMCWhether to set-up for MC input

fTruth->SetOption("");

fTruth->SetOption("");

Definition at line 833 of file AliForwardMultDists.cxx.

Referenced by AliForwardMultDists::PreData().

void AliForwardMultDists::EtaBin::Terminate ( TList in,
TList out 
)

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

Parameters
inInput list
outOutput list

Definition at line 1044 of file AliForwardMultDists.cxx.

Referenced by AliForwardMultDists::Finalize().

Member Data Documentation

TH2* AliForwardMultDists::EtaBin::fCorr

Definition at line 323 of file AliForwardMultDists.h.

Referenced by operator=(), Process(), and SetupForData().

TH1* AliForwardMultDists::EtaBin::fCoverage

Definition at line 327 of file AliForwardMultDists.h.

Referenced by operator=(), Process(), and SetupForData().

Int_t AliForwardMultDists::EtaBin::fMaxBin

Definition at line 321 of file AliForwardMultDists.h.

Referenced by operator=(), Process(), and SetupForData().

Double_t AliForwardMultDists::EtaBin::fMaxEta
TAxis AliForwardMultDists::EtaBin::fMAxis

Definition at line 316 of file AliForwardMultDists.h.

Referenced by EtaBin(), operator=(), and SetupForData().

Int_t AliForwardMultDists::EtaBin::fMinBin

Definition at line 320 of file AliForwardMultDists.h.

Referenced by operator=(), Process(), and SetupForData().

Double_t AliForwardMultDists::EtaBin::fMinEta
TString AliForwardMultDists::EtaBin::fName

Definition at line 315 of file AliForwardMultDists.h.

Referenced by EtaBin(), and operator=().

TH2* AliForwardMultDists::EtaBin::fResponse

Definition at line 324 of file AliForwardMultDists.h.

Referenced by operator=(), Process(), and SetupForData().

TH1* AliForwardMultDists::EtaBin::fSum
TAxis AliForwardMultDists::EtaBin::fTAxis

Definition at line 317 of file AliForwardMultDists.h.

Referenced by EtaBin(), operator=(), and SetupForData().

TH1* AliForwardMultDists::EtaBin::fTruth
TH1* AliForwardMultDists::EtaBin::fTruthAccepted

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