]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Bug fixed when filling a histogram for ESD (PID). Changing of title and labels for
authorzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 3 Apr 2009 17:20:08 +0000 (17:20 +0000)
committerzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 3 Apr 2009 17:20:08 +0000 (17:20 +0000)
a histogram for RecPoints (cluster map).

TOF/AliTOFQADataMaker.cxx
TOF/AliTOFQADataMakerRec.cxx

index 7275d25edfc722d3cc16c66d2fbe044e8e356520..dd9f79c06841be3fc2d53f5374465d7cb7313f67 100644 (file)
@@ -196,8 +196,10 @@ void AliTOFQADataMaker::InitRecPoints()
   h3->Sumw2() ;
   Add2RecPointsList(h3, 3, expert) ;
 
-  TH2F * h4  = new TH2F("hTOFRecPointsClusMap","RecPoints vs TOF eta-phi",183, -0.5, 182.5,865,-0.5,864.5) ; 
+  TH2F * h4  = new TH2F("hTOFRecPointsClusMap","RecPoints vs TOF phi-eta",183, -0.5, 182.5,865,-0.5,864.5) ; 
   h4->Sumw2() ;
+  h4->GetXaxis()->SetTitle("2*strip+padz (eta)");
+  h4->GetYaxis()->SetTitle("48*sector+padx (phi)");
   Add2RecPointsList(h4, 4, expert) ;
 
 }
@@ -227,7 +229,7 @@ void AliTOFQADataMaker::InitESDs()
   h3->Sumw2() ;
   Add2ESDsList(h3, 3, expert) ;
 
-  TH1F * h4 = new TH1F("hTOFESDsPID",    "Fraction of matched TOF tracks with good PID glag", 100, 0., 1.) ;  
+  TH1F * h4 = new TH1F("hTOFESDsPID",    "Fraction of matched TOF tracks with good PID flag", 101, 0., 101.) ;  
   h4->Sumw2() ; 
   Add2ESDsList(h4, 4, expert) ;
 }
@@ -550,7 +552,8 @@ void AliTOFQADataMaker::MakeESDs(AliESDEvent * esd)
     GetESDsData(0)->Fill(TMath::Log10(nentries)) ;
   }
 
-  if(ntof>0)GetESDsData(4)->Fill(ntofpid/ntof) ;
+  Float_t ratio = (Float_t)ntofpid/(Float_t)ntof*100.;
+  if(ntof>0)GetESDsData(4)->Fill(ratio) ;
 
 }
 
index 16622aad4bb5207c731e1d980b57658cee82f07e..c6c7d79797d6e01ce988b9611150df2f1b8b4397 100644 (file)
@@ -122,8 +122,11 @@ void AliTOFQADataMakerRec::InitRecPoints()
   h3->Sumw2() ;
   Add2RecPointsList(h3, 3, expert) ;
 
-  TH2F * h4  = new TH2F("hTOFRecPointsClusMap","RecPoints vs TOF eta-phi",183, -0.5, 182.5,865,-0.5,864.5) ; 
+  TH2F * h4  = new TH2F("hTOFRecPointsClusMap","RecPoints vs TOF phi-eta",183, -0.5, 182.5,865,-0.5,864.5) ; 
   h4->Sumw2() ;
+  h4->GetXaxis()->SetTitle("2*strip+padz (eta)");
+  h4->GetYaxis()->SetTitle("48*sector+padx (phi)");
+
   Add2RecPointsList(h4, 4, expert) ;
 
 }
@@ -153,7 +156,7 @@ void AliTOFQADataMakerRec::InitESDs()
   h3->Sumw2() ;
   Add2ESDsList(h3, 3, expert) ;
 
-  TH1F * h4 = new TH1F("hTOFESDsPID",    "Fraction of matched TOF tracks with good PID glag", 100, 0., 1.) ;  
+  TH1F * h4 = new TH1F("hTOFESDsPID",    "Fraction of matched TOF tracks with good PID flag (%)", 101, 0., 101.) ;  
   h4->Sumw2() ; 
   Add2ESDsList(h4, 4, expert) ;
 }
@@ -296,7 +299,8 @@ void AliTOFQADataMakerRec::MakeESDs(AliESDEvent * esd)
     GetESDsData(0)->Fill(TMath::Log10(nentries)) ;
   }
 
-  if(ntof>0)GetESDsData(4)->Fill(ntofpid/ntof) ;
+  Float_t ratio = (Float_t)ntofpid/(Float_t)ntof*100.;
+  if(ntof>0)GetESDsData(4)->Fill(ratio) ;
 
 }