![]() |
AliPhysics
d84cbc0 (d84cbc0)
|
Public Types | |
enum | EMode { kUp = (0x1) << 14, kDown = (0x2) << 14, kDisabled = (0x4) << 14 } |
enum | ECalc { kProduct, kSquare, kSum, kAverage } |
typedef std::map< short, TH1D * > | PdgMap |
Protected Member Functions | |
virtual Double_t | LookupWeight (Double_t pT, Short_t pdg, Double_t cent) const |
TH1D * | GetPdgHist (const PdgMap &m, Short_t pdg) const |
virtual Double_t | GetPdgWeight (const PdgMap &m, UShort_t apdg, Double_t cent) const |
Bool_t | AddPdgWeight (PdgMap &map, Short_t pdg, const TH1D *w, UShort_t mode=0) |
void | SetPdgMode (PdgMap &map, Short_t pdg, UShort_t mode) |
void | StoreMap (TCollection *parent, const char *name, PdgMap &m) |
Bool_t | RetrieveMap (TCollection *parent, const char *name, PdgMap &m) |
void | ModStack (THStack *stack) |
void | PrintMap (const PdgMap &m, const char *name, Option_t *options="") const |
void | PrintHist (const char *tag, TH1 *h) const |
ClassDef (AliTrackletWeights, 3) | |
Protected Attributes | |
TH2D * | fPt |
PdgMap | fAbundance |
PdgMap | fStrangeness |
UChar_t | fCalc |
UChar_t | fMask |
UChar_t | fVeto |
Simulation weights
Definition at line 42 of file AliTrackletWeights.C.
typedef std::map<short,TH1D*> AliTrackletWeights::PdgMap |
Map a particle species to a weight
Definition at line 105 of file AliTrackletWeights.C.
Mode calculation
Definition at line 59 of file AliTrackletWeights.C.
Mode of weights
Enumerator | |
---|---|
kUp |
If this bit is set, adjust weight up by error |
kDown |
If this bit is set, adjust weight down by error |
kDisabled |
If this bit is set, the weight is disabled |
Definition at line 48 of file AliTrackletWeights.C.
|
inline |
Default constructor - ROOT I/O only
Definition at line 110 of file AliTrackletWeights.C.
AliTrackletWeights::AliTrackletWeights | ( | const char * | name, |
const char * | title = "Sim. tracklet weights" |
||
) |
Named constructor
name | Name of object |
title | (optional) free-form title |
Definition at line 457 of file AliTrackletWeights.C.
AliTrackletWeights::AliTrackletWeights | ( | const AliTrackletWeights & | o | ) |
Copy constructor
o | Object to copy from |
Definition at line 469 of file AliTrackletWeights.C.
|
inlinevirtual |
Destructor
Definition at line 134 of file AliTrackletWeights.C.
|
inline |
Add a histogram to weight particle abundances
pdg | Particle species |
h | Weight of particle specie as a function of centrality. |
mode | Mode of this weight (+1: up, 0: normal, -1: down) |
Definition at line 165 of file AliTrackletWeights.C.
Referenced by AliTrackletWeights(), MakeWeight(), and operator=().
|
protected |
Add a weight histogram
map | Map of weights |
pdg | Particle species |
w | Weight histogram |
mode | Mode of this weight (+1: up, 0: normal, -1: down) |
Definition at line 507 of file AliTrackletWeights.C.
Referenced by AddAbundanceWeight(), AddStrangenessWeight(), and RetrieveMap().
|
inline |
Add a histogram to weight strange particle abundances
pdg | Particle species |
h | Weight of particle specie as a function of centrality. |
mode | Mode of this weight (+1: up, 0: normal, -1: down) |
Definition at line 178 of file AliTrackletWeights.C.
Referenced by AliTrackletWeights(), MakeK0S(), MakeRealistic(), MakeRuben(), MakeWeight(), and operator=().
|
protected |
void AliTrackletWeights::Draw | ( | Option_t * | option = "" | ) |
Draw the weights
option |
Definition at line 793 of file AliTrackletWeights.C.
Referenced by MakeEposWeight(), MakeK0S(), MakeRealistic(), MakeRuben(), MakeWeight(), and ReadWeights().
Get the abundance weight of a given particle type for a given centrality
apdg | Absolute value of the particle PDG identifier |
cent | Centrality |
Definition at line 332 of file AliTrackletWeights.C.
Get the histogram associated with a particle species in a given map.
pdg | Particle species |
m | Map |
Definition at line 557 of file AliTrackletWeights.C.
Referenced by GetPdgWeight(), and SetPdgMode().
|
protectedvirtual |
Get a PDG depedent weight.
m | Map to look up in |
apdg | The absolute value of the PDG code |
cent | The event centrality |
Definition at line 566 of file AliTrackletWeights.C.
Referenced by GetAbundanceWeight(), GetStrangenessWeight(), and LookupWeight().
Get the strangeness weight of a given particle type for a given centrality
apdg | Absolute value of the particle PDG identifier |
cent | Centrality |
Definition at line 345 of file AliTrackletWeights.C.
|
inline |
Definition at line 308 of file AliTrackletWeights.C.
|
virtual |
Find the tracklet weight
tracklet | Tracklet |
cent | Centrality |
corr | Optional histogram to fill with correlation of weights |
Definition at line 610 of file AliTrackletWeights.C.
|
protectedvirtual |
Look-up weight based on transverse momentum pT, particle species pdf and event centrality cent.
pT | (mother) particle transverse momentum |
pdg | (mother) particle specie number |
cent | Event centrality |
Definition at line 586 of file AliTrackletWeights.C.
|
protected |
Modify a drawn stack
stack | Stack to modify |
Definition at line 653 of file AliTrackletWeights.C.
Referenced by Draw().
AliTrackletWeights & AliTrackletWeights::operator= | ( | const AliTrackletWeights & | o | ) |
Assignment operator
o | Object to assign from |
Definition at line 488 of file AliTrackletWeights.C.
void AliTrackletWeights::Print | ( | Option_t * | option = "" | ) | const |
Print information on reweights
option | Not used |
Definition at line 850 of file AliTrackletWeights.C.
Referenced by MakeEposWeight(), MakeK0S(), MakeRealistic(), MakeRuben(), MakeWeight(), and AliTrackletAODWeightedMCdNdeta::Print().
|
protected |
Print info on a histogram
tag | Tag line |
h | histogramT |
Definition at line 869 of file AliTrackletWeights.C.
Referenced by Print(), and PrintMap().
|
protected |
Print a map
m | The map |
name | Name of map |
options | Options |
Definition at line 882 of file AliTrackletWeights.C.
Referenced by Print().
Bool_t AliTrackletWeights::Retrieve | ( | TCollection * | in | ) |
Retrieve weights from a collection
in | Input collection |
Definition at line 734 of file AliTrackletWeights.C.
|
protected |
Retrieve map contents from an input collection
parent | Input collection |
name | Name of collection |
m | Map to add to |
Definition at line 763 of file AliTrackletWeights.C.
Referenced by Retrieve().
Set the mode of a single particle abundance weight. Mode is a bit mask of
pdg | Particle specie |
mode | Mode of this weight (+1: up, 0: normal, -1: down) |
Definition at line 203 of file AliTrackletWeights.C.
|
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 280 of file AliTrackletWeights.C.
Referenced by AliTrackletAODWeightedMCdNdeta::SetWeightCalc().
|
inline |
Set the tracklet mask
mask | Mask to use |
Definition at line 286 of file AliTrackletWeights.C.
Referenced by MakeRuben(), and AliTrackletAODWeightedMCdNdeta::SetWeightMask().
Set the mode of a single particle weight. Mode is a bit mask of
map | Map |
pdg | Particle specie |
mode | Mode |
Definition at line 549 of file AliTrackletWeights.C.
Referenced by SetAbundanceMode(), and SetStrangenessMode().
void AliTrackletWeights::SetPtMode | ( | UShort_t | mode | ) |
Set the mode of a transverse momentum weight. Mode is a bit mask of
mode | Mode |
Definition at line 544 of file AliTrackletWeights.C.
Set the weight histogram per transverse momentum and centrality
h | histogram of (centrality vs pT) weights |
mode | Mode of this weight (+1: up, 0: normal, -1: down) |
Definition at line 529 of file AliTrackletWeights.C.
Referenced by AliTrackletWeights(), MakeEposWeight(), MakeWeight(), and operator=().
Set the mode of a single particle strangeness weight. Mode is a bit mask of
pdg | Particle specie |
mode | Mode |
Definition at line 218 of file AliTrackletWeights.C.
|
inline |
Set the tracklet veto
veto | Veto to use |
Definition at line 292 of file AliTrackletWeights.C.
Referenced by MakeRuben(), and AliTrackletAODWeightedMCdNdeta::SetWeightVeto().
void AliTrackletWeights::Store | ( | TCollection * | out | ) |
Store weights histograms in output of analysis
out | Collection to add histograms to |
Definition at line 673 of file AliTrackletWeights.C.
|
protected |
Write a maps histograms to an output container
parent | Output container |
name | Name of output sub-container |
m | Map of weights |
Definition at line 695 of file AliTrackletWeights.C.
Referenced by Store().
|
protected |
Definition at line 448 of file AliTrackletWeights.C.
Referenced by AddAbundanceWeight(), AliTrackletWeights(), Draw(), GetAbundanceWeight(), LookupWeight(), operator=(), Print(), Retrieve(), SetAbundanceMode(), and Store().
|
protected |
Definition at line 450 of file AliTrackletWeights.C.
Referenced by LookupWeight(), operator=(), Print(), Retrieve(), SetCalc(), and Store().
|
protected |
Definition at line 451 of file AliTrackletWeights.C.
Referenced by LookupWeight(), operator=(), Print(), Retrieve(), SetMask(), and Store().
|
protected |
Definition at line 447 of file AliTrackletWeights.C.
Referenced by AliTrackletWeights(), Draw(), LookupWeight(), operator=(), Print(), Retrieve(), SetPtMode(), SetPtWeight(), and Store().
|
protected |
Definition at line 449 of file AliTrackletWeights.C.
Referenced by AddStrangenessWeight(), AliTrackletWeights(), Draw(), GetStrangenessWeight(), LookupWeight(), operator=(), Print(), Retrieve(), SetStrangenessMode(), and Store().
|
protected |
Definition at line 452 of file AliTrackletWeights.C.
Referenced by LookupWeight(), operator=(), Print(), Retrieve(), SetVeto(), and Store().