Now we make the routines into commands
int process_event (Event *e); //++CINT
void h1enable(); //++CINT
void h1disable(); //++CINT
void h2enable(); //++CINT
void h2disable(); //++CINT
void h1status(); //++CINT
void h2status(); //++CINT
With the “//++CINT tag we make the routines visible to cint and can call them from the command prompt, setting the global variables accordingly.
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_ex2.so");
We can also use routines which take parameters, anything, so this is a very versatile tool to steer and configure our analysis.