#include "veto_psim.h" void ParseCommandLineArgs(int narg, char* argv[]); void Usage(void); int Ngen = 0; int Ndet = 0; int N0veto = 0; int N1veto = 0; int N2veto = 0; long int rSeed = 1; //----------------------------------------------------------------- // main() //----------------------------------------------------------------- int main(int narg, char* argv[]) { // Proccess command line ParseCommandLineArgs(narg, argv); srand48(rSeed); // initialize the random seed // Create a new PEvent_Loop object PEvent_Loop event_loop = PEvent_Loop(narg, argv); // Have the PEvent_Loop call my hist_book() and hist_end routines when the run number changes event_loop.RegisterBRUNProc(hist_book); event_loop.RegisterERUNProc(hist_end); // Process all events. Have the PEvent_Loop call my hist_fill routine every event // The PROCESS_ALL flag actually specifies which packages to run (tagger, ps, ...) event_loop.Run(hist_fill, PROCESS_ALL); cout<<"veto_psim Statistics"<