Create the magnetic field map in the reconstruction macros (Yuri)
[u/mrichter/AliRoot.git] / MUON / READMEevaluation.txt
518eb852 1// $Id$
91509ec6 5\page README_evaluation Evaluation
518eb852 6
91509ec6 8\section evaluation_s1 How to process invariant mass spectra for J/psi or Upsilon
10The macro MUONmassPlot_ESD.C reads back the MUON ESD informations and compute
11the invariant mass spectra and corresponding uncorelated background.
12Moreover gives the number of event in the resonance peak and the number of triggers.
15root [0] .L $ALICE_ROOT/MUON/MUONmassPlot_ESD.C+
16root [1] MUONmassPlot_ESD(ExtrapToVertex,
17 geoFilenam, filename
18 FirstEvent, LastEvent,
19 esdFileName,
20 ResType, Chi2Cut,
21 PtCutMin, PtCutMax,
22 massMin, massMax)
25ExtrapToVertex (default -1)
26 <0: no extrapolation;
27 =0: extrapolation to (0,0,0);
28 >0: extrapolation to ESDVertex if available, else to (0,0,0)
29geoFilename (default "geometry.root") geometry file name needed to extrap to vertex
30filename (default "galice.root") galice root file name
31FirstEvent (default 0)
32LastEvent (default 10000)
33esdFileName (default "AliESDs.root") esd root file name
34ResType (default 553): 553 for Upsilon, anything else for J/Psi
35Chi2Cut (default 100): keep only tracks with chi2 per d.o.f. < Chi2Cut
36PtCutMin (default 1): keep only tracks with transverse momentum > PtCutMin
37PtCutMax (default 10000): keep only tracks with transverse momentum < PtCutMax
38massMin (default 9.17 for Upsilon) keep only invariant masses with
39massMax (default 9.77 for Upsilon) massMin < mass < massMax
42\section evaluation_s2 How to run MUONRecoCheck macro
2ce5e44e 43
44To check the muon reconstruction by comparing the reconstructed tracks
45with the reference tracks made of "AliTrackReference" for the hits in chamber (0..9)
46and kinematic informations (TreeK) for the vertex.
47This macro can be used to check the track reconstruction e.g. efficiency,
48momentum resolution ... but also to make physics analysis whenever
49track identification is needed.
51To compile MUONRecoCheck.C
518eb852 52<pre>
2ce5e44e 53.includepath $ALICE_ROOT/STEER
54.includepath $ALICE_ROOT/MUON
518eb852 56</pre>
2ce5e44e 57
518eb852 58To run MUONRecoCheck
2ce5e44e 60MUONRecoCheck(nEvent,"geometry.root", "galice.root"); // nEvent = nb of events
518eb852 61</pre>
2ce5e44e 62
91509ec6 64\section evaluation_s3 Macros for MC studies
2ce5e44e 65
518eb852 66For MC studies the classes AliMUONTrackLight and AliMUONPairLight can be
2ce5e44e 67used in order to fill not only the single muon / dimuon's kinematics (charge,
68pT, rapidity, etc) at the generation AND reconstruction level, but also for
69"decoding" the Pythia output and for the storing of the single muon's history.
70This allows to tag if two muons of a given event come from a certain, well-defined
71process, such as J/psi, Upsilons, correlated open charm or open beauty or the
72low masses or if they are of uncorrelated origin. For open beauty/charm it also
73tags the creation process (pair creation, flavour excitation or gluon splitting).
74The classes also allow to tag feed-down or neutral B meson oscillation and
75has a method that checks whether the reconstructed track is a muon or not.
77The macros ReadRecoCocktail.C, DecodeRecoCocktail.C and MergeMuonLight.C
78are examples how to use these two classes. DecodeRecoCocktail.C opens the
79generated files, loops over the events and fills an AliMUONTrackLight object
80for every reconstructed track for which the reference to its generated particle
81could be established, using the AliMUONRecoCheck class.
82It then takes the AliMUONTrackLight objects and forms - event by event -
83AliMUONPairLight objects, on a combinatorial basis. For a given event these
84objects are stored in respective TClonesArrays which are then stored in a tree.
85By default, the produced output file is called "MuonLight.root".
86This root file can then be taken by the macro "ReadRecoCocktail.C" that shows,
87on the example of the reconstructed mass and pT of the AliMUONPairLight object,
88how to access the available information. For large statistics, in which many
89individual MuonLight.root files are produced, MergeMuonLight.C can be used
90to merge the files and produce one common output root file.
92To read a generation/reconstrution from PDC06 preproduction, and write a file
93with a tree of AliMUONTrackLight / AliMUONPairLight :
94go to the directory containing the generation/reconstruction. From there run
518eb852 96
2ce5e44e 98.L DecodeRecoCocktail.C+
518eb852 101</pre>
2ce5e44e 102
103To read the file previously generated:
518eb852 104<pre>
2ce5e44e 105aliroot
106.L ReadRecoCocktail.C+
518eb852 109</pre>
91509ec6 111This chapter is defined in the READMEevaluation.txt file.
baa48044 112
518eb852 113*/