1 //////////////////////////////////////////////////////////
2 // Example macro to demonstrate the IceCal2Root facility
3 // and also shows how one can interactively invoke a
4 // subtask (i.e. Analyse.cxx) to be executed.
5 // The latter is very convenient in developing/testing
6 // new reconstruction/analysis algorithms.
8 // To run this macro in batch, just do
10 // root -b -q icecal2root.cc
12 // For more details see the docs of class IceCal2Root
14 // NvE 09-aug-2005 Utrecht University
15 //////////////////////////////////////////////////////////
17 gSystem->Load("ralice");
18 gSystem->Load("icepack");
19 gSystem->Load("iceconvert");
21 // Interactively compile and load the Analyse.cxx code
22 gROOT->LoadMacro("Analyse.cxx+");
24 IceCal2Root q("IceCal2Root","Calibration format conversion");
26 q.SetAmacalibFile("amacalib_amanda2_2003.txt");
27 q.SetOutputFile("cal2003.root");
29 // Add Analyse as a sub-task to the IceCal2Root job
30 Analyse ana("Analyse","OMDB analyser");