From 4a2cc574d723fe152f6c9030918532edc5848e37 Mon Sep 17 00:00:00 2001
From: Adrien Matta <matta@lpccaen.in2p3.fr>
Date: Fri, 21 May 2021 15:55:41 +0200
Subject: [PATCH] * Improving CheckMinos macro

---
 Projects/S034/macro/CheckMinos.cxx | 14 +++++++++++---
 Projects/S034/macro/CheckMinos.sh  | 11 +++++++----
 2 files changed, 18 insertions(+), 7 deletions(-)

diff --git a/Projects/S034/macro/CheckMinos.cxx b/Projects/S034/macro/CheckMinos.cxx
index db7d95f2a..ffc1060c7 100644
--- a/Projects/S034/macro/CheckMinos.cxx
+++ b/Projects/S034/macro/CheckMinos.cxx
@@ -4,17 +4,25 @@ void CheckMinos(){
   auto tree1 = (TTree*) f1->FindObjectAny("PhysicsTree");
   auto f2 = new TFile("root/analysis/run824CheckMinos.root","READ");
   auto tree2 = (TTree*) f2->FindObjectAny("PhysicsTree");
+  auto f3 = new TFile("root/analysis/run570CheckMinos.root","READ");
+  auto tree3 = (TTree*) f3->FindObjectAny("PhysicsTree");
+
 
   auto c = new TCanvas();
-  c->Divide(2,2);
+  c->Divide(2,3);
   c->cd(1);
   tree1->Draw("Minos.Z_Vertex>>h1(500,-150,250)","sqrt(X_Vertex*X_Vertex+Y_Vertex*Y_Vertex)<15");
   c->cd(2);
-  tree1->Draw("Minos.Delta_Vertex>>h2(100,0,10)");
+  tree1->Draw("Minos.Delta_Vertex>>h2(100,0,30)","Minos.Delta_Vertex>-1000");
   c->cd(3);
   tree2->Draw("Minos.Z_Vertex>>h3(500,-150,250)","sqrt(X_Vertex*X_Vertex+Y_Vertex*Y_Vertex)<15");
   c->cd(4);
-  tree2->Draw("Minos.Delta_Vertex>>h4(100,0,10)");
+  tree2->Draw("Minos.Delta_Vertex>>h4(100,0,30)","Minos.Delta_Vertex>-1000");
+  c->cd(5);
+  tree3->Draw("Minos.Z_Vertex>>h5(500,-150,250)","sqrt(X_Vertex*X_Vertex+Y_Vertex*Y_Vertex)<15");
+  c->cd(6);
+  tree3->Draw("Minos.Delta_Vertex>>h6(100,0,30)","Minos.Delta_Vertex>-1000");
+
 
 
 
diff --git a/Projects/S034/macro/CheckMinos.sh b/Projects/S034/macro/CheckMinos.sh
index 05fd58771..998deb8b6 100755
--- a/Projects/S034/macro/CheckMinos.sh
+++ b/Projects/S034/macro/CheckMinos.sh
@@ -1,9 +1,12 @@
 # convert physics run
-ridf2nptool raw/run0582.ridf.gz root/mrdc/run582.root db/s034_list.txt 
+ridf2nptool -l raw/run0582.ridf.gz root/mrdc/run582.root db/s034_list.txt 
 # convert an empty target run
-ridf2nptool raw/run0824.ridf.gz root/mrdc/run824.root db/s034_list.txt 
+ridf2nptool -l raw/run0824.ridf.gz root/mrdc/run824.root db/s034_list.txt 
+# convert another physics run
+ridf2nptool -l raw/run0570.ridf.gz root/mrdc/run570.root db/s034_list.txt 
 # analysis of both run
-npcompilation -l && npanalysis -D s034.detector -C calibration.txt -T root/mrdc/run582.root RawTree -O run582CheckMinos -L 100000
-npcompilation -l && npanalysis -D s034.detector -C calibration.txt -T root/mrdc/run824.root RawTree -O run824CheckMinos -L 100000
+npcompilation -l && npanalysis -D s034.detector  -C calibration.txt -T root/mrdc/run582.root RawTree -O run582CheckMinos 
+npcompilation -l && npanalysis -D s034.detector  -C calibration.txt -T root/mrdc/run824.root RawTree -O run824CheckMinos 
+npcompilation -l && npanalysis -D s034.detector  -C calibration.txt -T root/mrdc/run570.root RawTree -O run570CheckMinos 
 # Plot the results
 root macro/CheckMinos.cxx
-- 
GitLab