]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDTriggerL0.cxx
Fix for proper PID configuration for both sets of cuts
[u/mrichter/AliRoot.git] / TRD / AliTRDTriggerL0.cxx
index 88f7f0c1f8a0fb9a4c9575460c87c94e5de6527c..cc69271ed3534cc77ed93e4d3174f91c1c38f33e 100644 (file)
@@ -70,26 +70,29 @@ void AliTRDTriggerL0::Trigger()
 
   Int_t* simulationResult;
   simulationResult = ptrgCBB->Simulate();
+  if (!simulationResult) {
+    return;
+  }
   for (Int_t iResult = 1; iResult <= simulationResult[0]; iResult++) {
     AliDebug(5, Form("Result[%d]=0x%x\n",iResult,simulationResult[iResult]));
   }
-  if (simulationResult[0] > 0) { 
+  if ((simulationResult[0] > 0) || (simulationResult[1] > 0)) {
     AliInfo("Fired single gap trigger");
     SetInput("0HSG");
   }
 
-  if (simulationResult[1] > 0) {
+  if (simulationResult[2] > 0) {
     AliInfo("Fired  double gap trigger");
     SetInput("0HDG");
   }
-  if (simulationResult[2] > 0) {
+
+  if (simulationResult[3] > 0) {
     AliInfo("Fired TRD wake up call trigger");
     SetInput("0HWU");
   }
 
   delete ptrgCBB;
-  if (simulationResult != 0x0)
-    delete[] simulationResult;
+  delete[] simulationResult;
   simulationResult = 0x0;
 
   AliDebug(5, Form("memory state: %d", param->CheckVariables()));