![]() |
AliPhysics
2b88e80 (2b88e80)
|
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 |
Protected Attributes | |
TH2D * | fPt |
PdgMap | fAbundance |
PdgMap | fStrangeness |
Additional Inherited Members | |
![]() | |
UChar_t | fCalc |
UChar_t | fMask |
UChar_t | fVeto |
Bool_t | fInverse |
Int_t | fDebug |
![]() | |
void | MakeEposWeight (const char *file1, const char *file2) |
void | MakeK0S () |
void | MakeRealistic () |
void | MakeRuben () |
void | MakeStrange () |
void | MakeWeight () |
void | ReadWeights (const char *filename="weights.root") |
Simulation weights
Definition at line 420 of file AliTrackletWeights.C.
typedef std::map<short,TH1D*> AliTrackletPtPidStrWeights::PdgMap |
Map a particle species to a weight
Definition at line 436 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 426 of file AliTrackletWeights.C.
|
inline |
Default constructor - ROOT I/O only
Definition at line 441 of file AliTrackletWeights.C.
Referenced by AliTrackletPtPidStrWeights().
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 727 of file AliTrackletWeights.C.
AliTrackletPtPidStrWeights::AliTrackletPtPidStrWeights | ( | const AliTrackletPtPidStrWeights & | o | ) |
Copy constructor
o | Object to copy from |
Definition at line 737 of file AliTrackletWeights.C.
|
inlinevirtual |
Destructor
Definition at line 464 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 500 of file AliTrackletWeights.C.
Referenced by AliTrackletPtPidStrWeights(), AliTrackletBaseWeights::MakeStrange(), AliTrackletBaseWeights::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 771 of file AliTrackletWeights.C.
Referenced by 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 513 of file AliTrackletWeights.C.
Referenced by AliTrackletPtPidStrWeights(), AliTrackletBaseWeights::MakeK0S(), AliTrackletBaseWeights::MakeRealistic(), AliTrackletBaseWeights::MakeRuben(), AliTrackletBaseWeights::MakeStrange(), AliTrackletBaseWeights::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 894 of file AliTrackletWeights.C.
Referenced by CalcWeight(), and AliTrackletDeltaWeights::~AliTrackletDeltaWeights().
|
virtual |
Calculate weight of a particle
particle | Particle |
cent | Centrality |
ipZ | Interaction point |
Implements AliTrackletBaseWeights.
Definition at line 883 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 850 of file AliTrackletWeights.C.
void AliTrackletPtPidStrWeights::Draw | ( | Option_t * | option = "" | ) |
Draw the weights
option |
Definition at line 1041 of file AliTrackletWeights.C.
Referenced by AliTrackletBaseWeights::MakeEposWeight(), AliTrackletBaseWeights::MakeK0S(), AliTrackletBaseWeights::MakeRealistic(), AliTrackletBaseWeights::MakeRuben(), AliTrackletBaseWeights::MakeStrange(), AliTrackletBaseWeights::MakeWeight(), PureMCWeights::Run(), and AliTrackletDeltaWeights::~AliTrackletDeltaWeights().
|
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 605 of file AliTrackletWeights.C.
Get the histogram associated with a particle species in a given map.
pdg | Particle species |
m | Map |
Definition at line 821 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 830 of file AliTrackletWeights.C.
Referenced by CalcWeight().
|
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 618 of file AliTrackletWeights.C.
|
protected |
Modify a drawn stack
stack | Stack to modify |
Definition at line 933 of file AliTrackletWeights.C.
Referenced by Draw().
AliTrackletPtPidStrWeights & AliTrackletPtPidStrWeights::operator= | ( | const AliTrackletPtPidStrWeights & | o | ) |
Assignment operator
o | Object to assign from |
Definition at line 754 of file AliTrackletWeights.C.
Referenced by AliTrackletDeltaWeights::~AliTrackletDeltaWeights().
|
virtual |
Print information on reweights
option | Not used |
Reimplemented from AliTrackletBaseWeights.
Definition at line 1098 of file AliTrackletWeights.C.
Referenced by AliTrackletBaseWeights::MakeEposWeight(), AliTrackletBaseWeights::MakeK0S(), AliTrackletBaseWeights::MakeRealistic(), AliTrackletBaseWeights::MakeRuben(), AliTrackletBaseWeights::MakeStrange(), AliTrackletBaseWeights::MakeWeight(), and AliTrackletDeltaWeights::~AliTrackletDeltaWeights().
|
protected |
Print info on a histogram
tag | Tag line |
h | histogramT |
Definition at line 1110 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 1123 of file AliTrackletWeights.C.
Referenced by Print().
|
virtual |
Retrieve weights from a collection
in | Input collection |
Reimplemented from AliTrackletBaseWeights.
Definition at line 990 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 1011 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 538 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 813 of file AliTrackletWeights.C.
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 808 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 793 of file AliTrackletWeights.C.
Referenced by AliTrackletPtPidStrWeights(), AliTrackletBaseWeights::MakeEposWeight(), AliTrackletBaseWeights::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 553 of file AliTrackletWeights.C.
|
virtual |
Store weights histograms in output of analysis
out | Collection to add histograms to |
Reimplemented from AliTrackletBaseWeights.
Definition at line 953 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 971 of file AliTrackletWeights.C.
Referenced by Store().
|
protected |
Definition at line 721 of file AliTrackletWeights.C.
Referenced by AliTrackletPtPidStrWeights(), CalcWeight(), Draw(), operator=(), Print(), Retrieve(), and Store().
|
protected |
Definition at line 720 of file AliTrackletWeights.C.
Referenced by AliTrackletPtPidStrWeights(), CalcWeight(), Draw(), operator=(), Print(), Retrieve(), SetPtMode(), SetPtWeight(), and Store().
|
protected |
Definition at line 722 of file AliTrackletWeights.C.
Referenced by AliTrackletPtPidStrWeights(), CalcWeight(), Draw(), operator=(), Print(), Retrieve(), and Store().