]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSPreprocessor.cxx
Bugfix: lowercase b should be upper case B for component id: TPCClusterFinder32Bit
[u/mrichter/AliRoot.git] / PHOS / AliPHOSPreprocessor.cxx
index c12dbd1a43553e4ea2c57f1cbf4e71695710bec5..4167dd8a45bb4ddd6b22a2c0c31ffc4c08d5dd42 100644 (file)
@@ -156,10 +156,10 @@ Bool_t AliPHOSPreprocessor::ProcessLEDRun()
       const Double_t nFiredCells = fFiredCells->GetMean();
       if(nFiredCells>100 && nFiredCells<600) { 
        firedOK = kTRUE;
-       Log(Form("Number of fired cells per event is %d.",nFiredCells));
+       Log(Form("Number of fired cells per event is %.1f.",nFiredCells));
       }
       else {
-       Log(Form("Number of fired cells per event is %d, possibly not a LED run!",nFiredCells));
+       Log(Form("Number of fired cells per event is %.1f, possibly not a LED run!",nFiredCells));
        firedOK = kFALSE;
       }
       
@@ -186,7 +186,7 @@ Bool_t AliPHOSPreprocessor::ProcessLEDRun()
            calibData.SetADCchannelEmc(mod+1,col+1,row+1,coeff);
          }
          else
-           calibData.SetADCchannelEmc(mod+1,col+1,row+1,1.);
+           calibData.SetADCchannelEmc(mod+1,col+1,row+1,0.005);
 
        }
       }
@@ -233,7 +233,7 @@ Float_t AliPHOSPreprocessor::HG2LG(Int_t mod, Int_t X, Int_t Z, TFile* f)
   gaus1->SetLineColor(kBlue);
   h1->Fit(gaus1,"LERQ+");
 
-  AliInfo(Form("%s: %d entries, mean=%.3f, peak=%.3f, rms= %.3f. HG/LG = %.3f\n",
+  AliInfo(Form("%s: %.1f entries, mean=%.3f, peak=%.3f, rms= %.3f. HG/LG = %.3f\n",
           h1->GetTitle(),h1->GetEntries(),h1->GetMean(),max,h1->GetRMS(),
           gaus1->GetParameter("Mean"))); 
 
@@ -330,11 +330,11 @@ Bool_t AliPHOSPreprocessor::DoFindBadChannelsEmc(Int_t system, TList* list, AliP
     const Double_t nFiredCells = fFiredCells->GetMean();
 
     if(nFiredCells<100. || nFiredCells>600. ) {
-      Log(Form("Number of fired cells per event is %d, possibly not a LED run!",nFiredCells));
+      Log(Form("Number of fired cells per event is %.1f, possibly not a LED run!",nFiredCells));
       continue; // not a LED run!
     }
     
-    Log(Form("Number of fired cells per event %d. Begin check for bad channels.",nFiredCells));
+    Log(Form("Number of fired cells per event %.1f. Begin check for bad channels.",nFiredCells));
     
     for(Int_t mod=0; mod<5; mod++) {
       for(Int_t iX=0; iX<64; iX++) {
@@ -546,13 +546,13 @@ Bool_t AliPHOSPreprocessor::DoCalibrateEmc(Int_t system, TList* list, const AliP
            h1->GetXaxis()->SetRange(10,1000); //to cut off saturation peak and noise
            coeff = h1->GetMean()/refMean;
            if(coeff>0)
-             calibData.SetADCchannelEmc(mod+1,col+1,row+1,1./coeff);
+             calibData.SetADCchannelEmc(mod+1,col+1,row+1,0.005/coeff);
            else 
-             calibData.SetADCchannelEmc(mod+1,col+1,row+1,1.);
+             calibData.SetADCchannelEmc(mod+1,col+1,row+1,0.005);
            AliInfo(Form("mod %d col %d row %d  coeff %f\n",mod,col,row,coeff));
          }
          else
-           calibData.SetADCchannelEmc(mod+1,col+1,row+1,1.); 
+           calibData.SetADCchannelEmc(mod+1,col+1,row+1,0.005); 
        }
       }
     }