From f68999ace2632a398ac543fc95b78e166f301290 Mon Sep 17 00:00:00 2001
From: "Stephen A. Wood" <saw@jlab.org>
Date: Mon, 19 Aug 2013 11:32:24 -0400
Subject: [PATCH] Restore missing hitmaps.C

---
 examples/hitmaps.C | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 examples/hitmaps.C

diff --git a/examples/hitmaps.C b/examples/hitmaps.C
new file mode 100644
index 0000000..0874bc3
--- /dev/null
+++ b/examples/hitmaps.C
@@ -0,0 +1,39 @@
+{
+  TFile* f = new TFile("hodtest.root");
+ 
+  TCanvas *c1 = new TCanvas("c1", "Scintillator Hit Maps", 800, 800); 
+  c1->Divide(2, 4);
+
+  TH1F* h[16];
+
+  h[0] = hpostdc1;
+  h[1] = hnegtdc1;
+  h[4] = hpostdc2;
+  h[5] = hnegtdc2;
+  h[8] = hpostdc3;
+  h[9] = hnegtdc3;
+  h[12] = hpostdc4;
+  h[13] = hnegtdc4;
+
+  h[2] = hposadc1;
+  h[3] = hnegadc1;
+  h[6] = hposadc2;
+  h[7] = hnegadc2;
+  h[10] = hposadc3;
+  h[11] = hnegadc3;
+  h[14] = hposadc4;
+  h[15] = hnegadc4;
+  
+  for(Int_t ipad=1;ipad<=8;ipad++) {
+    TPad *pt = c1->cd(ipad);
+    Int_t ihp = 2*(ipad-1);
+    Int_t ihn = ihp+1;
+    h[ihp]->SetFillColor(kGreen);
+    h[ihp]->SetFillStyle(3345);
+    h[ihp]->Draw();
+    h[ihn]->SetFillColor(kBlue);
+    h[ihn]->SetFillStyle(3354);
+    h[ihn]->Draw("same");
+  }
+
+}
-- 
GitLab