]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSIhepAnalyze.cxx
Modified destructor of AliMuonForwardTrack
[u/mrichter/AliRoot.git] / PHOS / AliPHOSIhepAnalyze.cxx
index 5b3723a6e138645555296906b26e90ccbfe70c80..83e7bc654a815ba5712d404841bc71de1e4a5d81 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();
     
@@ -782,19 +782,23 @@ void AliPHOSIhepAnalyze::HitsCPV(Int_t nev)
 {
   // Cumulative list of charged CPV impacts in event nev.
 
-  TList * fCpvImpacts ;
-  TBranch * branchCPVimpacts;
-
   AliPHOSLoader* please = dynamic_cast<AliPHOSLoader*>(fRunLoader->GetLoader("PHOSLoader"));
   if ( please == 0 )
    {
      AliError(Form("Could not obtain the Loader object !"));
      return ;
    }
-  AliPHOSGeometry * phosgeom =  AliPHOSGeometry::GetInstance() ;
 
      
   printf("\n=================== Event %10d ===================\n",nev);
+  //16.03.2011: DP. Code below seems to be obsollete
+  //Comment it to sutisfy Coverity
+/* 
+  TList * fCpvImpacts ;
+  TBranch * branchCPVimpacts;
+
+  AliPHOSGeometry * phosgeom =  AliPHOSGeometry::GetInstance() ;
+
   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;