Example file to read 1 event and plot the content of a full AGET chip.
It can be executed in a ROOT session with:
* [ROOT] .L ReadRCoBo.C
* [ROOT] RCoBoPlotAGet ( "../../data/RCoBo/CoBo_baseline.graw", 1, 17 );
*
void RCoBoPlotAGet ( const string & data_file, int evt, int aget_id )
{
GSetVerboseLevel(6);
u_int n = 512;
double dt = 0.01;
bool event_ok = true;
for (int i = 0; i < evt; ++i)
{
int res = get.ReadEvent ( false );
if (res != 0)
{ event_ok = false; i = evt; }
}
get.CloseRunFile ( );
if (event_ok)
{
GETAGet * aget = &
get[0][0][aget_id];
GETPlotAGet ( *aget );
}
else
GLogWarning ( "PlotAGet: it seems that event #" + GGetString(evt)
+ " does not exist" );
}