1 ===================================================
2 Code to include the muon information in the
3 creation of the standard AOD from the ESD
4 Roberta ARNALDI, Enrico SCOMPARIN Torino
5 ---------------------------------------------------------------
7 The following filter is used in the official analysis train, in order to copy the muon information from the ESD to the standard AOD.
9 1) AliAnalysisTaskESDMuonFilter.h --> analysis task to copy the muon information from the ESD to the standard AOD
10 2) AliAnalysisTaskESDMuonFilter.cxx --> analysis task to copy the muon information from the ESD to the standard AOD
12 In order to test locally the analysis train from the ESD to the Standard AOD production, the following macro is provided
14 1) AnalysisTrainMuonLocal.C
15 - The input file is the ESD
16 - The outputs are the standard AOD and the AOD tag file
18 ===================================================
19 Creation of the MUON-AOD from the standard AOD
20 Roberta ARNALDI, Enrico SCOMPARIN Torino
21 ---------------------------------------------------------------
23 Code to produce a muon-AOD, i.e. a replica of the standard AOD containing only events where
24 at least one muon in the dimuon spectrometer is present
26 1) AnalysisTrainFromStandardToMuonAODLocal.C --> macro to produce the MUON-AOD (it runs locally)
27 2) AliAnalysisTaskFromStandardToMuonAOD.h --> analysis task to replicate the AOD content for interesting events
28 3) AliAnalysisTaskFromStandardToMuonAOD.cxx --> analysis task to replicate the AOD content for interesting events
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)...
39 ===================================================
40 Calculation of the LUT
41 Bogdan VULPESCU, Clermont
42 ---------------------------------------------------------------
43 Analysis task for the calculation of the Look-up-Tables used by the MUON
46 Purpose: extract from ESD files track information (ESD track parameters and
47 matched local trigger decisions) and store in TNtuple; the ntuple is used
48 for building 2D histograms (transverse momentum / local deviation) which
49 afterwards enter calculation/optimization procedures for the selection of
50 LUT cuts for individual local boards and several transverse momenta.
52 This version is prepared for the use on the grid, see the JDL file.
56 AliAnalysisTaskLUT.cxx - source files of the analysis task
59 rootlutnt.sh - executable (script)
61 runCreateLUTNT.C - macro for setting the libraries environment and
62 execution of the main macro
64 analysisTaskLUTNT.C - main macro for the analysis
66 createLUTNT.jdl - JDL file
68 ===================================================
69 Analysis task for the calculation of the trigger chamber efficiency.
71 ----------------------------------------------------------------
73 Purpose: produce histograms for the trigger chamber efficiency determination
74 from MUON track info. The task works either with input ESD or AOD (default is ESD).
76 This version works either locally or on grid.
79 AliAnalysisTaskTrigChEff.cxx -source files of the analysis task
80 AliAnalysisTaskTrigChEff.h
82 AnalysisTrigChEff.C - main macro for analysis
85 - Preliminary: copy the following packages in the current working directory
92 If the packages are not present, create them:
100 .x AnalysisTrigChEff.C(kMlocal)
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).
105 - Grid test (interactive):
107 .x AnalysisTrigChEff.C(kMlocalGrid)
109 by default the macro searches for a wn.xml in the current directory, with the list
110 of grid files to analyse.
113 The macro creates the file MUON.TriggerEfficiencyMap.root
115 AliMUONTriggerEfficiencyCells effCells("MUON.TriggerEfficiencyMap.root")
116 effCells.DisplayEfficiency()
118 ===================================================
119 Analysis task for checking the consistency of ESD and AOD filling and contents.
120 Mercedes LOPEZ NORIEGA, Orsay
121 ----------------------------------------------------------------
123 Purpose:check the consistency between the ESDs and the AOD.
125 The task works locally and on the grid, there are two macros depending where
129 AliAnalysisTaskAODvsESD.cxx -source files of the analysis task
130 AliAnalysisTaskAODvsESD.h
132 AnalysisTrainMuonComp.C - macro for analysis on the grid
133 AnalysisTrainMuonCompLocal.C - macro for local analysis
136 1. Copy the following packages in the current working directory
146 .x AnalysisTrainMuonCompLocal.C
148 by default the macro searches for a tag file of ESDs in the
151 3. To run on the grid:
153 .x AnalysisTrainMuonComp.C
155 by default the macro searches for a wn.xml in the current directory, with the list
156 of grid files to analyse.
159 The macro creates the file AODvsESDoutput.root
160 It contains an Ntuple from the ESDs and Ntuple from the AODs and an inv. mass histo
163 ===================================================
164 Analysis task for extracting variables from the ESD for single muons
165 Nicole BASTID and Bogdan VULPESCU, Clermont-Ferrand
166 ----------------------------------------------------------------
168 Purpose: the output is an ntuple with single muon tracks selected variables; a
169 histogram collects the number of events in different trigger classes.
173 AliAnalysisTaskSingleMuESD.cxx - source files of the analysis task
174 AliAnalysisTaskSingleMuESD.h
176 RunSingleMuonAnalysisFromESD.C - macro to run the analysis (with xml input
177 collection and grid connection)
182 1. Copy the following packages in the current working directory
192 gROOT->LoadMacro("$ALICE_ROOT/PWG3/muon/RunAnalysis.C");
193 setupPar("STEERBase");
196 setupPar("ANALYSIS");
197 setupPar("ANALYSISalice");
198 setupPar("PWG3muon");
200 3. To analyse grid files, provide an XML collection file wn.xml and run
202 gROOT->LoadMacro("$ALICE_ROOT/PWG3/muon/RunSingleMuonAnalysisFromESD.C");
203 RunSingleMuonAnalysisFromESD()
205 4. To analyse local files, modify RunSingleMuonAnalysisFromESD.C
208 chain->Add("/path_1_to/AliESDs.root");
209 chain->Add("/path_2_to/AliESDs.root");
210 chain->Add("/path_3_to/AliESDs.root");
213 and run (notice the "1" argument)
215 gROOT->LoadMacro("$ALICE_ROOT/PWG3/muon/RunSingleMuonAnalysisFromESD.C");
216 RunSingleMuonAnalysisFromESD(1)
218 5. Check the results in SingleMuESD.root
220 Note: for some older runs (PDC08/LHC08t for instance) it is necessary to force
221 the values of the trigger mask, because the function
223 GetFiredTriggerClasses()
225 from AliESDEvent does not return the proper names of the muon trigger classes.
226 So one has to un-comment the line
228 task->SetTriggerType("MUON");
230 in the macro RunSingleMuonAnalysisFromESD.C, if the simulation was produced
231 with SetMakeTrigger("MUON")
233 This bug is fixed starting with the TRUNK from 14.11.2008
235 ===================================================
236 Analysis task for RecoCheck analysis of ESD and Kinematics
237 Bogdan VULPESCU, Clermont-Ferrand
238 ----------------------------------------------------------------
240 Purpose: the class MUON/AliMUONRecoCheck is used to extract single muon and
241 muon pair information in objects of type AliMUONTrackLight and
242 AliMUONPairLight. The output file is RecoCheck.root and contains a tree with
243 arrays of both objects.
247 AliAnalysisTaskRecoCheck.cxx - source files of the analysis task
248 AliAnalysisTaskRecoCheck.h
250 RunRecoCheck.C - macro to run the analysis (with xml input
251 collection and grid connection)
256 1. Run aliroot (not root!, the class is in the muondep library)
258 2. gROOT->LoadMacro("$ALICE_ROOT/PWG3/muondep/RunRecoCheck.C");
262 4. To analyse local files, modify RunRecoCheck.C
265 chain->Add("/path_1_to/AliESDs.root");
266 chain->Add("/path_2_to/AliESDs.root");
267 chain->Add("/path_3_to/AliESDs.root");
270 and run (notice the "1" argument)
274 5. Check results in RecoCheck.root
276 Note: the magnetic field is needed in order to initialize the tracker. The
277 corresponding field map is selected by looking at the value of the L3 current
278 stored in the GRP database which was used for the reconstruction.