]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDqaRecPoints.cxx
Fix Coverity defects
[u/mrichter/AliRoot.git] / TRD / AliTRDqaRecPoints.cxx
index 44d2d7c53d93724e89950855bc5ce7a308ff244e..cd71df2007bc7556330f641987adde4335afc06f 100644 (file)
@@ -59,6 +59,10 @@ AliTRDqaRecPoints::AliTRDqaRecPoints() :
   // Default constructor
   //
 
+  for (Int_t i = 0; i < 540; i++) {
+    fRefHist[i] = 0x0;
+  }
+
 }
 
 //____________________________________________________________________________ 
@@ -74,6 +78,10 @@ AliTRDqaRecPoints::AliTRDqaRecPoints(const AliTRDqaRecPoints &/*qa*/) :
   // Copy constructor
   //
 
+  for (Int_t i = 0; i < 540; i++) {
+    fRefHist[i] = 0x0;
+  }
+
 }
 
 //____________________________________________________________________________ 
@@ -87,7 +95,7 @@ void AliTRDqaRecPoints::Process(const char* filename)
   
   AliInfo("End of TRD cycle");
   
-  //if (task == AliQA::kRECPOINTS) {
+  //if (task == AliQAv1::kRECPOINTS) {
   
   TH1D *hist = new TH1D("fitHist", "", 200, -0.5, 199.5);
   //fHist->Print();
@@ -254,7 +262,7 @@ void AliTRDqaRecPoints::Init()
   
   // chamber by chamber
   for(Int_t i=0; i<18; i++) {
-    hist[14+i] = new TH2D(Form("qaTRD_recPoints_sigTime_sm%d",i), Form("sm%d;det;time bin"), 
+    hist[14+i] = new TH2D(Form("qaTRD_recPoints_sigTime_sm%d",i), Form("sm%d;det;time bin",i), 
                        30, -0.5, 29.5, 35, -0.5, 34.5);
     hist[14+i]->SetMinimum(20);
     hist[14+i]->SetMaximum(40);
@@ -263,7 +271,7 @@ void AliTRDqaRecPoints::Init()
   // time bin by time bin sm-by-sm
   for(Int_t i=0; i<18; i++) {
     hist[14+18+i] = new TH1D(Form("qaTRD_recPoints_sigTimeShape_sm%d", i), 
-                            Form("sm%d;time bin;signal"),
+                            Form("sm%d;time bin;signal",i),
                             35, -0.5, 34.5);
 
     hist[14+18+i]->SetMaximum(120);