AliDebugStream(2) << keyword << endl;
if (keyword != fgkSectorKeyword) {
- Fatal("ReadSectorData", "Wrong file format.");
+ AliErrorStream() << "Wrong file format." << endl;
return;
}
direction = (directionStr == "Y") ? AliMp::kY : AliMp::kX;
AliDebugStream(2) << nofZones << " " << nofRows << endl;
+
+ if ( nofZones < 0 || nofRows < 0 ) {
+ AliErrorStream() << "Wrong nofZones/nofRows value." << endl;
+ return;
+ }
fSector = new AliMpSector("Not defined", nofZones, nofRows,direction,
offsetX, offsetY);
in >> nextKeyword;
if (nextKeyword != fgkZoneKeyword) {
- Fatal("ReadSectorData", "Wrong file format.");
+ AliErrorStream() << "Wrong file format." << endl;
return;
}
in >> nextKeyword;
if (nextKeyword != fgkSubZoneKeyword) {
- Fatal("ReadZoneData", "Wrong file format.");
+ AliErrorStream() << "Wrong file format." << endl;
return;
}
in >> nextKeyword;
if (nextKeyword != fgkRowKeyword) {
- Fatal("ReadSubZoneData", "Wrong file format.");
+ AliErrorStream() << "Wrong file format." << endl;
return;
}
ReadSubZoneData(in, zone);
}
else {
- Fatal("ReadRowSegmentsData", "Wrong file format.");
+ AliErrorStream() << "Wrong file format." << endl;
}
}
AliDebugStream(2) << keyword << endl;
if (keyword != fgkSectorSpecialKeyword) {
- Fatal("ReadSectorSpecialData", "Wrong file format.");
+ AliErrorStream() << "Wrong file format." << endl;
return;
}
AliDebugStream(2) << keyword << endl;
if (nextKeyword != fgkMotifKeyword) {
- Fatal("ReadSectorSpecialData", "Wrong file format.");
+ AliErrorStream() << "Wrong file format." << endl;
return;
}
while (nextKeyword == fgkMotifKeyword);
if (nextKeyword != fgkRowSpecialKeyword) {
- Fatal("ReadMotifSpecialData", "Wrong file format.");
+ AliErrorStream() << "Wrong file format." << endl;
return;
}
}
AliDebugStream(2) << nextKeyword << endl;
if (nextKeyword != fgkPadRowsKeyword) {
- Fatal("ReadRowSpecialData", "Wrong file format.");
+ AliErrorStream() << "Wrong file format." << endl;
return;
}
AliDebugStream(2) << nofPadRows << endl;
+ if ( nofPadRows < 0 ) {
+ AliErrorStream() << "Wrong nofPadRows value." << endl;
+ return;
+ }
+
TString keyword;
in >> keyword;
AliDebugStream(2) << keyword << endl;
if (keyword != fgkPadRowSegmentKeyword) {
- Fatal("ReadRowSegmentSpecialData", "Wrong file format.");
+ AliErrorStream() << "Wrong file format." << endl;
return;
}
AliMpVMotif* motif = fSector->GetMotifMap()->FindMotif(motifId);
if (!motif) {
- Fatal("ReadRowSegmentSpecialData", "Unknown motif.");
+ AliErrorStream() << "Unknown motif" << endl;
return;
}
ReadRowSpecialData(in, direction);
}
else {
- Fatal("ReadRowSegmentSpecialData", "Wrong file format.");
+ AliErrorStream() << "Wrong file format." << endl;
}
}