![]() |
AliPhysics
34df632 (34df632)
|
Public Types | |
enum | EMode { kUp = (0x1) << 14, kDown = (0x2) << 14, kDisabled = (0x4) << 14 } |
typedef std::map< short, TH1D * > | PdgMap |
![]() | |
enum | ECalc { kProduct, kSquare, kSum, kAverage } |
Protected Member Functions | |
virtual Double_t | CalcWeight (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 (AliTrackletPtPidStrWeights, 3) | |
Protected Attributes | |
TH2D * | fPt |
PdgMap | fAbundance |
PdgMap | fStrangeness |
Additional Inherited Members | |
![]() | |
UChar_t | fCalc |
UChar_t | fMask |
UChar_t | fVeto |
Bool_t | fInverse |
Simulation weights
Definition at line 373 of file AliTrackletWeights.C.
typedef std::map<short,TH1D*> AliTrackletPtPidStrWeights::PdgMap |
Map a particle species to a weight
Definition at line 389 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 379 of file AliTrackletWeights.C.
|
inline |
Default constructor - ROOT I/O only
Definition at line 394 of file AliTrackletWeights.C.
AliTrackletPtPidStrWeights::AliTrackletPtPidStrWeights | ( | const char * | name, |
const char * | title = "Sim. tracklet weights" |
||
) |
Named constructor
name | Name of object |
title | (optional) free-form title |
Definition at line 677 of file AliTrackletWeights.C.
AliTrackletPtPidStrWeights::AliTrackletPtPidStrWeights | ( | const AliTrackletPtPidStrWeights & | o | ) |
Copy constructor
o | Object to copy from |
Definition at line 687 of file AliTrackletWeights.C.
|
inlinevirtual |
Destructor
Definition at line 417 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 450 of file AliTrackletWeights.C.
Referenced by AliTrackletPtPidStrWeights(), MakeStrange(), MakeWeight(), operator=(), and PureMCWeights::Run().
|
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 721 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 463 of file AliTrackletWeights.C.
Referenced by AliTrackletPtPidStrWeights(), MakeK0S(), MakeRealistic(), MakeRuben(), MakeStrange(), MakeWeight(), and operator=().
|
virtual |
Find the tracklet weight
tracklet | Tracklet |
cent | Centrality |
ipz | Interaction point Z coordinate |
corr | Optional histogram to fill with correlation of weights |
Implements AliTrackletBaseWeights.
Definition at line 826 of file AliTrackletWeights.C.
|
protectedvirtual |
Look-up weight based on transverse momentum pT, particle species pdf and event centrality cent. This is used to calculate the weight of a cluster.
pT | (mother) particle transverse momentum |
pdg | (mother) particle specie number |
cent | Event centrality |
Definition at line 800 of file AliTrackletWeights.C.
|
protected |
void AliTrackletPtPidStrWeights::Draw | ( | Option_t * | option = "" | ) |
Draw the weights
option |
Definition at line 967 of file AliTrackletWeights.C.
Referenced by MakeEposWeight(), MakeK0S(), MakeRealistic(), MakeRuben(), MakeStrange(), MakeWeight(), and PureMCWeights::Run().
|
inline |
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 555 of file AliTrackletWeights.C.
Get the histogram associated with a particle species in a given map.
pdg | Particle species |
m | Map |
Definition at line 771 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 780 of file AliTrackletWeights.C.
Referenced by CalcWeight(), GetAbundanceWeight(), and GetStrangenessWeight().
|
inline |
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 568 of file AliTrackletWeights.C.
|
protected |
Modify a drawn stack
stack | Stack to modify |
Definition at line 859 of file AliTrackletWeights.C.
Referenced by Draw().
AliTrackletPtPidStrWeights & AliTrackletPtPidStrWeights::operator= | ( | const AliTrackletPtPidStrWeights & | o | ) |
Assignment operator
o | Object to assign from |
Definition at line 704 of file AliTrackletWeights.C.
|
virtual |
Print information on reweights
option | Not used |
Reimplemented from AliTrackletBaseWeights.
Definition at line 1024 of file AliTrackletWeights.C.
Referenced by MakeEposWeight(), MakeK0S(), MakeRealistic(), MakeRuben(), MakeStrange(), and MakeWeight().
|
protected |
Print info on a histogram
tag | Tag line |
h | histogramT |
Definition at line 1036 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 1049 of file AliTrackletWeights.C.
Referenced by Print().
|
virtual |
Retrieve weights from a collection
in | Input collection |
Reimplemented from AliTrackletBaseWeights.
Definition at line 916 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 937 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 488 of file AliTrackletWeights.C.
Set the mode of a single particle weight. Mode is a bit mask of
map | Map |
pdg | Particle specie |
mode | Mode |
Definition at line 763 of file AliTrackletWeights.C.
Referenced by SetAbundanceMode(), and SetStrangenessMode().
void AliTrackletPtPidStrWeights::SetPtMode | ( | UShort_t | mode | ) |
Set the mode of a transverse momentum weight. Mode is a bit mask of
mode | Mode |
Definition at line 758 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 743 of file AliTrackletWeights.C.
Referenced by AliTrackletPtPidStrWeights(), MakeEposWeight(), MakeWeight(), operator=(), and PureMCWeights::Run().
Set the mode of a single particle strangeness weight. Mode is a bit mask of
pdg | Particle specie |
mode | Mode |
Definition at line 503 of file AliTrackletWeights.C.
|
virtual |
Store weights histograms in output of analysis
out | Collection to add histograms to |
Reimplemented from AliTrackletBaseWeights.
Definition at line 879 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 897 of file AliTrackletWeights.C.
Referenced by Store().
|
protected |
Definition at line 671 of file AliTrackletWeights.C.
Referenced by AddAbundanceWeight(), AliTrackletPtPidStrWeights(), CalcWeight(), Draw(), GetAbundanceWeight(), operator=(), Print(), Retrieve(), SetAbundanceMode(), and Store().
|
protected |
Definition at line 670 of file AliTrackletWeights.C.
Referenced by AliTrackletPtPidStrWeights(), CalcWeight(), Draw(), operator=(), Print(), Retrieve(), SetPtMode(), SetPtWeight(), and Store().
|
protected |
Definition at line 672 of file AliTrackletWeights.C.
Referenced by AddStrangenessWeight(), AliTrackletPtPidStrWeights(), CalcWeight(), Draw(), GetStrangenessWeight(), operator=(), Print(), Retrieve(), SetStrangenessMode(), and Store().