]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Improving handling of error state.
authoraszostak <aszostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 15 Mar 2010 10:25:58 +0000 (10:25 +0000)
committeraszostak <aszostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 15 Mar 2010 10:25:58 +0000 (10:25 +0000)
HLT/trigger/AliHLTTrigger.cxx

index f248be39bd3226808bc05db036de08fa86245e64..2235c46383b8cad423fb23dc735e33a538387744 100644 (file)
@@ -136,6 +136,8 @@ int AliHLTTrigger::TriggerEvent(
   // Sets a custom trigger decision for the current event.
   // See header file for more details.
   
+  if (fTriggerEventResult != 0) return fTriggerEventResult;  // Do not do anything if a previous call failed.
+  
   AliHLTReadoutList readoutlist = result->ReadoutList();
   // mask the readout list according to the CTP trigger
   // if the classes have been initialized (mask non-zero)
@@ -147,7 +149,6 @@ int AliHLTTrigger::TriggerEvent(
     result->ReadoutList(readoutlist); // override the readout list with the masked one.
   }
   
-  if (fTriggerEventResult != 0) return fTriggerEventResult;  // Do not do anything if a previous call failed.
   fTriggerEventResult = PushBack(result, type, spec);
   if (fTriggerEventResult == 0) {
     fTriggerEventResult = PushBack(readoutlist.Buffer(), readoutlist.BufferSize(), kAliHLTDataTypeReadoutList);