Bug in PMT gains corrected
authorcoppedis <coppedis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 19 Jul 2010 17:58:17 +0000 (17:58 +0000)
committercoppedis <coppedis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 19 Jul 2010 17:58:17 +0000 (17:58 +0000)
ZDC/AliZDCDigitizer.cxx
ZDC/AliZDCDigitizer.h

index 9fe90be..ba52ea1 100644 (file)
@@ -76,7 +76,7 @@ AliZDCDigitizer::AliZDCDigitizer(AliRunDigitizer* manager):
 {
   // Get calibration data
   if(fIsCalibration!=0) printf("\n\t AliZDCDigitizer -> Creating calibration data (pedestals)\n");
-  for(Int_t i=0; i<6; i++){
+  for(Int_t i=0; i<5; i++){
     for(Int_t j=0; j<5; j++)
        fPMGain[i][j] = 0.;
   }
@@ -102,7 +102,7 @@ AliZDCDigitizer::AliZDCDigitizer(const AliZDCDigitizer &digitizer):
 {
   // Copy constructor
 
-  for(Int_t i=0; i<6; i++){
+  for(Int_t i=0; i<5; i++){
      for(Int_t j=0; j<5; j++){
         fPMGain[i][j]   = digitizer.fPMGain[i][j];           
      }
@@ -170,9 +170,9 @@ Bool_t AliZDCDigitizer::Init()
     for(Int_t j = 0; j < 5; j++){
        fPMGain[0][j] = 50000./scalGainFactor;           
        fPMGain[1][j] = 100000./scalGainFactor;                  
+       fPMGain[2][j] = 100000./scalGainFactor;                  
        fPMGain[3][j] = 50000./scalGainFactor;           
-       fPMGain[4][j] = 100000./scalGainFactor;                  
-       fPMGain[5][j] = 100000./scalGainFactor;    
+       fPMGain[4][j] = 100000./scalGainFactor;    
     }
     AliInfo(Form("    PMT gains for Pb-Pb @ %1.0f+%1.0f A GeV: ZN(%1.0f), ZP(%1.0f), ZEM(%1.0f)\n",
        fBeamEnergy, fBeamEnergy, fPMGain[0][0], fPMGain[1][0], fPMGain[2][0]));
index b8ffa37..0a20249 100644 (file)
@@ -61,7 +61,7 @@ private:
                     Int_t Res) const;
   Int_t   Pedestal(Int_t Detector, Int_t Quadrant, Int_t Res) const;
 
-  Float_t fPMGain[6][5];       // PM gain
+  Float_t fPMGain[5][5];       // PM gain
   Float_t fADCRes[2];          // ADC conversion factors
   Int_t   fIsCalibration;      // !=0 if simulation creates calibration data
   Bool_t  fIsSignalInADCGate;   // true if signal in ADC gate