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.
10 // To run this macro in batch, just do
12 // root -b -q icextalk.cc
14 // For more details see the docs of class IceXtalk
16 // NvE 20-sep-2005 Utrecht University
17 //////////////////////////////////////////////////////////
19 gSystem->Load("ralice");
20 gSystem->Load("icepack");
21 gSystem->Load("iceconvert");
23 // Interactively compile and load the EvtAna.cxx code
24 gROOT->LoadMacro("EvtAna.cxx+");
26 // The database loading job (needed for the Xtalk constants)
27 IceCal2Root cal("IceCal2Root","Calibration format conversion");
28 cal.SetAmacalibFile("amacalib_amanda2_2003.txt");
31 AliObjMatrix* omdb=cal.GetOMdbase();
33 // The Xtalk correction processor task
34 IceXtalk xtalk("IceXtalk","Cross talk correction");
35 xtalk.SetOMdbase(omdb);
36 xtalk.SetMinProb(0.5);
39 // The event analysis task
40 EvtAna evtana("evtana","Event analysis");
42 // The F2K event data processing job
43 IceF2k q("IceF2k","Processing of the F2K event data");
46 q.SetInputFile("real-reco.f2k");
48 // Add the Xtalk and EvtAna processors as subtasks to the F2K job
52 // Perform the conversion