/**************************************************************************
- * This file is property of and copyright by the ALICE HLT Project *
+ * This file is property of and copyright by the ALICE HLT Project *
* All rights reserved. *
* *
* Primary Authors: *
* without fee, provided that the above copyright notice appears in all *
* copies and that both the copyright notice and this permission notice *
* appear in the supporting documentation. The authors make no claims *
- * about the suitability of this software for any purpose. It is *
+ * about the suitability of this software for any purpose. It is *
* provided "as is" without express or implied warranty. *
**************************************************************************/
"Missing parameter",
"Expected one of 'left', 'right' or 'all' after '-plane'."
);
- return EINVAL;
+ return -EINVAL;
}
if (strcmp(argv[i], "left") == 0)
fSelection = kLeftPlane;
" 'right' or 'all'.",
argv[i]
);
- return EINVAL;
+ return -EINVAL;
}
}
else if (strcmp(argv[i], "-chamber") == 0)
"Expected a chamber number, range eg. '1-10' or list eg."
" '1,2,3' after '-chamber'."
);
- return EINVAL;
+ return -EINVAL;
}
int result = ParseChamberString(argv[i]);
if (result != 0) return result;
if (i >= argc)
{
HLTError("Expected a positive number after -firstevent.");
- return EINVAL;
+ return -EINVAL;
}
char* end = "";
long num = strtol(argv[i], &end, 0);
if (*end != '\0' or num < 0) // Check if the conversion is OK.
{
- HLTError(Form(
+ HLTError(
"Expected a positive number after -firstevent"
" but got: %s", argv[i]
- ));
- return EINVAL;
+ );
+ return -EINVAL;
}
fCurrentEventIndex = Int_t(num);
firstEventSet = true;
"The argument '%s' is invalid.",
argv[i]
);
- return EINVAL;
+ return -EINVAL;
}
}
"Invalid arguments",
"Cannot have both -simdata and -recdata set."
);
- return EINVAL;
+ return -EINVAL;
}
if (not simdata and not recdata)
"Missing arguments",
"Must have either -simdata or -recdata specified."
);
- return EINVAL;
+ return -EINVAL;
}
if (not chamberWasSet)
"Out of memory",
"Not enough memory to allocate AliMUONMCDataInterface."
);
- return ENOMEM;
+ return -ENOMEM;
}
}
else if (recdata)
"Out of memory",
"Not enough memory to allocate AliMUONDataInterface."
);
- return ENOMEM;
+ return -ENOMEM;
}
}
sizeof(AliHLTComponentEventData)
);
size = 0; // Important to tell framework that nothing was generated.
- return EINVAL;
+ return -EINVAL;
}
// Use the fEventID as the event number to load if fCurrentEventIndex == -1,
maxevent
);
size = 0; // Important to tell framework that nothing was generated.
- return EINVAL;
+ return -EINVAL;
}
// Create and initialise a new data block.
block.BufferSize()
);
size = 0; // Important to tell framework that nothing was generated.
- return ENOBUFS;
+ return -ENOBUFS;
}
// Initialise the DDL list containing the DDLs which contributed to the
block.BufferSize()
);
size = 0; // Important to tell framework that nothing was generated.
- return ENOBUFS;
+ return -ENOBUFS;
}
rechit->fX = hit->Xref();
block.BufferSize()
);
size = 0; // Important to tell framework that nothing was generated.
- return ENOBUFS;
+ return -ENOBUFS;
}
rechit->fX = cluster->GetX();
"Neither AliMUONDataInterface nor AliMUONMCDataInterface were created."
);
size = 0; // Important to tell framework that nothing was generated.
- return EFAULT;
+ return -EFAULT;
}
AliHLTComponentBlockData bd;
"Expected a number in the range [1..%d] but got '%s'.",
AliMUONConstants::NTrackingCh(), current
);
- return EINVAL;
+ return -EINVAL;
}
if (chamber < 1 or AliMUONConstants::NTrackingCh() < chamber)
{
"Got the chamber number %d which is outside the valid range of [1..%d].",
chamber, AliMUONConstants::NTrackingCh()
);
- return EINVAL;
+ return -EINVAL;
}
// Skip any whitespace after the number
" or end of line but got '%c' at character %d.",
str, *end, (int)(end - str) +1
);
- return EINVAL;
+ return -EINVAL;
}
// Set the range of chambers to publish for.
/**************************************************************************
- * This file is property of and copyright by the ALICE HLT Project *
+ * This file is property of and copyright by the ALICE HLT Project *
* All rights reserved. *
* *
* Primary Authors: *
* without fee, provided that the above copyright notice appears in all *
* copies and that both the copyright notice and this permission notice *
* appear in the supporting documentation. The authors make no claims *
- * about the suitability of this software for any purpose. It is *
+ * about the suitability of this software for any purpose. It is *
* provided "as is" without express or implied warranty. *
**************************************************************************/
"Missing parameter",
"Expected one of 'left', 'right' or 'all' after '-plane'."
);
- return EINVAL;
+ return -EINVAL;
}
if (strcmp(argv[i], "left") == 0)
fSelection = kLeftPlane;
" 'right' or 'all'.",
argv[i]
);
- return EINVAL;
+ return -EINVAL;
}
}
else if (strcmp(argv[i], "-firstevent") == 0)
if (i >= argc)
{
HLTError("Expected a positive number after -firstevent.");
- return EINVAL;
+ return -EINVAL;
}
char* end = "";
long num = strtol(argv[i], &end, 0);
"Expected a positive number after -firstevent"
" but got: %s", argv[i]
));
- return EINVAL;
+ return -EINVAL;
}
fCurrentEventIndex = Int_t(num);
firstEventSet = true;
"The argument '%s' is invalid.",
argv[i]
);
- return EINVAL;
+ return -EINVAL;
}
}
"Missing arguments",
"Must have one and only one of -hitdata, -simdata or -recdata specified."
);
- return EINVAL;
+ return -EINVAL;
}
// Must load the mapping data for AliMpTriggerCrate::GetDdlId() //TODO AliMpTriggerCrate => AliMpDetElement
"Out of memory",
"Not enough memory to allocate AliMUONMCDataInterface."
);
- return ENOMEM;
+ return -ENOMEM;
}
}
else if (recdata)
"Out of memory",
"Not enough memory to allocate AliMUONDataInterface."
);
- return ENOMEM;
+ return -ENOMEM;
}
}
sizeof(AliHLTComponentEventData)
);
size = 0; // Important to tell framework that nothing was generated.
- return EINVAL;
+ return -EINVAL;
}
// Use the fEventID as the event number to load if fCurrentEventIndex == -1,
maxevent
);
size = 0; // Important to tell framework that nothing was generated.
- return EINVAL;
+ return -EINVAL;
}
// Create and initialise a new data block.
block.BufferSize()
);
size = 0; // Important to tell framework that nothing was generated.
- return ENOBUFS;
+ return -ENOBUFS;
}
// Initialise the DDL list containing the DDLs which contributed to the
block.BufferSize()
);
size = 0; // Important to tell framework that nothing was generated.
- return ENOBUFS;
+ return -ENOBUFS;
}
// Fill the new trigger record with the hit information.
"Neither AliMUONDataInterface nor AliMUONMCDataInterface were created."
);
size = 0; // Important to tell framework that nothing was generated.
- return EFAULT;
+ return -EFAULT;
}
AliHLTComponentBlockData bd;