#include "TRootanaEventLoop.hxx"#include "XmlOdb.h"#include "TPeriodicClass.hxx"#include "MainWindow.hxx"#include <TSystem.h>#include <TROOT.h>#include <TH1D.h>#include <stdio.h>#include <sys/time.h>#include <iostream>#include <assert.h>#include <signal.h>
Go to the source code of this file.
Functions | |
| void | PrintCurrentStats () |
Variables | |
| struct timeval | raLastTime |
| Little function for printing the number of processed events and processing rate. | |
| int | raTotalEventsProcessed = 0 |
| void PrintCurrentStats | ( | ) |
Definition at line 30 of file TRootanaEventLoop.cxx.
References raLastTime, and raTotalEventsProcessed.
Referenced by TRootanaEventLoop::ProcessMidasFile().
00030 { 00031 00032 if((raTotalEventsProcessed%500)==0){ 00033 if(raTotalEventsProcessed==0){ 00034 gettimeofday(&raLastTime, NULL); 00035 printf("Processed %d events.\n",raTotalEventsProcessed); 00036 }else{ 00037 00038 struct timeval nowTime; 00039 gettimeofday(&nowTime, NULL); 00040 00041 double dtime = nowTime.tv_sec - raLastTime.tv_sec + (nowTime.tv_usec - raLastTime.tv_usec)/1000000.0; 00042 double rate = 0; 00043 if (time !=0) 00044 rate = 500.0/(dtime); 00045 printf("Processed %d events. Analysis rate = %f events/seconds. \n",raTotalEventsProcessed,rate); 00046 gettimeofday(&raLastTime, NULL); 00047 } 00048 } 00049 00050 raTotalEventsProcessed++; 00051 00052 }

| struct timeval raLastTime |
Little function for printing the number of processed events and processing rate.
Definition at line 28 of file TRootanaEventLoop.cxx.
Referenced by PrintCurrentStats().
| int raTotalEventsProcessed = 0 |
Definition at line 29 of file TRootanaEventLoop.cxx.
Referenced by PrintCurrentStats().
1.6.1