]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGLF/FORWARD/analysis2/scripts/multdist/runMultiplicityDistributionAnalysis_README.txt
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / scripts / multdist / runMultiplicityDistributionAnalysis_README.txt
CommitLineData
ad7be237 1****************************************************************
2* Instructions for running multiplicity distribution analysis *
3* ------------ *
4* Casper Nygaard, nygaard.casper@gmail.com, July 21st, 2012 *
5****************************************************************
6
7In these instructions the abbrevation $FMD corresponds to the
8$ALICE_ROOT/PWGLF/FORWARD/analysis2/ directory.
9
10For running the multiplicity distribution analysis the following files
11are used (in addition to some general AliRoot FORWARD code):
12
13$FMD/MakeMultAOD.C
14$FMD/MakeMultiplicityDistribution.C
15$FMD/CreateResponseMatrices.C
16$FMD/AliForwardMultiplicityDistribution.cxx/.h
17$FMD/AliForwardCreateResponseMatrices.cxx/.h
18$FMD/AddTaskMultiplicity.C
19$FMD/AddTaskCreateResponseMatrices.C
20
21$FMD/scripts/doUnfolding.C
22$FMD/scripts/unfoldBase.C
23$FMD/scripts/unfoldChi2Method.C
24
25Additionally the unfolding ROOT framework RooUnfold should be
26installed (http://hepunx.rl.ac.uk/~adye/software/unfold/RooUnfold.html).
27
28
291) CREATE AODs
30------------------------------------------------------------
31Create AODs on the GRID, similarly to the standard
32FORWARD/analysis2 method.
33
34One can use $FMD/MakeMultAOD.C macro to create the AODs, specifying
35which runs/ESD pass/etc. to use.
36
37
382) CREATE BASIC MULTIPLICITY FILES
39------------------------------------------------------------
40Run over the (local) AODs to create basic multiplicity distribution
41analysis files, and response matrices.
42
43The basic idea is to run over data AODs to create raw multiplicity
44distrbutions in a number of eta bins, and run over MC AODs to create
45response matrices over the same eta bins.
46
47The output file is a .root file with a folder for each eta-bin,
48containing 'raw' multiplicity distributions or response matrices.
49
50
51Multiplicity distributions:
52aliroot -l
53.L MakeMultiplicityDistribution.C
54MakeMultiplicityDistributions(const char* aoddir, Int_t nEvents,
55 const char* trig,
56 Double_t vzMin , Double_t vzMax,
57 Int_t lowCent, Int_t highCent,
58 char* output, Int_t nBins)
59
60aoddir = directory of the local AOD files
61nEvents = number of events to run over, -1 for all
62trig = trigger word to analyse, "NSD" for Non-Single-Diffractive
63 or "INEL" for inelastic
64vzMin = lower bound for z-vertex
65vzMax = upper bound for z-vertex. To have full continuous
66 eta-coverage between the SPD and FMD: -4<vz<4
67lowCent = lower bound for centrality
68highCent = upper bound for centrality. Only relevant for PbPb. In pp
69 set both to zero.
70output = output filename
71nBins = max multiplicity. The multiplicity axis runs from
72 [-0.5 ; nBins-0.5] in nBins bins. For pp 500 suffices, for PbPb the most
73 central collisions need nBins=30000.
74
75response matrices:
76
77aliroot -l
78.L CreateResponseMatrices.C
79CreateResponseMatrices(const char* aoddir, Int_t nEvents,
80 const char* trig,
81 Double_t vzMin, Double_t vzMax,
82 char* output")
83
84Parameters are the same as for
85MakeMultiplicityDistribution(). lowCent, highCent, nBins are not
86included since at the moment unfolding is not attempted for PbPb.
87
88
893) UNFOLDING
90-------------------------------------------------------------
91The 'raw' distributions must be unfolded to correct for detector
92effects. For pp the unfolding can be done in a number of ways. I
93haveused two methods; a Single Value Decomposition (SVD) method and a
94Bayesen Iterative method.
95
96The SVD method is implemented in AliRoot by Jan Fiete, and the
97Bayesian method uses the ROOT framework RooUnfold.
98
99doUnfolding.C is a small steering routine, which calls unfoldBase.C,
100which handles the unfolding itself.
101
102aliroot -l
103.L unfoldBase.C
104unfoldBase(const Char_t* outputFile, Method method,
105 const Char_t* responseFileName, const Char_t* dataFileName)
106
107outputFile = name of unfolded distributions file
108method = unfolding method, possible values are kBayes or kSvd
109responseFilenName = response matrix filename
110dataFileName = uncorrected multiplicity filename
111
112