]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Correct handling of unsuccessful creation of raw-data reader.
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 12 Nov 2009 08:30:04 +0000 (08:30 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 12 Nov 2009 08:30:04 +0000 (08:30 +0000)
STEER/AliReconstruction.cxx

index e88e5c0ac558707380be40ab387d2b98e3aa85ee..3e240d45808c9d4d003741d90566c444336c98e7 100644 (file)
@@ -1250,8 +1250,14 @@ void AliReconstruction::InitRawReader(const char* input)
   // set the input in case of raw data
   if (input) fRawInput = input;
   fRawReader = AliRawReader::Create(fRawInput.Data());
-  if (!fRawReader)
-    AliInfo("Reconstruction will run over digits");
+  if (!fRawReader) {
+    if (fRawInput.IsNull()) {
+      AliInfo("Reconstruction will run over digits");
+    }
+    else {
+      AliFatal("Can not create raw-data reader ! Exiting..."); 
+    }
+  }
 
   if (!fEquipIdMap.IsNull() && fRawReader)
     fRawReader->LoadEquipmentIdsMap(fEquipIdMap);