1 /////////////////////////////////////////////////
2 // Macro to test the IceF2k conversion job class
4 // To run this macro in batch, just do
6 // root -b -q icef2k.cc
8 // For more details see the docs of class IceF2k
10 // NvE 11-mar-2005 Utrecht University
11 /////////////////////////////////////////////////
13 gSystem->Load("ralice");
14 gSystem->Load("icepack");
15 gSystem->Load("iceconvert");
17 IceF2k q("IceF2k","Test of IceF2k conversion job");
19 // Limit the number of entries for testing
22 // Print frequency to produce a short summary print every printfreq events
25 // The F2K input filename
26 q.SetInputFile("run7825.f2k");
28 // Output file for the event structures
29 TFile* ofile=new TFile("events.root","RECREATE","F2K data in IceEvent structure");
30 q.SetOutputFile(ofile);
32 ///////////////////////////////////////////////////////////////////
33 // Here the user can specify his/her sub-tasks to be executed
34 // on an event-by-event basis after the IceEvent structure
35 // has been filled and before the data is written out.
36 // Sub-tasks (i.e. a user classes derived from TTask) are entered
39 // MyXtalk task1("task1","Cross talk correction");
40 // MyClean task2("task2","Hit cleaning");
44 // The sub-tasks will be executed in the order as they are entered.
45 ///////////////////////////////////////////////////////////////////
47 // Perform the conversion
50 // Select various objects to be added to the output file
52 AliObjMatrix* omdb=q.GetOMdbase();
53 if (omdb) omdb->Write();
55 AliDevice* fitdefs=q.GetFitdefs();
56 if (fitdefs) fitdefs->Write();
58 TDatabasePDG* pdg=q.GetPDG();
59 if (pdg) pdg->Write();