]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALTriggerSTURawStream.cxx
add new parametrization for non linearity in MC - Evi
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALTriggerSTURawStream.cxx
index 4639e9fcf3c941e0dc05f89b4a02a82584a41bfb..a1e04eccae3e594db155d8d851fd2d0ff88dbf01 100644 (file)
@@ -38,6 +38,9 @@ namespace
        const Int_t kPayLoadSizeV2     = 390;        
 }
 
+using std::cout;
+using std::setw;
+using std::endl;
 ClassImp(AliEMCALTriggerSTURawStream)
 
 //_____________________________________________________________________________
@@ -474,7 +477,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 +491,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;