12 lines
445 B
C
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();
|
|
|
|
}
|