#include #include #include #include #include "ISlowControlDatabase.hxx" #include "ITPCSparkCounter.hxx" void help(){ std::cout << "Usage:"<SetStyle("Pub"); int syear=0; int smonth=0; int sday=0; int shour=0; int smin=0; int ssec=0; int eyear=0; int emonth=0; int eday=0; int ehour=0; int emin=0; int esec=0; int adt=48*3600; //48 hours in seconds int maxsamples=-1; bool makeplots=false; bool verbose=false; // ***** process command line arguments ... Int_t i=1; while ( i < argc ) { if ( strcmp(argv[i],"-h") == 0 || argc < 14 ) { help(); exit(1); } else if ( strcmp(argv[i],"-m") == 0 ) { maxsamples = atoi( argv[++i] ); } else if ( strcmp(argv[i],"-i") == 0 ) { adt = atoi( argv[++i] ); } else if ( strcmp(argv[i],"-p") == 0 ) { makeplots = true; } else if ( strcmp(argv[i],"-v") == 0 ) { verbose = true; } else if ( strcmp(argv[i],"-e") == 0 ) { eyear = atoi( argv[++i] ); emonth = atoi( argv[++i] ); eday = atoi( argv[++i] ); ehour = atoi( argv[++i] ); emin = atoi( argv[++i] ); esec = atoi( argv[++i] ); } else if ( strcmp(argv[i],"-s") == 0 ) { syear = atoi( argv[++i] ); smonth = atoi( argv[++i] ); sday = atoi( argv[++i] ); shour = atoi( argv[++i] ); smin = atoi( argv[++i] ); ssec = atoi( argv[++i] ); } i++; } if ( syear==0 || eyear==0 ){ std::cout<<"ERROR. One of date parameters missing."<