]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ZDC/AliZDCDigitizer.cxx
create fill histograms with DCA cut when not applied before in the reader
[u/mrichter/AliRoot.git] / ZDC / AliZDCDigitizer.cxx
index 56ccb7831df2f7a37705933b47fa0bd9eae29ea4..73209002498a137b178e5f359c7be1983c71c3cd 100644 (file)
@@ -468,15 +468,15 @@ void AliZDCDigitizer::ReadPMTGains()
        read = fscanf(fdata,"%f ",&data[ic]);
        if(read==0) AliDebug(3, " Error in reading PMT gains from external file ");
     }
-    beam[ir] = data[0];
-    det[ir] = data[1];
+    beam[ir] = (int) (data[0]);
+    det[ir]  = (int) (data[1]);
     gain[ir] = data[2];
     aEne[ir] = data[3];
     bEne[ir] = data[4];
   }
   fclose(fdata);
   
-  if(((fBeamType.CompareTo("P-P")) == 0)){
+  if(((fBeamType.CompareTo("P-P")) == 0) || ((fBeamType.CompareTo("p-p")) == 0)){
     for(int i=0; i<12; i++){
       if(beam[i]==0 && fBeamEnergy!=0.){
         if(det[i]!=31 && det[i]!=32){