bug in loop, wrong varialble in increment
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 15 Oct 2010 13:12:15 +0000 (13:12 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 15 Oct 2010 13:12:15 +0000 (13:12 +0000)
EMCAL/AliEMCALTriggerRawDigitMaker.cxx

index ce0ebe9..5cda590 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))
                        {