Keep only digits from active TRU to compute trigger response (only relevant for MC)
authorguernane <guernane@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 7 Jun 2011 14:06:53 +0000 (14:06 +0000)
committerguernane <guernane@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 7 Jun 2011 14:06:53 +0000 (14:06 +0000)
EMCAL/AliEMCALTriggerElectronics.cxx

index aecd829..2b552ca 100644 (file)
@@ -120,6 +120,8 @@ void AliEMCALTriggerElectronics::Digits2Trigger(TClonesArray* digits, const Int_
                
                Bool_t isOK1 = geom->GetTRUFromAbsFastORIndex(id, iTRU, iADC);
                
+               if ((isOK1 && iTRU >= kNTRU) || !isOK1) continue;
+
                for (Int_t j = 0; j < digit->GetNSamples(); j++)
                {
                        Int_t time, amp;