]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
update of plotting macro
authorjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 6 Jan 2010 18:22:45 +0000 (18:22 +0000)
committerjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 6 Jan 2010 18:22:45 +0000 (18:22 +0000)
PWG0/eventStats/run.C
PWG0/eventStats/show.C

index d2ab2406a52d9fc004b98eac115b47f8ee726914..560ffedc1bc8245b6f4f6bc9946761015cac2bfc 100644 (file)
@@ -32,6 +32,8 @@ void run(const Char_t* data, Int_t nRuns=20, Int_t offset=0, Bool_t aDebug = kFA
 
   if (aProof > 0)
   {
 
   if (aProof > 0)
   {
+    //TProof::Mgr("alicecaf")->SetROOTVersion("v5-24-00a"); 
+    //TProof::Open("alicecaf", "valgrind=workers#4"); 
     TProof::Open("alicecaf"); 
     //gProof->SetParallel(2);
 
     TProof::Open("alicecaf"); 
     //gProof->SetParallel(2);
 
@@ -54,9 +56,6 @@ void run(const Char_t* data, Int_t nRuns=20, Int_t offset=0, Bool_t aDebug = kFA
       gProof->UploadPackage("$ALICE_ROOT/AF-v4-18-12-AN.par");
       gProof->EnablePackage("AF-v4-18-12-AN");
     }
       gProof->UploadPackage("$ALICE_ROOT/AF-v4-18-12-AN.par");
       gProof->EnablePackage("AF-v4-18-12-AN");
     }
-
-    gProof->UploadPackage("$ALICE_ROOT/PWG0base");
-    gProof->EnablePackage("$ALICE_ROOT/PWG0base");
   }
   else
   {
   }
   else
   {
index 6aab3de5aede4a49ffdc8acb7bba13017fa5bf94..0b2e3a5df1580263d50b76ff82d25b8e5f6cc51a 100644 (file)
@@ -5,28 +5,31 @@ void show(const char* fileName = "event_stat.root")
 
   TFile::Open(fileName);
   
 
   TFile::Open(fileName);
   
-  c = new TCanvas;
+  c = new TCanvas("c", "c", 1200, 600);
   hist = (TH1*) gFile->Get("physics_selection/fHistStatistics");
   hist->SetStats(0);
   hist->Draw("TEXT");
   hist = (TH1*) gFile->Get("physics_selection/fHistStatistics");
   hist->SetStats(0);
   hist->Draw("TEXT");
-  c->SetLeftMargin(0.25);
+  hist->SetTitle("");
+  hist->SetMarkerSize(1.5);
+  c->SetLeftMargin(0.20);
   c->SetBottomMargin(0.2);
   c->SaveAs("stat.png");
   
   c->SetBottomMargin(0.2);
   c->SaveAs("stat.png");
   
-  c = new TCanvas;
+  c = new TCanvas("c2", "c2", 800, 600);
   c->SetLeftMargin(0.25);
   hist = (TH1*) gFile->Get("physics_selection/fHistBunchCrossing");
   hist->SetStats(0);
   c->SetLeftMargin(0.25);
   hist = (TH1*) gFile->Get("physics_selection/fHistBunchCrossing");
   hist->SetStats(0);
-  hist->Draw("TEXT");
+  hist->SetTitle("");
+  hist->Draw("COL");
   c->SaveAs("bc.png");
 
   // BG
   gStyle->SetStatX(0.87);
   gStyle->SetStatY(0.93);
 
   c->SaveAs("bc.png");
 
   // BG
   gStyle->SetStatX(0.87);
   gStyle->SetStatY(0.93);
 
-  TH2F * hBB  = (TH2F*) gDirectory->Get("physics_selection/background_identification/h_CINT1B-ABCE-NOPF-ALL");
-  TH2F * hBE  = (TH2F*) gDirectory->Get("physics_selection/background_identification/h_CINT1C-ABCE-NOPF-ALL");
-  TH2F * hBEA = (TH2F*) gDirectory->Get("physics_selection/background_identification/h_CINT1A-ABCE-NOPF-ALL");
+  TH2F * hBB  = (TH2F*) gDirectory->Get("physics_selection/background_identification/hCvsT_CINT1B-ABCE-NOPF-ALL");
+  TH2F * hBE  = (TH2F*) gDirectory->Get("physics_selection/background_identification/hCvsT_CINT1C-ABCE-NOPF-ALL");
+  TH2F * hBEA = (TH2F*) gDirectory->Get("physics_selection/background_identification/hCvsT_CINT1A-ABCE-NOPF-ALL");
 
   if(!hBB || !hBE || !hBEA) {
     printf("WARNING: no BG histos\n");
 
   if(!hBB || !hBE || !hBEA) {
     printf("WARNING: no BG histos\n");