in.getline(line, 255);
tmp = AliMpHelper::Normalize(line);
ULong_t addr;
- if (addr) nDarc++;
sscanf(tmp.Data(), "%lx", &addr);
+ if (addr) nDarc++;
SetSecondDarcVmeAddr(addr);
AliDebug(1, Form("Second Darc Vme Address: 0x%lx", addr));
UInt_t AliMUONGlobalCrateConfig::GetGlobalRegister(Int_t index) const
{
/// return global register for a given index
- if (index > fgkGlobalNofRegisters) {
+ if (index >= fgkGlobalNofRegisters) {
AliWarning("Index size too big for Global Register");
return 0;
} else
void AliMUONGlobalCrateConfig::SetGlobalRegister(Int_t index, UInt_t reg)
{
/// set Global register for a given index
- if (index > fgkGlobalNofRegisters) {
+ if (index >= fgkGlobalNofRegisters) {
AliWarning("Index size too big for Global Register");
return;
}
UInt_t AliMUONGlobalCrateConfig::GetFetRegister(Int_t index) const
{
/// return global register for a given index
- if (index > fgkFetNofRegisters) {
+ if (index >= fgkFetNofRegisters) {
AliWarning("Index size too big for Fet Register");
return 0;
} else
void AliMUONGlobalCrateConfig::SetFetRegister(Int_t index, UInt_t reg)
{
/// set Global register for a given index
- if (index > fgkFetNofRegisters) {
+ if (index >= fgkFetNofRegisters) {
AliWarning("Index size too big for Global Register");
return;
}