]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
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 aecd8296ca88059fd0d533171bf39eaf425ca3f0..2b552ca0a66b4a5f658f00ad613c71dbe4ae38d3 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;