]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSPulseGenerator.cxx
Coverity fix
[u/mrichter/AliRoot.git] / PHOS / AliPHOSPulseGenerator.cxx
index bdc52f9058678f278cac775407b4b7cd0f3547df..8be79d02cf1745c76dc712dab5a0849dc4181f42 100644 (file)
@@ -169,10 +169,10 @@ void AliPHOSPulseGenerator::AddPretriggerSamples(Int_t nPresamples)
 //-----------------------------------------------------------------------------
 void AliPHOSPulseGenerator::Digitize()
 {
-  // Emulates ADC: rounds down to nearest integer value all amplitudes
+  // Emulates ADC: rounds up to nearest integer value all amplitudes
   for (Int_t i=0; i<fkTimeBins; i++) {
-    fDataHG[i] = (Double_t) ((Int_t)fDataHG[i]);
-    fDataLG[i] = (Double_t) ((Int_t)fDataLG[i]);
+    fDataHG[i] = (Int_t)(fDataHG[i]);
+    fDataLG[i] = (Int_t)(fDataLG[i]);
   }
 }
 
@@ -288,8 +288,8 @@ void AliPHOSPulseGenerator::Draw(Option_t* opt)
   }
   if (strstr(opt,"LG") == 0){
     graphHG->Draw("AP");
-    graphHG->GetHistogram()->SetTitleOffset(1.6,"Y");
-    graphHG->GetHistogram()->SetXTitle("time, #musec");
+    graphHG->GetHistogram()->SetTitleOffset(1.0,"Y");
+    graphHG->GetHistogram()->SetXTitle("time, sec");
     graphHG->GetHistogram()->SetYTitle("Amplitude, ADC counts");
   }
   if (strstr(opt,"all")){
@@ -298,8 +298,8 @@ void AliPHOSPulseGenerator::Draw(Option_t* opt)
   }
   if (strstr(opt,"HG") == 0){
     graphLG->Draw("AP");
-    graphLG->GetHistogram()->SetTitleOffset(1.6,"Y");
-    graphLG->GetHistogram()->SetXTitle("time, #musec");
+    graphLG->GetHistogram()->SetTitleOffset(1.0,"Y");
+    graphLG->GetHistogram()->SetXTitle("time, sec");
     graphLG->GetHistogram()->SetYTitle("Amplitude, ADC counts");
   }
   c1->Update();