//det1
Int_t hit1;
double e1[hit1];
Int_t x1[hit1],y1[hit1];
//det2
Int_t hit2;
double e2[hit2];
Int_t x2[hit2],y1[hit2];
//det3
Int_t hit3;
double e3[hit3];
Int_t x3[hit3],y3[hit3];
//%jsroot on
TFile *ipf = new TFile("./data/evt_16C.root");
TTree *tree = (TTree*)ipf->Get("tree");
TCanvas *c1=new TCanvas;
tree->Draw("e1:e2>>(1000,0,9000,1000,0,8000)","","colz");
gPad->SetLogz();
c1->Draw();
tree->Draw("e1:e2>>(1000,0,9000,1000,0,8000)","hit1==1","colz");
c1->Draw();
tree->Draw("e1:e2>>(1000,0,8000,1000,0,8000)","hit1==2&& hit2==2","colz");
c1->Draw();
tree->Draw("e2:e3>>(1000,0,8000,1000,0,5000)","hit2==2&&hit3==2","colz");
c1->Draw();
tree->Draw("x1:x2>>(32,0,32,32,0,32)","hit1==1 && hit2==1","colz");
c1->Draw();
tree->Draw("e1:e2>>(1000,0,9000,1000,0,8000)","hit1==1 && hit2==1 && abs(x1-x2)<2 && abs(y1-y2)<2","colz");
c1->Draw();
tree->Draw("x1:x2>>(32,0,32,32,0,32)","hit1==2 && hit2==2","colz");
c1->Draw();
tree->Draw("x3-x2:y3-y2>>(32,-16,16,32,-16,16)","hit3==2 && hit2==2","colz");
c1->Draw();
tree->Draw("e2:e3>>(1000,0,8000,1000,0,5000)","hit2==2&&hit3==2 && abs(y2-y3)<2 && abs(x2-x3)<2","colz");
c1->Draw();
tree->Scan("x2:x3:y2:y3:int(e2):int(e3)"," hit2==2 && hit3==2 ","",100,1);
*********************************************************************************************** * Row * Instance * x2 * x3 * y2 * y3 * int(e2) * int(e3) * *********************************************************************************************** * 7 * 0 * 7 * 5 * 19 * 21 * 868 * 1445 * * 7 * 1 * 6 * 3 * 17 * 17 * 562 * 1353 * * 22 * 0 * 19 * 20 * 14 * 14 * 781 * 1720 * * 22 * 1 * 16 * 15 * 10 * 7 * 176 * 378 * * 36 * 0 * 12 * 13 * 11 * 4 * 689 * 523 * * 36 * 1 * 11 * 11 * 7 * 16 * 232 * 141 * * 44 * 0 * 22 * 12 * 12 * 16 * 1879 * 1979 * * 44 * 1 * 17 * 23 * 14 * 12 * 788 * 1859 * * 53 * 0 * 15 * 17 * 10 * 8 * 639 * 2054 * * 53 * 1 * 17 * 22 * 6 * 1 * 163 * 371 * * 69 * 0 * 6 * 2 * 14 * 15 * 1110 * 701 * * 69 * 1 * 8 * 5 * 9 * 5 * 213 * 495 * * 92 * 0 * 20 * 23 * 9 * 5 * 518 * 1216 * * 92 * 1 * 15 * 13 * 7 * 1 * 168 * 339 * *********************************************************************************************** ==> 14 selected entries