]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALTriggerRawDigitMaker.cxx
bug in loop, wrong varialble in increment
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALTriggerRawDigitMaker.cxx
index ce0ebe95115b14809197af081e3652d5e7d2366b..5cda590ce82b550dea47dcbde6dec1a81afde2a6 100644 (file)
@@ -64,7 +64,7 @@ fTriggerData(0x0)
        // def ctor
        
        AliRunLoader* rl = AliRunLoader::Instance();
-       if (rl && rl->GetAliRun() && rl->GetAliRun()->GetDetector("EMCAL")) 
+       if (rl && rl->GetAliRun() && dynamic_cast<AliEMCAL*>(rl->GetAliRun()->GetDetector("EMCAL"))) 
                fGeometry = dynamic_cast<AliEMCAL*>(rl->GetAliRun()->GetDetector("EMCAL"))->GetGeometry();
        else 
        {
@@ -365,7 +365,7 @@ void AliEMCALTriggerRawDigitMaker::PostProcess()
                        
                        Int_t* idFastOR = new Int_t[sizePatchL0]; 
                        
-                       for (Int_t j = 0; j < sizePatchL0; i++) idFastOR[j] = -1;
+                       for (Int_t j = 0; j < sizePatchL0; j++) idFastOR[j] = -1;
                        
                        if (fGeometry->GetFastORIndexFromL0Index(iTRU, x, idFastOR, sizePatchL0))
                        {