+ i += 2;
+ } else if (argument.CompareTo("-maxeventtime") == 0) { // max average processing time in us
+ if (i + 1 == argc) {
+ HLTError("Numeric value for '-maxeventtime' is expected");
+ return -EPROTO;
+ }
+
+ const Int_t time = TString(argv[i + 1]).Atoi();
+ if (time < 0) {
+ HLTError("Bad value for '-maxeventtime' argument: %d", time);
+ return -EPROTO;
+ }
+
+ fMaxEventTime = time;
+
+ i += 2;
+ } else if (argument.CompareTo("-forced-events") == 0) { // number of forced events
+ if (i + 1 == argc) {
+ HLTError("Numeric value for '-forced-events' is expected");
+ return -EPROTO;
+ }
+
+ const Int_t count = TString(argv[i + 1]).Atoi();
+ if (count < 0) {
+ HLTError("Bad value for '-forced-events' argument: %d", count);
+ return -EPROTO;
+ }
+
+ fNofEventsForce = count;
+ fForcedEventsCount=0;
+
+ i += 2;
+ } else if (argument.CompareTo("-ignore-cycletime") == 0) { // ignore cycle time for n sec
+ if (i + 1 == argc) {
+ HLTError("Numeric value for '-ignore-cycletime' is expected");
+ return -EPROTO;
+ }
+
+ const Int_t time = TString(argv[i + 1]).Atoi();
+ if (time < 0) {
+ HLTError("Bad value for '-ignore-cycletime' argument: %d", time);
+ return -EPROTO;
+ }
+
+ fIgnoreCycleTime = time;
+ i += 2;
+ } else if (argument.CompareTo("-maxmemory") == 0) { // maximum of memory in kByte to be used by the component
+ if (i + 1 == argc) {
+ HLTError("Numeric value for '-maxmemory' is expected");
+ return -EPROTO;
+ }
+
+ const Int_t mem = TString(argv[i + 1]).Atoi();
+ if (mem < 0) {
+ HLTError("Bad value for '-maxmemory' argument: %d", time);
+ return -EPROTO;
+ }
+
+ fMaxMemory = mem;
+ i += 2;
+ } else if (argument.CompareTo("-cycletime-factor") == 0) { // weight factor for cycle time
+ if (i + 1 == argc) {
+ HLTError("Numeric value for '-cycletime-factor' is expected");
+ return -EPROTO;
+ }
+
+ const Float_t factor = TString(argv[i + 1]).Atof();
+ if (factor < 0) {
+ HLTError("Bad value for '-cycletime-factor' argument: %f", factor);
+ return -EPROTO;
+ }
+
+ fCycleTimeFactor = factor;