VZERO digits have to be unloaded, otherwise the trigger simulation can update the...
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 23 Jun 2010 23:18:15 +0000 (23:18 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 23 Jun 2010 23:18:15 +0000 (23:18 +0000)
TRD/AliTRDptrgFEB.cxx

index 7a56d7e..aad1fe3 100644 (file)
@@ -159,6 +159,7 @@ Int_t AliTRDptrgFEB::LoadDigits()
 
       if (position == -1)   {
         AliError("Wrong VZERO pmt position found");
+       loader->UnloadDigits();
         return -1;
       }
 
@@ -180,7 +181,7 @@ Int_t AliTRDptrgFEB::LoadDigits()
     }
 
     AliDebug(5, Form("inputVector: 0x%x", inputVector));
-    
+    loader->UnloadDigits();
     return inputVector;
   }
   else if (this->fType == kTZERO) {