16 Float_t x[n] = {0.092,0.83,0.94,0.81,0.12,0.1};
17 Float_t y[n] = {0.71,9.4,9,8,0.3,0.71};
18 TCutG *cut =
new TCutG(
"cut",n,x,y);
19 TH2F *h2 =
new TH2F(
"h2",
"h2",40,0,1,40,0,10);
21 for (Int_t i=0;i<100000;i++) {
23 v = 10*gRandom->Rndm();
24 if (cut->IsInside(u,v)) h2->Fill(u,v);
26 TCanvas *c1 =
new TCanvas(
"c1",
"show profile",600,900);
33 TProfile *prof = h2->ProfileX();