]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Coverity
authorguernane <guernane@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 2 May 2012 08:29:21 +0000 (08:29 +0000)
committerguernane <guernane@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 2 May 2012 08:29:21 +0000 (08:29 +0000)
EMCAL/AliEMCALTriggerData.cxx
EMCAL/AliEMCALTriggerSTURawStream.cxx

index 8cc2090ff7ff172c589751f146d71d925dcc2bc3..835cdec3b2c801fc16c287627f76295f584ee1cb 100644 (file)
@@ -46,7 +46,7 @@ fL1RawData(0)
        fL1JetThreshold[0] = fL1JetThreshold[1] = 0;
        
        fL1V0[0] = fL1V0[1] = 0;
-       for (Int_t i = 0; i < 16; i++) fL1TriggerType[i] = 0;   
+       for (Int_t i = 0; i < 15; i++) fL1TriggerType[i] = 0;   
 }
 
 //_____________
index 4639e9fcf3c941e0dc05f89b4a02a82584a41bfb..36ee89fc3aa14539075a417abbe861b3d822a1bc 100644 (file)
@@ -474,7 +474,7 @@ Bool_t AliEMCALTriggerSTURawStream::GetL1GammaPatch(const Int_t i, const Int_t j
 {
        // L1 gamma patch indexes
        
-       if (j > 2 || i > fNL1GammaPatch[j]) return kFALSE;
+       if (j >= 2 || i > fNL1GammaPatch[j]) return kFALSE;
        
        tru =  fL1GammaPatchIndex[i][j] & 0x1F;
        col = (fL1GammaPatchIndex[i][j] & 0x3E0) >> 5;
@@ -488,7 +488,7 @@ Bool_t AliEMCALTriggerSTURawStream::GetL1JetPatch(const Int_t i, const Int_t j,
 {
        // L1 jet patch indexes
        
-       if (j > 2 || i > fNL1JetPatch[j]) return kFALSE;
+       if (j >= 2 || i > fNL1JetPatch[j]) return kFALSE;
        
        col =  fL1JetPatchIndex[i][j] & 0xFF;
        row = (fL1JetPatchIndex[i][j] & 0xFF00) >> 8;