]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
char * to TString
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 11 Jun 2007 17:13:25 +0000 (17:13 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 11 Jun 2007 17:13:25 +0000 (17:13 +0000)
ESDCheck/AliAnalysisTaskPt.cxx
ESDCheck/AliEMCALQATask.cxx
ESDCheck/AliFMDQATask.cxx
ESDCheck/AliHMPIDQATask.cxx
ESDCheck/AliMUONQATask.cxx
ESDCheck/AliPHOSQATask.cxx
ESDCheck/AliPMDQATask.cxx
ESDCheck/AliT0QATask.cxx
ESDCheck/AliTOFQATask.cxx
ESDCheck/AliTRDQATask.cxx
ESDCheck/AliVZEROQATask.cxx

index cf0d4b1fc902864102d7c00522d0e8f56aacf30a..8b140f9864c1c9d9635af7c06e2c7d7af55977cf 100644 (file)
@@ -27,6 +27,7 @@
 #include <TH1.h>
 #include <TROOT.h>
 #include <TSystem.h>
+#include <TString.h> 
 
 #include "AliAnalysisTaskPt.h"
 #include "AliESD.h"
@@ -150,11 +151,11 @@ void AliAnalysisTaskPt::Terminate(Option_t *)
 
   AliInfo(Form("!!! All the eps files are in %s.tar.gz !!!", GetName())) ;
  
-  char * report ; 
+  TString report ; 
   if(problem)
     report="Problems found, please check!!!";  
   else 
     report="OK";
   
-  AliInfo(Form("*** %s Summary Report: %s \n",GetName(), report)) ; 
+  AliInfo(Form("*** %s Summary Report: %s \n",GetName(), report.Data())) ; 
 }
index bbd6ad0517fec2730b433025c9101e0f7d9e20dd..b758736f86cf44db49e5e3bb1cea4b47fb6a99b2 100644 (file)
@@ -31,6 +31,7 @@
 #include <TNtuple.h>
 #include <TROOT.h>
 #include <TVector3.h> 
+#include <TString.h> 
 
 #include "AliEMCALQATask.h" 
 #include "AliESD.h" 
@@ -162,16 +163,16 @@ void AliEMCALQATask::Exec(Option_t *)
     if (caloCluster) {
       Float_t pos[3] ;
       if(caloCluster->GetClusterType() == AliESDCaloCluster::kClusterv1) {  
-       caloCluster->GetGlobalPosition(pos) ;
+       caloCluster->GetPosition(pos) ;
        fhEMCALPos->Fill(pos[0],pos[1],pos[2]) ;
-       fhEMCALEnergy->Fill(caloCluster->GetClusterEnergy()) ;
+       fhEMCALEnergy->Fill(caloCluster->E()) ;
        fhEMCALDigits->Fill(entry, caloCluster->GetNumberOfDigits()) ;
        numberOfEmcalClustersv1++ ;
        numberOfDigitsInEmcal += caloCluster->GetNumberOfDigits() ;    
        // Float_t * pid = clus->GetPid() ;
        // if(pid[AliPID::kPhoton]>0.9){
        emcalVector[numberOfPhotonsInEmcal] = new TVector3(pos[0],pos[1],pos[2]) ;
-       emcalPhotonsEnergy[numberOfPhotonsInEmcal] = caloCluster->GetClusterEnergy() ;
+       emcalPhotonsEnergy[numberOfPhotonsInEmcal] = caloCluster->E() ;
        numberOfPhotonsInEmcal++ ; 
       }
     }
@@ -275,11 +276,11 @@ void AliEMCALQATask::Terminate(Option_t *)
  
   AliInfo(Form("!!! All the eps files are in %s.tar.gz !!!", GetName())) ;
 
-  char * report ; 
+  TString report ; 
   if(problem)
     report="Problems found, please check!!!";  
   else 
     report="OK";
 
-  AliInfo(Form("*** %s Summary Report: %s \n",GetName(), report)) ; 
+  AliInfo(Form("*** %s Summary Report: %s \n",GetName(), report.Data())) ; 
 }
index 9f19adfda2c60ac3d68186595b65bd37cbd7e28c..9ae3191359f774424746af514050db870614830d 100644 (file)
@@ -27,6 +27,7 @@
 #include <TFile.h> 
 #include <TH1D.h> 
 #include <TROOT.h>
+#include <TString.h> 
 
 #include "AliFMDQATask.h" 
 #include "AliESD.h" 
@@ -132,11 +133,12 @@ void AliFMDQATask::Exec(Option_t *)
     AliInfo(Form("%s ----> Processing event # %lld", currentFile->GetName(), entry)) ; 
            
   // ************************  FMD *************************************
-  
  AliESDFMD * fmd = fESD->GetFMDData() ;
-  
- //fmd->CheckNeedUShort(currentFile);
-
+ if ( ! fmd ) {
+   AliError("No FMD found in ESD") ; 
+   return ; 
+ }
+ fmd->CheckNeedUShort(currentFile);
   Int_t nFMD1 = 0, nFMD2i = 0, nFMD2o = 0, nFMD3i = 0, nFMD3o = 0 ;
   
   UShort_t detector = 1 ;
@@ -190,6 +192,9 @@ void AliFMDQATask::Terminate(Option_t *)
   // Processing when the event loop is ended
  
   fOutputContainer = (TObjArray*)GetOutputData(0);
+  if ( ! fOutputContainer ) 
+    return ; 
+
   fhFMD1i = (TH1D*)fOutputContainer->At(0);
   fhFMD2i = (TH1D*)fOutputContainer->At(1);
   fhFMD2o = (TH1D*)fOutputContainer->At(2);
index 1b8440c7c9cb8f934678933c8d16fff102aa59b1..87415d118a6ccb5f9f23997d2e3639cb150ab0b5 100644 (file)
@@ -30,6 +30,7 @@
 #include <TLegend.h> 
 #include <TROOT.h>
 #include <TVector3.h> 
+#include <TString.h> 
 
 #include "AliHMPIDQATask.h" 
 #include "AliESD.h" 
@@ -246,11 +247,11 @@ void AliHMPIDQATask::Terminate(Option_t *)
   
   AliInfo(Form("!!! All the eps files are in %s.tar.gz !!!", GetName())) ;
 
-  char * report ; 
+  TString report ; 
   if(problem)
     report="Problems found, please check!!!";  
   else 
     report="OK";
 
-  AliInfo(Form("*** %s Summary Report: %s \n",GetName(), report)) ; 
+  AliInfo(Form("*** %s Summary Report: %s \n",GetName(), report.Data())) ; 
 }
index fd9b0228f1632e4c05179c0b8b03e761048f132d..13e2b979ac09044c8b9e7e1baceb26f78be9f691 100644 (file)
@@ -32,6 +32,8 @@
 #include <TH1F.h>
 #include <TROOT.h>
 #include <TLorentzVector.h>
+#include <TString.h> 
+
 #include "AliMUONQATask.h" 
 #include "AliESD.h" 
 #include "AliLog.h"
@@ -375,11 +377,11 @@ void AliMUONQATask::Terminate(Option_t *)
     
     AliInfo(Form("!!! All the eps files are in %s.tar.gz !!!", GetName())) ;
  
-   char * report ; 
+   TString report ; 
    if(problem)
       report="Problems found, please check!!!";  
     else 
       report="OK";
     
-    AliInfo(Form("*** %s Summary Report: %s \n",GetName(), report)) ; 
+   AliInfo(Form("*** %s Summary Report: %s \n",GetName(), report.Data())) ; 
 }
index 72ccd2e9f5d9a1b60fd95fc493b6c86a3b163cf4..2f322652e98ccb6ab59e1952bc021176e1abc834 100644 (file)
@@ -31,6 +31,7 @@
 #include <TNtuple.h>
 #include <TROOT.h> 
 #include <TVector3.h> 
+#include <TString.h> 
 
 #include "AliPHOSQATask.h" 
 #include "AliESD.h" 
@@ -160,15 +161,15 @@ void AliPHOSQATask::Exec(Option_t *)
     AliESDCaloCluster * caloCluster = fESD->GetCaloCluster(phosCluster) ;
     if (caloCluster) {
       Float_t pos[3] ;
-      caloCluster->GetGlobalPosition( pos ) ;
-      fhPHOSEnergy->Fill( caloCluster->GetClusterEnergy() ) ;
+      caloCluster->GetPosition( pos ) ;
+      fhPHOSEnergy->Fill( caloCluster->E() ) ;
       fhPHOSPos->Fill( pos[0], pos[1], pos[2] ) ;
       fhPHOSDigits->Fill(entry, caloCluster->GetNumberOfDigits() ) ;
       numberOfDigitsInPhos += caloCluster->GetNumberOfDigits() ;
       Float_t * pid = caloCluster->GetPid() ;
       if(pid[AliPID::kPhoton] > 0.9) {
        phosVector[numberOfPhotonsInPhos] = new TVector3(pos[0],pos[1],pos[2]) ;
-       phosPhotonsEnergy[numberOfPhotonsInPhos]=caloCluster->GetClusterEnergy() ;
+       phosPhotonsEnergy[numberOfPhotonsInPhos]=caloCluster->E() ;
        numberOfPhotonsInPhos++;
       }
     }
@@ -273,11 +274,11 @@ void AliPHOSQATask::Terminate(Option_t *)
  
   AliInfo(Form("!!! All the eps files are in %s.tar.gz !!!", GetName())) ;
 
-  char * report ; 
+  TString report ; 
   if(problem)
     report="Problems found, please check!!!";  
   else 
     report="OK";
 
-  AliInfo(Form("*** %s Summary Report: %s \n",GetName(), report)) ; 
+  AliInfo(Form("*** %s Summary Report: %s \n",GetName(), report.Data())) ; 
 }
index 366b82eb35dc37ca42ca650db8a1ba16ac7102e5..bd714624e5565ce9c7566efbf65eab78a5ac35b6 100644 (file)
@@ -30,6 +30,7 @@
 #include <TLine.h> 
 #include <TROOT.h>
 #include <TStyle.h> 
+#include <TString.h> 
 
 #include "AliPMDQATask.h" 
 #include "AliPMDUtility.h" 
@@ -591,13 +592,13 @@ void AliPMDQATask::Terminate(Option_t *)
   
   AliInfo(Form("!!! All the eps files are in %s.tar.gz !!!", GetName())) ;
   
-  char * report ; 
+  TString report ; 
   if(problem)
     report="Problems found, please check!!!";  
   else 
     report="OK";
 
-  AliInfo(Form("*** %s Summary Report: %s \n",GetName(), report)) ; 
+  AliInfo(Form("*** %s Summary Report: %s \n",GetName(), report.Data())) ; 
 }
 
 //______________________________________________________________________________
index 3473248b42ab9bc8a98c2f913f9b793d5293ee94..28c977dbb1ecc6feae3265db2a0ce3719dbe05f2 100644 (file)
@@ -27,6 +27,7 @@
 #include <TH1F.h>
 #include <TLegend.h> 
 #include <TROOT.h>
+#include <TString.h> 
 
 #include "AliT0QATask.h" 
 #include "AliESD.h" 
@@ -179,11 +180,11 @@ void AliT0QATask::Terminate(Option_t *)
  
   AliInfo(Form("!!! All the eps files are in %s.tar.gz !!!", GetName())) ;
 
-  char * report ; 
+  TString report ; 
   if(problem)
     report="Problems found, please check!!!";  
   else 
     report="OK";
 
-  AliInfo(Form("*** %s Summary Report: %s\n",GetName(), report)) ; 
+  AliInfo(Form("*** %s Summary Report: %s\n",GetName(), report.Data())) ; 
 }
index a5011ab49240571e2257715b1fe799b839c3ad63..7057146a6e8212f81ff5d36b2f3e0b0df7ee1599 100644 (file)
@@ -32,6 +32,7 @@
 #include <TSpectrum.h>
 #include <TF1.h>
 #include <TROOT.h>
+#include <TString.h> 
 
 #include "AliTOFQATask.h" 
 #include "AliESD.h" 
@@ -697,12 +698,12 @@ void AliTOFQATask::Terminate(Option_t *)
   GetEfficiency();
   Bool_t problem = DrawHistos() ; 
 
-  char * report ; 
+  TString report ; 
   if(problem)
     report="Problems found, please check!!!";  
   else 
     report="OK";
 
-  AliInfo(Form("*** %s Summary Report: %s\n",GetName(), report)) ; 
+  AliInfo(Form("*** %s Summary Report: %s\n",GetName(), report.Data())) ; 
   
 }
index 3ffa0e912f522d2deab1e3de99a19dd801589c9c..e076a0e3234648ae885b72e71871d4ba7de524ae 100644 (file)
@@ -38,6 +38,7 @@
 #include <TH2D.h>
 #include <TROOT.h>
 #include <TStyle.h>
+#include <TString.h> 
 
 #include "AliTRDQATask.h"
 #include "AliESD.h"
@@ -417,13 +418,13 @@ void AliTRDQATask::Terminate(Option_t *)
   
   AliInfo(Form("!!! All the eps files are in %s.tar.gz !!!", GetName())) ;
 
-  char * report ; 
+  TString report ; 
   if(problem)
     report="Problems found, please check!!!";  
   else 
     report="OK";
 
-  AliInfo(Form("*** %s Summary Report: %s\n",GetName(), report)) ; 
+  AliInfo(Form("*** %s Summary Report: %s\n",GetName(), report.Data())) ; 
 
 }
 
index 0a4e68709f6dbe8064d5d9750ad4535c95a75cf5..1313d7294825a802d5f04b994cdb8f0abe19e100 100644 (file)
@@ -29,6 +29,7 @@
 #include <TLegend.h> 
 #include <TVector3.h> 
 #include <TFile.h> 
+#include <TString.h> 
 
 #include "AliVZEROQATask.h" 
 #include "AliESD.h" 
@@ -194,12 +195,12 @@ void AliVZEROQATask::Terminate(Option_t *)
  
   AliInfo(Form("!!! All the eps files are in %s.tar.gz !!! ", GetName())) ;
   
-  char * report ; 
+  TString report ; 
   if(problem)
     report="Problems found, please check!!!";  
   else 
     report="OK";
   
-  AliInfo(Form("*** %s Summary Report: %s\n",GetName(), report)) ; 
+  AliInfo(Form("*** %s Summary Report: %s\n",GetName(), report.Data())) ; 
   
 }