AliPhysics  59e0e03 (59e0e03)
AliTrackletDeltaWeights Class Reference
Inheritance diagram for AliTrackletDeltaWeights:

Public Member Functions

 AliTrackletDeltaWeights ()
 
 AliTrackletDeltaWeights (const char *name, const char *title="Sim. tracklet weights")
 
 AliTrackletDeltaWeights (const AliTrackletDeltaWeights &o)
 
virtual ~AliTrackletDeltaWeights ()
 
AliTrackletDeltaWeightsoperator= (const AliTrackletDeltaWeights &o)
 
void SetCentAxis (const TAxis &axis)
 
void SetCentAxis (Int_t n, const Double_t *bins)
 
void SetCentAxis (Int_t n, Double_t low, Double_t high)
 
Bool_t SetHisto (Int_t bin, TH1 *h)
 
TH1FindHisto (Double_t cent) const
 
virtual Double_t CalcWeight (AliAODTracklet *tracklet, Double_t cent, Double_t ipZ, TH2 *corr=0) const
 
virtual Double_t CalcWeight (TParticle *particle, Double_t cent, Double_t ipZ) const
 
TH1Project (TH1 *h, char which, const char *name)
 
void Draw (Option_t *option="")
 
void Print (Option_t *option="") const
 
void DrawStack (TVirtualPad *pad, Int_t nPad, THStack *stack, const char *xtitle, Double_t min=0, Double_t max=2.5)
 
void DrawOne (Double_t cent=2.5, Double_t eta=0, Double_t ipz=0) const
 
- Public Member Functions inherited from AliTrackletBaseWeights
 AliTrackletBaseWeights ()
 
 AliTrackletBaseWeights (const char *name, const char *title="Sim. tracklet weights")
 
 AliTrackletBaseWeights (const AliTrackletBaseWeights &o)
 
virtual ~AliTrackletBaseWeights ()
 
AliTrackletBaseWeightsoperator= (const AliTrackletBaseWeights &o)
 
void SetCalc (UChar_t mode=kProduct)
 
void SetMask (UChar_t mask)
 
void SetVeto (UChar_t veto)
 
void SetInverse (Bool_t inv)
 
void SetDebug (Int_t lvl)
 
Bool_t CheckTracklet (const AliAODTracklet *tracklet) const
 
Double_t LookupWeight (AliAODTracklet *tracklet, Double_t cent, Double_t ipz, TH2 *corr=0) const
 
Double_t LookupWeight (TParticle *particle, Double_t cent, Double_t ipz) const
 
virtual TCollectionStore (TCollection *parent)
 
virtual TCollectionRetrieve (TCollection *in)
 
Bool_t IsFolder () const
 

Static Public Member Functions

static Int_t FindBin (Double_t value, const TAxis *axis)
 

Public Attributes

TObjArray fHistos
 
TAxis fCentAxis
 
- Public Attributes inherited from AliTrackletBaseWeights
UChar_t fCalc
 
UChar_t fMask
 
UChar_t fVeto
 
Bool_t fInverse
 
Int_t fDebug
 

Additional Inherited Members

- Public Types inherited from AliTrackletBaseWeights
enum  ECalc { kProduct, kSquare, kSum, kAverage }
 

Detailed Description

Base class for tracklets weights

Definition at line 1141 of file AliTrackletWeights.C.

Constructor & Destructor Documentation

AliTrackletDeltaWeights::AliTrackletDeltaWeights ( )
inline

Default constructor - ROOT I/O only

Definition at line 1148 of file AliTrackletWeights.C.

AliTrackletDeltaWeights::AliTrackletDeltaWeights ( const char *  name,
const char *  title = "Sim. tracklet weights" 
)

Named constructor

Parameters
nameName of object
title(optional) free-form title

Definition at line 1295 of file AliTrackletWeights.C.

AliTrackletDeltaWeights::AliTrackletDeltaWeights ( const AliTrackletDeltaWeights o)

Copy constructor

Parameters
oObject to copy from

Definition at line 1304 of file AliTrackletWeights.C.

virtual AliTrackletDeltaWeights::~AliTrackletDeltaWeights ( )
inlinevirtual

Destructor

Definition at line 1170 of file AliTrackletWeights.C.

Member Function Documentation

Double_t AliTrackletDeltaWeights::CalcWeight ( AliAODTracklet tracklet,
Double_t  cent,
Double_t  ipZ,
TH2 corr = 0 
) const
virtual

Find the tracklet weight

Parameters
trackletTracklet
centCentrality
ipZInteraction point Z coordinate
corrOptional histogram to fill with correlation of weights
Returns
The weight

Implements AliTrackletBaseWeights.

Definition at line 1422 of file AliTrackletWeights.C.

Double_t AliTrackletDeltaWeights::CalcWeight ( TParticle *  particle,
Double_t  cent,
Double_t  ipZ 
) const
virtual

Calculate weight of a particle

Parameters
particleParticle
centCentrality
ipZInteraction point
Returns
The weight

Implements AliTrackletBaseWeights.

Definition at line 1403 of file AliTrackletWeights.C.

void AliTrackletDeltaWeights::Draw ( Option_t option = "")

Draw the weights

Parameters
option

Definition at line 1591 of file AliTrackletWeights.C.

void AliTrackletDeltaWeights::DrawOne ( Double_t  cent = 2.5,
Double_t  eta = 0,
Double_t  ipz = 0 
) const

Definition at line 1537 of file AliTrackletWeights.C.

void AliTrackletDeltaWeights::DrawStack ( TVirtualPad *  pad,
Int_t  nPad,
THStack *  stack,
const char *  xtitle,
Double_t  min = 0,
Double_t  max = 2.5 
)

Draw one stack

Parameters
pad
nPad
stack
xtitle
min
max

Definition at line 1561 of file AliTrackletWeights.C.

Referenced by Draw().

Int_t AliTrackletDeltaWeights::FindBin ( Double_t  value,
const TAxis axis 
)
static

Find the bin on an axis that correspnd to the passed value. If the value is outside the defined range, the closest bin number is returned.

Parameters
valueValue
axisAxis
Returns
Bin number

Definition at line 1391 of file AliTrackletWeights.C.

Referenced by CalcWeight(), DrawOne(), and FindHisto().

TH1 * AliTrackletDeltaWeights::FindHisto ( Double_t  cent) const

Find the histogram corresponding to a centrality

Parameters
centCentrality
Returns
Pointer to histogram or null

Definition at line 1382 of file AliTrackletWeights.C.

Referenced by CalcWeight(), and DrawOne().

AliTrackletDeltaWeights & AliTrackletDeltaWeights::operator= ( const AliTrackletDeltaWeights o)

Assignment operator

Parameters
oObject to assign from
Returns
Reference to this object

Definition at line 1320 of file AliTrackletWeights.C.

void AliTrackletDeltaWeights::Print ( Option_t option = "") const
virtual

Print information on reweights

Parameters
optionNot used

Reimplemented from AliTrackletBaseWeights.

Definition at line 1522 of file AliTrackletWeights.C.

TH1 * AliTrackletDeltaWeights::Project ( TH1 h,
char  which,
const char *  name 
)

Project 3D histogram on 1 axis

Parameters
h
which
name
Returns

Definition at line 1442 of file AliTrackletWeights.C.

Referenced by Draw().

void AliTrackletDeltaWeights::SetCentAxis ( const TAxis axis)

Set the centrality axis

Parameters
axisAxis to copy

Definition at line 1337 of file AliTrackletWeights.C.

Referenced by MakeDeltaWeights::Run().

void AliTrackletDeltaWeights::SetCentAxis ( Int_t  n,
const Double_t bins 
)

Set the centrality axis

Parameters
nnumber of bins
binsBin limits (n+1 entries)

Definition at line 1347 of file AliTrackletWeights.C.

void AliTrackletDeltaWeights::SetCentAxis ( Int_t  n,
Double_t  low,
Double_t  high 
)

Set the centrality axis

Parameters
nnumber of bins
lowLeast value
highLargest value

Definition at line 1353 of file AliTrackletWeights.C.

Bool_t AliTrackletDeltaWeights::SetHisto ( Int_t  bin,
TH1 h 
)

Set the histogram to use for the given centrality bin

Parameters
binBin number. Start at 1
hHistogram. The histogram will be cloned
Returns
true on success

Definition at line 1360 of file AliTrackletWeights.C.

Referenced by MakeDeltaWeights::ProcessBin().

Member Data Documentation

TAxis AliTrackletDeltaWeights::fCentAxis

Centrality axis

Definition at line 1290 of file AliTrackletWeights.C.

Referenced by FindHisto(), operator=(), Print(), SetCentAxis(), and SetHisto().

TObjArray AliTrackletDeltaWeights::fHistos

List of histograms

Definition at line 1288 of file AliTrackletWeights.C.

Referenced by AliTrackletDeltaWeights(), Draw(), FindHisto(), operator=(), Print(), and SetHisto().


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