The header file
[purschke@phoncsa]$ cat p_ex1.h
int process_event (Event *e); //++CINT
By making the process_event routine cint-visible, we give ourselves the possibility to call it “by hand” for debugging purposes.
This what I typed yesterday:
CINT/ROOT C/C++ Interpreter version 5.14.10, Jul 20 1999
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0] gSystem->Load("libp_ex1.so");
root [1] Eventiterator *xx = new fileEventiterator("test.evt");
root [2] Event *evt = xx->getNextEvent();
root [3] evt->identify();
-- Event 1 Run: 1331 length: 68 frames: 1 type: 1 (Data Event)
root [4] process_event(evt);
Then, without recompiling or changing anything, you can run it as a background thread.