Uddate from ZDC Marco- Chiara
authormgermain <marie.germain@subatech.in2p3.fr>
Mon, 15 Dec 2014 08:40:37 +0000 (09:40 +0100)
committermgermain <marie.germain@subatech.in2p3.fr>
Mon, 15 Dec 2014 08:40:37 +0000 (09:40 +0100)
PWGPP/ZDC/macros/DrawPerformanceZDCQAMatchTrends.C

index 0b2bb30..51ef708 100755 (executable)
 #include <TRandom.h>
 #include <TLegend.h>
 #include <TGraphErrors.h>
+#include "TStatToolkit.h"
 #endif
 
 TTree *tree;
 
-DrawPerformanceZDCQAMatchTrends(const char* inFile = "trending.root"){
+void DrawPerformanceZDCQAMatchTrends(const char* inFile = "trending.root"){
   
   /*set graphic style*/
   gStyle->SetCanvasColor(kWhite);
@@ -67,7 +68,7 @@ DrawPerformanceZDCQAMatchTrends(const char* inFile = "trending.root"){
   Int_t offset_centroids=3;
   Int_t offset_tdc=6;  
   
-  Int_t runNumber=0;
+  //Int_t runNumber=0;
   Double_t ZNC_mean=0;   Double_t ZNC_tot=0;    Double_t ZNC_avg=0;  
   Double_t ZNA_mean=0;   Double_t ZNA_tot=0;    Double_t ZNA_avg=0;
   Double_t ZPC_mean=0;   Double_t ZPC_tot=0;    Double_t ZPC_avg=0;     
@@ -212,4 +213,4 @@ DrawPerformanceZDCQAMatchTrends(const char* inFile = "trending.root"){
   gr_zntdcdiff->GetYaxis()->SetRangeUser(TdcDiff_avg-offset_tdc,TdcDiff_avg+offset_tdc);  
   c6->Print("ZN_timing_trending.png");    
     
-}
\ No newline at end of file
+}