]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG2/data/README
Moving PWG1 to PWGPP
[u/mrichter/AliRoot.git] / PWG2 / data / README
CommitLineData
5748d2ca 1===========================================================
2= Author: Panos.Christakoglou@cern.ch =
3===========================================================
4
5
6PriorPropabilities.root
7_______________________
8
9The file contains 5 TF1 objects namely:
10fitElectrons
11fitMuons
12fitPions
13fitKaons
14fitProtons
15
16These objects represent the functions (pol9) used to fit the the momentum spectra of electrons, muons, pions, kaons and protons. The spectra were generated by looping over the primaries of the kine trees (generator PYTHIA - production PDC07).
17
18This file can be used as input for any PID related study if one needs to have a momentum dependence of the a priori particle concentrations. This method gives better results (higher efficiency) with increasing momenta.
19
20To get the momentum dependent particle concentrations one has to do on the client side:
21
22TFile *f = TFile::Open("PriorProb/PriorProbabilities.root ");
23TF1 *fitElectrons = (TF1 *)f->Get("fitElectrons");
24TF1 *fitMuons = (TF1 *)f->Get("fitMuons");
25TF1 *fitPions = (TF1 *)f->Get("fitPions");
26TF1 *fitKaons = (TF1 *)f->Get("fitKaons");
27TF1 *fitProtons = (TF1 *)f->Get("fitProtons");
28
29If you want to pass these function in your task then you have to implement a function/setter that will do this. Then inside your task you do:
30
31fElectronFunction->Eval(p);
32fMuonFunction->Eval(p);
33fPionFunction->Eval(p);
34fKaonFunction->Eval(p);
35fProtonFunction->Eval(p);
36
37where p is the momentum of the track/particle.
38
39A complete aexample of the implementation of the usage of these functions can be found in:
40o) $ALICE_ROOT/PWG2/runProtonAnalysis.C
41o) $ALICE_ROOT/PWG2/SPECTRA/AliProtonAnalysis.cxx (.h)