1 //////////////////////////////////////////////////////////
2 // Example macro to demonstrate usage of the IceCalibrate
3 // processor for various calibrations 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. IceXtalk and 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 icecalib.cc
14 // For more details see the docs of class IceCalibrate
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 calibration processor task
34 IceCalibrate calib("IceCalibrate","Signal calibration");
35 calib.SetOMdbase(omdb);
37 // The Xtalk correction processor task
38 IceXtalk xtalk("IceXtalk","Cross talk correction");
39 xtalk.SetOMdbase(omdb);
40 xtalk.SetMinProb(0.5);
43 // The event analysis task
44 EvtAna evtana("evtana","Event analysis");
46 // The F2K event data processing job
47 IceF2k q("IceF2k","Processing of the F2K event data");
50 q.SetInputFile("real-reco.f2k");
56 // Perform the conversion