![]() |
AliPhysics
a4b41ad (a4b41ad)
|
Public Types | |
enum | ECalc { kProduct, kSquare, kSum, kAverage } |
Public Member Functions | |
AliTrackletBaseWeights () | |
AliTrackletBaseWeights (const char *name, const char *title="Sim. tracklet weights") | |
AliTrackletBaseWeights (const AliTrackletBaseWeights &o) | |
virtual | ~AliTrackletBaseWeights () |
AliTrackletBaseWeights & | operator= (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 Double_t | CalcWeight (AliAODTracklet *tracklet, Double_t cent, Double_t ipz, TH2 *corr) const =0 |
virtual TCollection * | Store (TCollection *parent) |
virtual TCollection * | Retrieve (TCollection *in) |
Bool_t | IsFolder () const |
virtual void | Print (Option_t *option="") const |
ClassDef (AliTrackletBaseWeights, 1) | |
Public Attributes | |
UChar_t | fCalc |
UChar_t | fMask |
UChar_t | fVeto |
Bool_t | fInverse |
Base class for tracklets weights
Definition at line 71 of file AliTrackletWeights.C.
Mode calculation
Definition at line 77 of file AliTrackletWeights.C.
|
inline |
Default constructor - ROOT I/O only
Definition at line 125 of file AliTrackletWeights.C.
|
inline |
Named constructor
name | Name of object |
title | (optional) free-form title |
Definition at line 137 of file AliTrackletWeights.C.
|
inline |
Copy constructor
o | Object to copy from |
Definition at line 150 of file AliTrackletWeights.C.
|
inlinevirtual |
Destructor
Definition at line 160 of file AliTrackletWeights.C.
|
pure virtual |
Calculate the weight of a tracklet. This member function must be overloaded.
tracklet | Tracklet |
cent | Centrality |
ipz | Interaction point Z coordinate |
corr | Optional histogram to fill with correlation of weights |
Implemented in AliTrackletDeltaWeights, and AliTrackletPtPidStrWeights.
Referenced by LookupWeight().
|
inline |
Check if tracklet is to be reweighed according to mask and veto
tracklet | Tracklet |
Definition at line 254 of file AliTrackletWeights.C.
Referenced by LookupWeight().
AliTrackletBaseWeights::ClassDef | ( | AliTrackletBaseWeights | , |
1 | |||
) |
|
inline |
Definition at line 343 of file AliTrackletWeights.C.
|
inline |
Find the tracklet weight
tracklet | Tracklet |
cent | Centrality |
ipz | Interaction point Z coordinate |
corr | Optional histogram to fill with correlation of weights |
Definition at line 278 of file AliTrackletWeights.C.
|
inline |
Assignment operator
o | Object to assign from |
Definition at line 169 of file AliTrackletWeights.C.
Referenced by AliTrackletPtPidStrWeights::operator=(), and AliTrackletDeltaWeights::operator=().
|
inlinevirtual |
Print information on reweights
option | Not used |
Reimplemented in AliTrackletDeltaWeights, and AliTrackletPtPidStrWeights.
Definition at line 349 of file AliTrackletWeights.C.
Referenced by AliTrackletPtPidStrWeights::Print(), AliTrackletDeltaWeights::Print(), and AliTrackletAODWeightedMCdNdeta::Print().
|
inlinevirtual |
Retrieve weights from a collection
in | Input collection |
Reimplemented in AliTrackletPtPidStrWeights.
Definition at line 326 of file AliTrackletWeights.C.
Referenced by AliTrackletPtPidStrWeights::Retrieve().
|
inline |
Set the mode for calculating the weight of a tracklet. A tracklet consist of two clusters with labels \( i\) and \( j\). A weight ( \( w_i\) and \( w_j\)) is assigned to each of the particles corresponding to the tracks with these labels. The weight is calculated from the particle species and transverse momentum of the primary mother particle of the tracks \( i\) and \( j\). The weight of a tracklet can then be calculated in four different ways
Product
\[ w = \left\{\begin{array}{cl} w_i & \mbox{for} i=j\\ w_i w_j & \mbox{for} i\neq j\\ \end{array}\right.\quad, \]
Square root of product of weights
\[ w = \left\{\begin{array}{cl} w_i & \mbox{for} i=j\\ \sqrt(w_i w_j) & \mbox{for} i\neq j\\ \end{array}\right.\quad, \]
Sum of weights
\[ w = 1 + \left\{\begin{array}{cl} 2(w_i-1) & \mbox{for} i=j\\ (w_i-1) + (w_j-1) & \mbox{for} i\neq j\\ \end{array}\right.\quad, \]
Average of weights
\[ w = 1 + \left\{\begin{array}{cl} (w_i-1) & \mbox{for} i=j\\ ((w_i-1) + (w_j-1))/2 & \mbox{for} i\neq j\\ \end{array}\right.\quad. \]
mode | Whether to take square root or not |
Definition at line 226 of file AliTrackletWeights.C.
|
inline |
Inverse the weights calculated. That is, if this option is enabled, then the weight used is \(1/w\) where \(w\) is the normal weight.
inv | If true, inverse weights |
Definition at line 246 of file AliTrackletWeights.C.
|
inline |
Set the tracklet mask
mask | Mask to use |
Definition at line 232 of file AliTrackletWeights.C.
Referenced by MakeRuben().
|
inline |
Set the tracklet veto
veto | Veto to use |
Definition at line 238 of file AliTrackletWeights.C.
Referenced by MakeRuben().
|
inlinevirtual |
Store values
parent | Parent container |
Reimplemented in AliTrackletPtPidStrWeights.
Definition at line 308 of file AliTrackletWeights.C.
Referenced by AliTrackletPtPidStrWeights::Store().
UChar_t AliTrackletBaseWeights::fCalc |
Definition at line 360 of file AliTrackletWeights.C.
Referenced by AliTrackletPtPidStrWeights::CalcWeight(), operator=(), Print(), Retrieve(), SetCalc(), and Store().
Bool_t AliTrackletBaseWeights::fInverse |
Definition at line 363 of file AliTrackletWeights.C.
Referenced by LookupWeight(), operator=(), and SetInverse().
UChar_t AliTrackletBaseWeights::fMask |
Definition at line 361 of file AliTrackletWeights.C.
Referenced by CheckTracklet(), operator=(), Print(), Retrieve(), SetMask(), and Store().
UChar_t AliTrackletBaseWeights::fVeto |
Definition at line 362 of file AliTrackletWeights.C.
Referenced by CheckTracklet(), operator=(), Print(), Retrieve(), SetVeto(), and Store().