ANASEN_analysis/Armory/testMacro.C
2026-08-19 16:12:27 -04:00

12 lines
445 B
C

{
TFile *file0 = TFile::Open("SimAnasen1.root");
file0->ls();
TTree *tree1 = (TTree*)(file0->Get("tree1"));
tree1->Draw("Tb:thetab","","col");
tree1->Draw("Tb:thetab","vZ>-140 && vZ<-130", "box same");
TH2F *h2 = new TH2F("EPCvEsx3", "EPC x sin(thetab) vs Esx3;Esx3;EPC * sin(thetab * TMath::DegToRad())", 200, 0, 0, 200, 0, 0);
tree1->Draw("EPC*sin(thetab * TMath::DegToRad()):Esx3 >> EPCvEsx3", "Esx3 > 0", "colz");
new TBrowser();
}