AliPhysics  e34b7ac (e34b7ac)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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, TH3 *h)
 
TH3FindHisto (Double_t cent) const
 
virtual Double_t CalcWeight (AliAODTracklet *tracklet, Double_t cent, Double_t ipZ, TH2 *corr=0) const
 
TH1Project (TH3 *h, char which, const char *name)
 
void Draw (Option_t *option="")
 
void Print (Option_t *option="") const
 
void DrawStack (TVirtualPad *pad, 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
 
 ClassDef (AliTrackletDeltaWeights, 1)
 
- 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)
 
Bool_t CheckTracklet (const AliAODTracklet *tracklet) const
 
Double_t LookupWeight (AliAODTracklet *tracklet, Double_t cent, Double_t ipz, TH2 *corr=0) const
 
virtual TCollectionStore (TCollection *parent)
 
virtual TCollectionRetrieve (TCollection *in)
 
Bool_t IsFolder () const
 
 ClassDef (AliTrackletBaseWeights, 1)
 

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
 

Additional Inherited Members

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

Detailed Description

Base class for tracklets weights

Definition at line 1067 of file AliTrackletWeights.C.

Constructor & Destructor Documentation

AliTrackletDeltaWeights::AliTrackletDeltaWeights ( )
inline

Default constructor - ROOT I/O only

Definition at line 1074 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 1217 of file AliTrackletWeights.C.

AliTrackletDeltaWeights::AliTrackletDeltaWeights ( const AliTrackletDeltaWeights o)

Copy constructor

Parameters
oObject to copy from

Definition at line 1226 of file AliTrackletWeights.C.

virtual AliTrackletDeltaWeights::~AliTrackletDeltaWeights ( )
inlinevirtual

Destructor

Definition at line 1096 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 1325 of file AliTrackletWeights.C.

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

Draw the weights

Parameters
option

Definition at line 1481 of file AliTrackletWeights.C.

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

Definition at line 1442 of file AliTrackletWeights.C.

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

Draw one stack

Parameters
pad
stack
xtitle
min
max

Definition at line 1459 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 1313 of file AliTrackletWeights.C.

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

TH3 * AliTrackletDeltaWeights::FindHisto ( Double_t  cent) const

Find the histogram corresponding to a centrality

Parameters
centCentrality
Returns
Pointer to histogram or null

Definition at line 1304 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 1242 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 1427 of file AliTrackletWeights.C.

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

Project 3D histogram on 1 axis

Parameters
h
which
name
Returns

Definition at line 1344 of file AliTrackletWeights.C.

Referenced by Draw().

void AliTrackletDeltaWeights::SetCentAxis ( const TAxis axis)

Set the centrality axis

Parameters
axisAxis to copy

Definition at line 1259 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 1269 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 1275 of file AliTrackletWeights.C.

Bool_t AliTrackletDeltaWeights::SetHisto ( Int_t  bin,
TH3 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 1282 of file AliTrackletWeights.C.

Referenced by MakeDeltaWeights::ProcessBin().

Member Data Documentation

TAxis AliTrackletDeltaWeights::fCentAxis

Centrality axis

Definition at line 1212 of file AliTrackletWeights.C.

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

TObjArray AliTrackletDeltaWeights::fHistos

List of histograms

Definition at line 1210 of file AliTrackletWeights.C.

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


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