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

* Adding CheckMinos macro and script

parent 598e4a5d
No related branches found
No related tags found
No related merge requests found
Pipeline #120171 passed
void CheckMinos(){
auto f1 = new TFile("root/analysis/run582CheckMinos.root","READ");
auto tree1 = (TTree*) f1->FindObjectAny("PhysicsTree");
auto f2 = new TFile("root/analysis/run824CheckMinos.root","READ");
auto tree2 = (TTree*) f2->FindObjectAny("PhysicsTree");
auto c = new TCanvas();
c->Divide(2,2);
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)");
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)");
}
# convert physics run
ridf2nptool 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
# 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
# Plot the results
root marco/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