]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RALICE/icepack/macros/icextalk.cc
20-sep-2005 NvE Dummy values 0 set for KAPPA-ADC and KAPPA-TOT for OMs in IceCal2Root
[u/mrichter/AliRoot.git] / RALICE / icepack / macros / icextalk.cc
1 //////////////////////////////////////////////////////////
2 // Example macro to demonstrate the usage of the IceXtalk
3 // processor for cross talk correction as a subtask of
4 // an F2K conversion job. The macro also shows how one
5 // can interactively invoke one or more subtasks
6 // (i.e. EvtAna.cxx) to be executed.
7 // The latter is very convenient in developing/testing
8 // new reconstruction/analysis algorithms.
9 //
10 // To run this macro in batch, just do
11 //
12 // root -b -q icextalk.cc
13 //
14 // For more details see the docs of class IceXtalk
15 //
16 // NvE 20-sep-2005 Utrecht University
17 //////////////////////////////////////////////////////////
18 {
19  gSystem->Load("ralice");
20  gSystem->Load("icepack");
21  gSystem->Load("iceconvert");
22
23  // Interactively compile and load the EvtAna.cxx code
24  gROOT->LoadMacro("EvtAna.cxx+");
25
26  // The database loading job (needed for the Xtalk constants)
27  IceCal2Root cal("IceCal2Root","Calibration format conversion");
28  cal.SetAmacalibFile("amacalib_amanda2_2003.txt");
29  cal.ExecuteJob();
30
31  AliObjMatrix* omdb=cal.GetOMdbase();
32
33  // The Xtalk correction processor task
34  IceXtalk xtalk("IceXtalk","Cross talk correction");
35  xtalk.SetOMdbase(omdb);
36  xtalk.SetMinProb(0.5);
37  xtalk.SetXtalkPE(1);
38
39  // The event analysis task
40  EvtAna evtana("evtana","Event analysis");
41
42  // The F2K event data processing job
43  IceF2k q("IceF2k","Processing of the F2K event data");
44  q.SetMaxEvents(10);
45  q.SetPrintFreq(0);
46  q.SetInputFile("real-reco.f2k");
47
48  // Add the Xtalk and EvtAna processors as subtasks to the F2K job
49  q.Add(&xtalk);
50  q.Add(&evtana);
51
52  // Perform the conversion
53  q.ExecuteJob();
54 }