]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PMD/AliPMDCalibGain.cxx
add new histos and bug fixes
[u/mrichter/AliRoot.git] / PMD / AliPMDCalibGain.cxx
index 2be6a383c7ec886f67205325777214fd3612621f..e800f59781c2c75e7452c16c28e88930fce8d155 100644 (file)
@@ -205,7 +205,7 @@ Int_t AliPMDCalibGain::ExtractHotChannel(const Char_t *rootFile)
                {
                  for (Int_t icol = 0; icol < kMaxCol; icol++)
                    {
-                     fHotFlag[idet][kMaxSMN][kMaxRow][kMaxCol] = 0.;
+                     fHotFlag[idet][ismn][irow][icol] = 0.;
                    }
                }
            }
@@ -245,11 +245,10 @@ void AliPMDCalibGain::ReadTempFile(const Char_t *tempFile)
 {
   // Read the variables from the file
   
-  //  fpw = fopen(tempFile,"r");
-  
   ifstream intmpfile;
   intmpfile.open(tempFile);
 
+  Int_t iddet = 0, issm = 0, irrow = 0, iccol = 0;
   Float_t smcount = 0., smiso = 0.;
   Float_t cellcount = 0., celliso = 0.;
 
@@ -258,8 +257,7 @@ void AliPMDCalibGain::ReadTempFile(const Char_t *tempFile)
     {
       for (Int_t ism = 0; ism < kMaxSMN; ism++)
        {
-         //fscanf(fpw,"%d %d %f %f",&idet,&ism,&smcount,&smiso);
-         intmpfile >> idet >> ism >> smcount >> smiso;
+         intmpfile >> iddet >> issm >> smcount >> smiso;
          fSMCount[idet][ism] = smcount;
          fSMIso[idet][ism]   = smiso;
        }
@@ -273,9 +271,7 @@ void AliPMDCalibGain::ReadTempFile(const Char_t *tempFile)
            {
              for (Int_t icol = 0; icol < kMaxCol; icol++)
                {
-                 //fscanf(fpw,"%d %d %d %d %f %f",&idet,&ism,&irow,&icol,
-                 //     &cellcount,&celliso);
-                 intmpfile >> idet >> ism >> irow >> icol 
+                 intmpfile >> iddet >> issm >> irrow >> iccol
                            >> cellcount >> celliso;
                  fCellCount[idet][ism][irow][icol] = cellcount;
                  fCellIso[idet][ism][irow][icol]   = celliso;
@@ -284,7 +280,7 @@ void AliPMDCalibGain::ReadTempFile(const Char_t *tempFile)
        }
     }
   
-  //fclose(fpw);
+
   intmpfile.close();
 
 }