3 /*! \page README_cosmics The Software testing on Cosmics Test Data
6 Seeveral macros has been developed during the Offline shifts
7 during the Feb-March 2008 cosmics runs. On this page we summarize
8 how to use these macros.
10 \section cosmics_s1 Software installation
12 - For installing AliRoot see ALICE Offline Installation Web page at
13 http://aliceinfo.cern.ch/Offline/AliRoot/Installation.html
15 - and for installing alien see ALICE Offline Tutorial, slides 131 - 145 at
16 http://aliceinfo.cern.ch/Offline/Analysis/Tutorial
18 If we need a fast fix, it may be provided via a patch.txt file,
19 which should be then applied in this way:
20 <pre> $> cd $ALICE_ROOT
21 $> patch -p0 --posix < patch.txt
25 Eventually, we may get in situation when an important update of the MUON code
26 is not yet included in the release, and we may then need to replace the MUON
27 from the release with the MUON from the trunk:
28 <pre> $> cd $ALICE_ROOT
29 $> mv MUON MUON.release
30 $> svn co http://alisoft.cern.ch/AliRoot/trunk/MUON MUON
31 $> rm -fr $ALICE_ROOT/lib/tgt_$ALICE_TARGET/libMUON*
35 \section cosmics_s2 Running reconstruction
37 During the offline shifts, there has been added a a new macro
38 runDataReconstruction.C. You have first to edit the macro and change
39 the value of <em>input</em> with the path to raw data file
40 which you want to reconstruct. Then you prepare an output directory
41 and run reconstruction in this way:
43 <pre> $> alien-token-int
44 $> . /tmp/gclient_env_$UID
45 $> cd $ALICE_ROOT/MUON
46 $> mkdir runXYZ_c1_out
47 $> cp rootlogon.C .rootrc runDataReconstruction.C runXYZ_c1_out
48 $> cd runXYZ_c1_out
50 root[0] .x runDataReconstruction.C(1) >& runReco.out
53 This will run reconstruction with the first calibration option
54 selected ("NOGAIN"); to run the same with the second calibration option
56 <pre> $> cd $ALICE_ROOT/MUON
57 $> mkdir runXYZ_c2_out
58 $> cp rootlogon.C .rootrc runDataReconstruction.C runXYZ_c2_out
59 $> cd runXYZ_c2_out
61 root[0] .x runDataReconstruction.C(2) >& runReco.out
64 \section cosmics_s3 Inspecting data with mchview
66 The new macro MUONOfflineShift.C will process the data
67 and generate the Root output file which can be then open with
68 the \em mchview program:
70 <pre> $> alien-token-int
71 $> . /tmp/gclient_env_$UID
72 $> cd $ALICE_ROOT/MUON
73 root[0] .L MUONOfflineShift.C+
74 root[1] MUONOfflineShift("path_to_raw_file","basename of output file");
77 $> mchview --use basename.root
81 \section cosmics_s4 Inspecting rec points
83 There has been added a new macro TestRecPoints.C.
85 The analysis of the trigger part needs only RecPoints: the digits are then re-created
86 out of the local trigger information. The analysis of the tracker part needs the
87 MUON.Digits, which can be created during reconstruction with the "SAVEDIGITS" option.
88 (This option is switched on by default in the runDataReconstruction.C macro.)
89 The macro, then, performs the clusterization on the fly and analyses data.
90 This was necessary since, normally, the clusters are saved in the AliESDs.root
91 but only for reconstructed tracks (which I guess will be very few in the cosmic run).
92 Re-performing clusterization is surely more time expensive, but (I guess) is the
93 only way to get information on all clusters even when no track is created.
96 <pre> $> cd $ALICE_ROOT/MUON
98 root[0] .L TestRecPoints.C+
99 root[1] TestRecPoints(runXYZ_c1);
102 It is also possible to check only tracker:
103 <pre> root[1] TestRecPoints("pathToData","outputDirectory",kOnlyTracker);
107 <pre> root[0] TestRecPoints("pathToData","outputDirectory",kOnlyTrigger);
110 \section cosmics_s5 Event display
114 This chapter is defined in the READMEcosmics.txt file.