Pmonitor framework
TofOnlCalib* TofOnCalib = new TofOnlCalib();
TofMonitor* gs = new TofMonitor(); TofAddressObject* TofAddress = new TofAddressObject();
BbcEvent *bbcevent; // initial part
TofAddress>fetchFromFile( "/home/phnxtof/online/monitoring/ParFiles/071800/toffemmap.txt.year1", "/home/phnxtof/online/monitoring/ParFiles/071800/tofcablemap.txt");
int process_event (Event * e)
for ( int ifile=0; ifile ifile++ ) { prdfFile[ifile] = new char[150]; }
ifstream files(fileList,ios::in);
for(ifile=0; ifile ifile++){ files>>nfile>>prdfFile[ifile];
if(nfile==999){ cout<<"# of file is "<<IFILE<setPRDFFile(prdfFile[irun]);
int c = '/'; char *tmp = strrchr(prdfFile[irun], c);
gs->setRunName(tmp); gs->TofDataHandle(TofAddress,bbcevent); }
gs->TofMeanRms(TofAddress, TofMeanFile); // <----FEM check
gs->TofGetRunDep(RdepFile);
gs->TofMonClose(rootFile);
Initialize, get histo factory, book histograms, open files,etc.
Process an event, which is delivered by the framework