protection for module number against crash in QAMaker
authorbasanta <basanta@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 1 Nov 2009 03:56:38 +0000 (03:56 +0000)
committerbasanta <basanta@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 1 Nov 2009 03:56:38 +0000 (03:56 +0000)
PMD/AliPMDQADataMakerRec.cxx

index 00f8097..a38c222 100644 (file)
@@ -440,7 +440,11 @@ void AliPMDQADataMakerRec::MakeRaws(AliRawReader* rawReader)
            Int_t col = pmdddl->GetColumn();
            Int_t sig = pmdddl->GetSignal();
            
-           if (mcm == 0 || smn == -1) continue;
+           if (mcm == 0) continue;
+           if (det < 0 || det > 1)  continue;
+           if (smn < 0 || smn > 23) continue;
+           if (row < 0 || row > 47) continue;
+           if (col < 0 || col > 95) continue;
 
            if (det == 0)
            {