]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG3/READMEmuon
technical changes:
[u/mrichter/AliRoot.git] / PWG3 / READMEmuon
CommitLineData
267d502e 1===================================================
643fea24 2 Code to include the muon information in the
3 creation of the standard AOD from the ESD
4 Roberta ARNALDI, Enrico SCOMPARIN Torino
28d9f4b3 5---------------------------------------------------------------
6
643fea24 7The following filter is used in the official analysis train, in order to copy the muon information from the ESD to the standard AOD.
8
91) AliAnalysisTaskESDMuonFilter.h --> analysis task to copy the muon information from the ESD to the standard AOD
102) AliAnalysisTaskESDMuonFilter.cxx --> analysis task to copy the muon information from the ESD to the standard AOD
11
12In order to test locally the analysis train from the ESD to the Standard AOD production, the following macro is provided
13
141) AnalysisTrainMuonLocal.C
15 - The input file is the ESD
16 - The outputs are the standard AOD and the AOD tag file
17
18===================================================
19 Creation of the MUON-AOD from the standard AOD
20 Roberta ARNALDI, Enrico SCOMPARIN Torino
21---------------------------------------------------------------
22
23Code to produce a muon-AOD, i.e. a replica of the standard AOD containing only events where
24at least one muon in the dimuon spectrometer is present
25
261) AnalysisTrainFromStandardToMuonAODLocal.C --> macro to produce the MUON-AOD (it runs locally)
272) AliAnalysisTaskFromStandardToMuonAOD.h --> analysis task to replicate the AOD content for interesting events
283) AliAnalysisTaskFromStandardToMuonAOD.cxx --> analysis task to replicate the AOD content for interesting events
29
30- The input files are the standard AOD and the AOD tag file.
31 The AOD tag file can be created in the previous step from ESD to Standard AOD, using AnalysisTrainMuonLocal.C, or it can be
32 produced on the fly with this macro.
33- Events containing at least one muon in the muon spectrometer can be selected using the AOD tag files.
34- The contents of the MUON-AOD can be defined by the user in the AnalysisTrainFromStandardToMuonAODLocal.C
35 macro with some settings as
36 SetNeedsTracksBranchReplication(), SetNeedsVerticesBranchReplication()
37 (defined in STEER/AliAODHandler.h)...
28d9f4b3 38
267d502e 39===================================================
40 Calculation of the LUT
41 Bogdan VULPESCU, Clermont
28d9f4b3 42---------------------------------------------------------------
39280342 43Analysis task for the calculation of the Look-up-Tables used by the MUON
44trigger algorithm
45
46Purpose: extract from ESD files track information (ESD track parameters and
47matched local trigger decisions) and store in TNtuple; the ntuple is used
48for building 2D histograms (transverse momentum / local deviation) which
49afterwards enter calculation/optimization procedures for the selection of
50LUT cuts for individual local boards and several transverse momenta.
51
52This version is prepared for the use on the grid, see the JDL file.
53
54Files:
55
56AliAnalysisTaskLUT.cxx - source files of the analysis task
57AliAnalysisTaskLUT.h
58
59rootlutnt.sh - executable (script)
60
61runCreateLUTNT.C - macro for setting the libraries environment and
62 execution of the main macro
63
64analysisTaskLUTNT.C - main macro for the analysis
65
66createLUTNT.jdl - JDL file
39280342 67
267d502e 68===================================================
69 Analysis task for the calculation of the trigger chamber efficiency.
70 Diego STOCCO, Torino
71----------------------------------------------------------------
72
73Purpose: produce histograms for the trigger chamber efficiency determination
74from MUON track info. The task works either with input ESD or AOD (default is ESD).
75
76This version works either locally or on grid.
77
78Files:
79AliAnalysisTaskTrigChEff.cxx -source files of the analysis task
80AliAnalysisTaskTrigChEff.h
81
82AnalysisTrigChEff.C - main macro for analysis
83
84Test analysis:
85- Preliminary: copy the following packages in the current working directory
86 - STEERBase.par
87 - ESD.par
88 - AOD.par
89 - ANALYSIS.par
90 - ANALYSISalice.par
76b2028b 91 - PWG3muon.par
267d502e 92If the packages are not present, create them:
93cd $ALICE_ROOT
94make STEERBase.par
95make ESD.par
96...
97
98 - Local test:
99 root
100 .x AnalysisTrigChEff.C(kMlocal)
101
102 by default the macro searches for ESD in $ALICE_ROOT/MUON/test_out.100
103 The directory is generated by MUON/AlirootRun_MUONtest.sh (see README in MUON).
104
105 - Grid test (interactive):
106 root
107 .x AnalysisTrigChEff.C(kMlocalGrid)
108
109 by default the macro searches for a wn.xml in the current directory, with the list
110 of grid files to analyse.
111
112- Display results:
113The macro creates the file MUON.TriggerEfficiencyMap.root
114aliroot
115AliMUONTriggerEfficiencyCells effCells("MUON.TriggerEfficiencyMap.root")
116effCells.DisplayEfficiency()
fe9005e3 117
118===================================================
119 Analysis task for checking the consistency of ESD and AOD filling and contents.
120 Mercedes LOPEZ NORIEGA, Orsay
121----------------------------------------------------------------
122
123Purpose:check the consistency between the ESDs and the AOD.
124
125The task works locally and on the grid, there are two macros depending where
126you want to run
127
128Files:
129AliAnalysisTaskAODvsESD.cxx -source files of the analysis task
130AliAnalysisTaskAODvsESD.h
131
132AnalysisTrainMuonComp.C - macro for analysis on the grid
133AnalysisTrainMuonCompLocal.C - macro for local analysis
134
135To run the check:
1361. Copy the following packages in the current working directory
137 - STEERBase.par
138 - ESD.par
139 - AOD.par
140 - ANALYSIS.par
141 - ANALYSISalice.par
142 - PWG3muon.par
143
1442. To run locally:
145 root
146 .x AnalysisTrainMuonCompLocal.C
147
148 by default the macro searches for a tag file of ESDs in the
149 working directory
150
1513. To run on the grid:
152 root
153 .x AnalysisTrainMuonComp.C
154
155 by default the macro searches for a wn.xml in the current directory, with the list
156 of grid files to analyse.
157
1584. Display results:
159The macro creates the file AODvsESDoutput.root
160It contains an Ntuple from the ESDs and Ntuple from the AODs and an inv. mass histo
161for each case
509204ee 162
163===================================================
164 Analysis task for extracting variables from the ESD for single muons
165 Nicole BASTID and Bogdan VULPESCU, Clermont-Ferrand
166----------------------------------------------------------------
167
168Purpose: the output is an ntuple with single muon tracks selected variables; a
169histogram collects the number of events in different trigger classes.
170
171Files:
172
173AliAnalysisTaskSingleMuESD.cxx - source files of the analysis task
174AliAnalysisTaskSingleMuESD.h
175
176RunSingleMuonAnalysisFromESD.C - macro to run the analysis (with xml input
177 collection and grid connection)
178
179
180How to run:
181
1821. Copy the following packages in the current working directory
183 - STEERBase.par
184 - ESD.par
185 - AOD.par
186 - ANALYSIS.par
187 - ANALYSISalice.par
188 - PWG3muon.par
189
1902. Run root
191
192gROOT->LoadMacro("$ALICE_ROOT/PWG3/muon/RunAnalysis.C");
193setupPar("STEERBase");
194setupPar("ESD");
195setupPar("AOD");
196setupPar("ANALYSIS");
197setupPar("ANALYSISalice");
198setupPar("PWG3muon");
199
2003. To analyse grid files, provide an XML collection file wn.xml and run
201
202gROOT->LoadMacro("$ALICE_ROOT/PWG3/muon/RunSingleMuonAnalysisFromESD.C");
203RunSingleMuonAnalysisFromESD()
204
2054. To analyse local files, modify RunSingleMuonAnalysisFromESD.C
206
207 } else {
208 chain->Add("/path_1_to/AliESDs.root");
209 chain->Add("/path_2_to/AliESDs.root");
210 chain->Add("/path_3_to/AliESDs.root");
211 }
212
213and run (notice the "1" argument)
214
215gROOT->LoadMacro("$ALICE_ROOT/PWG3/muon/RunSingleMuonAnalysisFromESD.C");
216RunSingleMuonAnalysisFromESD(1)
217
2185. Check the results in SingleMuESD.root
219
220Note: for some older runs (PDC08/LHC08t for instance) it is necessary to force
221the values of the trigger mask, because the function
222
223GetFiredTriggerClasses()
224
225from AliESDEvent does not return the proper names of the muon trigger classes.
226So one has to un-comment the line
227
228task->SetTriggerType("MUON");
229
230in the macro RunSingleMuonAnalysisFromESD.C, if the simulation was produced
231with SetMakeTrigger("MUON")
232
233This bug is fixed starting with the TRUNK from 14.11.2008
234
587dd11c 235===================================================
236 Analysis task for RecoCheck analysis of ESD and Kinematics
237 Bogdan VULPESCU, Clermont-Ferrand
238----------------------------------------------------------------
239
240Purpose: the class MUON/AliMUONRecoCheck is used to extract single muon and
241muon pair information in objects of type AliMUONTrackLight and
242AliMUONPairLight. The output file is RecoCheck.root and contains a tree with
243arrays of both objects.
244
245Files:
246
247AliAnalysisTaskRecoCheck.cxx - source files of the analysis task
248AliAnalysisTaskRecoCheck.h
249
250RunRecoCheck.C - macro to run the analysis (with xml input
251 collection and grid connection)
252
253
254How to run:
255
2561. Run aliroot (not root!, the class is in the muondep library)
257
2582. gROOT->LoadMacro("$ALICE_ROOT/PWG3/muondep/RunRecoCheck.C");
259
2603. RunRecoCheck()
261
2624. To analyse local files, modify RunRecoCheck.C
263
264 } else {
265 chain->Add("/path_1_to/AliESDs.root");
266 chain->Add("/path_2_to/AliESDs.root");
267 chain->Add("/path_3_to/AliESDs.root");
268 }
269
270and run (notice the "1" argument)
271
272RunRecoCheck(1)
273
2745. Check results in RecoCheck.root
509204ee 275
587dd11c 276Note: the magnetic field is needed in order to initialize the tracker. The
277corresponding field map is selected by looking at the value of the L3 current
278stored in the GRP database which was used for the reconstruction.
509204ee 279
4c904d93 280===================================================
281 Analysis task to correlate ESD tracks to their corresponding Monte Carlo data.
282 Artur Szostak, INFN
283---------------------------------------------------------------
284
285The AliAnalysisTaskLinkToMC analysis task is used to correlate reconstructed tracks
286found in ESDs to their corresponding MC track information found in the kinematics
287tree. The the same algorithm is used as in MUON/AliMUONRecoCheck but without any
288dependancy on MUON library code. This analysis task will copy out ESD MUON track
289information into the AOD like AliAnalysisTaskESDMuonFilter does, however the MC
290track label in the AOD track class is filled with the label of the corresponding
291MC track. Thus, subsequent analysis tasks can easily find the correct MC track from
292the label.
293
294Files:
295
296AliAnalysisTaskLinkToMC.h - The header file for the analysis task code.
297AliAnalysisTaskLinkToMC.cxx - The source file for the analysis task code.
298
299RunLinkToMCAnalysisExample.C - An example macro for running the analysis task in
300 local mode over simulated data. The macro takes one argument which is the name
301 of the ESD file to process. By default it uses AliESDs.root in the current working
302 directory.
303
304PlotEfficiency.C - This macro can be used to quickly check the control histograms
305 which are generated by RunLinkToMCAnalysisExample.C by default. The macro simply
306 calculates the reconstruction efficiency from the found and findable track histograms
307 that are filled by the analysis task.
308
309How to run:
310
311To run the analysis task in local mode with the example macro simply run the command
312 $ root RunLinkToMCAnalysisExample.C\(\"AliESDs.root\"\)
313where AliESDs.root can be replaced with the full path and name of the appropriate ESD
314file you wish to process. This command can also be run via AliRoot.
315