Skip to content
Snippets Groups Projects
Commit 4a2cc574 authored by Adrien Matta's avatar Adrien Matta :skull_crossbones:
Browse files

* Improving CheckMinos macro

parent 6a353f7f
No related branches found
No related tags found
No related merge requests found
Pipeline #120191 passed
...@@ -4,17 +4,25 @@ void CheckMinos(){ ...@@ -4,17 +4,25 @@ void CheckMinos(){
auto tree1 = (TTree*) f1->FindObjectAny("PhysicsTree"); auto tree1 = (TTree*) f1->FindObjectAny("PhysicsTree");
auto f2 = new TFile("root/analysis/run824CheckMinos.root","READ"); auto f2 = new TFile("root/analysis/run824CheckMinos.root","READ");
auto tree2 = (TTree*) f2->FindObjectAny("PhysicsTree"); 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(); auto c = new TCanvas();
c->Divide(2,2); c->Divide(2,3);
c->cd(1); c->cd(1);
tree1->Draw("Minos.Z_Vertex>>h1(500,-150,250)","sqrt(X_Vertex*X_Vertex+Y_Vertex*Y_Vertex)<15"); tree1->Draw("Minos.Z_Vertex>>h1(500,-150,250)","sqrt(X_Vertex*X_Vertex+Y_Vertex*Y_Vertex)<15");
c->cd(2); 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); c->cd(3);
tree2->Draw("Minos.Z_Vertex>>h3(500,-150,250)","sqrt(X_Vertex*X_Vertex+Y_Vertex*Y_Vertex)<15"); tree2->Draw("Minos.Z_Vertex>>h3(500,-150,250)","sqrt(X_Vertex*X_Vertex+Y_Vertex*Y_Vertex)<15");
c->cd(4); 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");
......
# convert physics run # 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 # 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 # 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/run582.root RawTree -O run582CheckMinos
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/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 # Plot the results
root macro/CheckMinos.cxx root macro/CheckMinos.cxx
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment