]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Coverity fixes
authorprsnko <prsnko@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 16 Mar 2011 17:33:10 +0000 (17:33 +0000)
committerprsnko <prsnko@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 16 Mar 2011 17:33:10 +0000 (17:33 +0000)
PHOS/AliPHOSIhepAnalyze.cxx

index 5b3723a6e138645555296906b26e90ccbfe70c80..dbbb241b1690c9a07c3a0d19fe29a9690f955eb0 100644 (file)
@@ -259,7 +259,7 @@ void AliPHOSIhepAnalyze::AnalyzeCPV1(Int_t Nevents)
   // Save histograms
 
   Text_t outputname[80] ;
-  sprintf(outputname,"%s.analyzed",GetFileName().Data());
+  snprintf(outputname,80,"%s.analyzed",GetFileName().Data());
   TFile output(outputname,"RECREATE");
   output.cd();
   
@@ -486,7 +486,7 @@ void AliPHOSIhepAnalyze::AnalyzeEMC1(Int_t Nevents)
   // Save histograms
 
   Text_t outputname[80] ;
-  sprintf(outputname,"%s.analyzed",GetFileName().Data());
+  snprintf(outputname,80,"%s.analyzed",GetFileName().Data());
   TFile output(outputname,"update");
   output.cd();
   
@@ -733,7 +733,7 @@ void AliPHOSIhepAnalyze::CpvSingle(Int_t nevents)
     }
        
   Text_t outputname[80] ;
-  sprintf(outputname,"%s.analyzed.single",GetFileName().Data());
+  snprintf(outputname,80,"%s.analyzed.single",GetFileName().Data());
   TFile output(outputname,"RECREATE");
   output.cd();
     
@@ -795,6 +795,10 @@ void AliPHOSIhepAnalyze::HitsCPV(Int_t nev)
 
      
   printf("\n=================== Event %10d ===================\n",nev);
+  //16.03.2011: DP. Code below seems to be obsollete
+  //Comment it to sutisfy Coverity
+/* 
+
   fRunLoader->GetEvent(nev);
   Int_t ntracks = fRunLoader->GetHeader()->GetNtrack();
     
@@ -843,6 +847,9 @@ void AliPHOSIhepAnalyze::HitsCPV(Int_t nev)
     printf("CPV module %d has %d hits\n",iModule,nsum);
   }
 
+*/
+
+
 //    TList * fCpvImpacts ;
 //    TBranch * branchCPVimpacts;
 //    AliPHOSImpact* impact;