]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/README
Correcting coding convention violations (Christian)
[u/mrichter/AliRoot.git] / MUON / README
CommitLineData
50837721 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15
16/* $Id$ */
17
88cb7938 18==========================================================
19Please add to this README file all information concerning
20config files, simulation, digitalization, clusterization,
21reconstruction and macro analysis
22
6b1e4b22 23==========================================================
24 How to check that your aliroot is working well
25==========================================================
26There is a script file AlirootRun_MUONtest.script which
27allows for simulating, reconstructing and making the
28invariant analysis of the generated Upsilon (1S).
29The used configuration file is Config.C in MUON
30directory.
31There you have to type :
32
33source $ALICE_ROOT/MUON/AlirootRun_MUONtest.script
34
35If you do not recover a few Upsilons in their mass region
36in the file MUONmassPlot.root
37
88cb7938 38==========================================================
7985603c 39 How to run a MUON generation
88cb7938 40==========================================================
41aliroot
fc1fafa5 42root [0] gAlice->Run(10,"$ALICE_ROOT/MUON/Config.C");
88cb7938 43
441 single muon of 7 GeV/c in the MUON spectrometer
45acceptance will be simulated using geant3.
46Hit information will be store in the root file in the
47execution directory.
88cb7938 48If you want to change the option or to define a new directory
49for hits, you have to do the following before:
50root [0] gAlice->SetConfigFunction("Config( \"/home/martinez/aliroot/work_NewIO/test/\" , \"box\" );");
51
88cb7938 52============================================================
53 How to run MUONCheck macro
54============================================================
55To check the content of a root data file, the MUONCheck
56provides a ascii output on screen.
57
58To compile MUONCheck.C
2058bf30 59.includepath $ALICE_ROOT/STEER
60.includepath $ALICE_ROOT/MUON
61.L $ALICE_ROOT/MUON/MUONCheck.C++
bf17dbfd 62To Load
63gSystem->Load("$ALICE_ROOT/MUON/MUONCheck_C.so")
2058bf30 64
278a86d5 65To print Kine : (default file is galice.root )
2b32c661 66MUONkine() or MUONkine("galice.root",##) for the event number ##
88cb7938 67
68To print hits : (default file is galice.root if not MUONhits("toto.root""); )
2b32c661 69MUONhits() or MUONhits("galice.root",##) for the event number ##
88cb7938 70
71To print digits : (default file is galice.root)
2b32c661 72MUONdigits() or MUONdigits("galice.root",##) for the event number ##
88cb7938 73
74To print rawcluster : (default file is galice.root)
2b32c661 75MUONrecpoints() or MUONrecpoints("galice.root",##) for the event number ##
88cb7938 76
77To print trigger : (default file is galice.root)
2b32c661 78MUONTestTrigger() or MUONTestTrigger("galice.root",##) for the event number ##
79
80....
88cb7938 81
02d8f072 82============================================================
6570c14d 83 How to check the Geometry
02d8f072 84============================================================
fc1fafa5 85gAlice->Init("$ALICE_ROOT/MUON/Config.C");
02d8f072 86.L $ALICE/geant3/TGeant3/G3GUI.C
87G3GUI()
88
6570c14d 89============================================================
90 How to check the Geometry with the new Geometrical modeler
91 ftp://root.cern.ch/root/doc/chapter16.pdf
92 http://agenda.cern.ch/fullAgenda.php?ida=a05212
93============================================================
94gAlice->Init("$ALICE_ROOT/MUON/Config.C");
95gGeoManager->GetMasterVolume()->Draw();
96
02d8f072 97
7985603c 98============================================================
99 How to run MUONdisplay
100============================================================
1eccde20 101First you need to perform a full simulation:
7985603c 102generation, digitalisation and clusterisation
103.L $ALICE_ROOT/MUON/MUONdisplay.C
104MUONdisplay(0,"galice.root")
105
02d8f072 106============================================================
107 Tracking parameters, cuts, energy loss and physics processes
108============================================================
109Tracking parameters in MUON are automatically defined by GEANT
110MUON takes the default values of CUTs and physics processes
111defined by the Config files, except for the gas mixture medium
112of the tracking chambers. The CUT's and physics processes of
113the gas mixture medium is then defined in the galice.cuts file
114in the data directory. In particular ILOSS parameter MUST be
115equal unity (1) in order simulate a realistic energy loss
116distribution (mean value and fluctuations) in the active gas.
a88eb0d0 117
118============================================================
119 Tracking of particle in the magnetic field
120============================================================
121GEANT has two ways for tracking charged particles in the
122magnetic field: HELIX et RKUTA.
123HELIX is faster and works well if the gradient of magnetic
124field is small.
125For MUON, HELIX is a not a good approximation and we must
126use RKUTA to get the optimal mass resolution of the
127spectrometer. The choice of HELIX or RKUTA is done in the
128config file when the magnetic field is defined:
129 AliMagFMaps* field = new AliMagFMaps("Maps","Maps", TRACKING, FACTOR, MAXB, AliMagFMaps::k4kG);
130 gAlice->SetField(field);
131TRACKING must be 1 for RKUTA and 2 for HELIX (the default value for aliroot is 2 (HELIX))
132FACTOR allows you to set the magnetic field to 0, just putting FACTOR=0. Default value is 1.
133MAXB is the maximum magnetic field which is 10.T
2b32c661 134
f4f795ed 135===========================================================
136 MUON cocktail for physics ..............
137===========================================================
138There is a MUON cocktail generator of the muon sources in the
139EVGEN directory. This class derives from AliGenCocktail.
140In the init of this class I have filled the cocktail with
141the muon sources: J/Psi, Upsilon, Open Charm, Open Beauty,
142Pion, Kaons. The code needs only the production cross section
143at 4pi (for the moment this values are in the code since I
144prefere them do not be modified), and the code calculates the
145rate of particles in the acceptance, making the scaling based
146on the number of collisions for the hard probes and on the
147number of participants for soft sources: Pions and Kaons.
148
149In the Genereate of this class all entries in the cocktail
150are called and we define a "primordial trigger" with requires
151a minimum number of muons above a Pt cut in the required acceptance.
152In order to normalized to the real number of simulated events,
153there are 2 data members in the class fNsuceeded adn fNGenerate
154which tell us what is the biais source.
155
156Enclose an example to use this generator:
157AliGenMUONCocktail * gener = new AliGenMUONCocktail();
158gener->SetPtRange(1.,100.); // Transverse momentum range
159gener->SetPhiRange(0.,360.); // Azimuthal angle range
160gener->SetYRange(-4.0,-2.4);
161gener->SetMuonPtCut(1.);
162gener->SetMuonThetaCut(171.,178.);
163gener->SetMuonMultiplicity(2);
35e21dec 164gener->SetImpactParameterRange(0.,5.); // 10% most centra PbPb collisions
f4f795ed 165gener->SetVertexSmear(kPerTrack);
166gener->SetOrigin(0,0,0); // Vertex position
167gener->SetSigma(0,0,0.0); // Sigma in (X,Y,Z) (cm) on IP position
168gener->Init();
169
a2da7817 170================================================================
69be760c 171 csh Script for the full reconstruction with raw data generator
a2da7817 172================================================================
173The rawdata generation and analysis is working with the new segmentation.
174So the config file must use the version "AliMUONFactoryV3"
175
176Generation
177The method AliSimulation::SetWriteRawData("MUON") enables on
178the muon rawdata generation
179aliroot -b << EOF
180AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C")
181MuonSim.SetWriteRawData("MUON")
182MuonSim.Run(10)
183.q
184EOF
185
186Reconstruction
187aliroot -b << EOF
188AliReconstruction MuonRec("galice.root");
189MuonRec.SetInput("$YOUR_WORKING_DIRECTORY/"); Do not forget the slash at the end!
190MuonRec.SetRunVertexFinder(kFALSE);
191MuonRec.SetRunLocalReconstruction("MUON");
192MuonRec.SetRunTracking("");
193MuonRec.SetFillESD("MUON");
194MuonRec.Run();
195.q
196EOF
197
a88eb0d0 198
b8dc484b 199
200============================================================
201 How to run MUONRecoCheck macro
202============================================================
203To check the muon reconstruction by comparing the reconstructed tracks
204with the reference tracks made of "AliTrackReference" for the hits and
205kinematic informations (TParticle) for the vertex.
206This macro can be used to check the track reconstruction e.g. efficiency,
207momentum resolution ... but also to make physics analysis whenever
208track identification is needed.
209
210To compile MUONRecoCheck.C
211.includepath $ALICE_ROOT/STEER
212.includepath $ALICE_ROOT/MUON
213.L $ALICE_ROOT/MUON/MUONRecoCheck.C+
214
215// To run MUONRecoCheck
216MUONRecoCheck(nEvent,"galice.root"); // nEvent = nb of events
217
29fc2c86 218
219============================================================
220 How to run MUONTracker macro
221============================================================
222To make the track reconstruction directly from AliTrackReference hits
223which are recorded in TrackRefs.root during the simulation.
224It can be used to check the reconstruction without clusterization.
225
226To compile MUONTracker.C
227.includepath $ALICE_ROOT/STEER
228.includepath $ALICE_ROOT/MUON
229.L $ALICE_ROOT/MUON/MUONTracker.C+
230
231// To run MUONTracker
232MUONTracker(iEventMin,iEventMax,"galice.root"); // iEventMin: first event
fc1fafa5 233
234===========================================================
235 Macro MUONGenerateGeometryData.C
236===========================================================
237
238Macro for generating the geometry data files:
239(transform_*.dat, svmap_*.dat).
240- MUON/data/transform_*dat files contain all the information
241about the transformation (traslation + rotation) needed for
242the positionning of each detection element of the MUON
243spectrometer.
244- MUON/data/svmap_*.dat files contain all the information to link
245each geant volume (it can be extended to other virtual MC) with
246a detection element. The point here is that a given detection
247element, i.e. a slat chamber consists of many geant volumes.
248the correspondence is then defined in an input file.
249Eanch time there is a change in the virtual MC geometry, these
250input files must be re-generated via the macro
251MUONGenerateGeometryData.C
252
253To be run from aliroot:
254.x MUONGenerateGeometryData.C
255
256The generated files do not replace the existing ones
257but have different names (with extension ".out").
258To compare/replace the existing files with generated ones
259run the scripts in MUON/data:
260compare_data [transform] [svmaps ]
261reset_data [transform] [svmaps]
262Author: I. Hrivnacova, IPN Orsay
29fc2c86 263
264
88cb7938 265===========================================================
266 Still working ..............
267===========================================================