44{
45
46
47 if(!
db)
if(!
init())
return;
48
49 TFile *
f=
new TFile(
"sbh.root",
"RECREATE");
50 TTree *
t =
new TTree(
"t",
"t");
51
52 char *leaflist = new char[512];
53 leaflist = "track/f:grains/f:fpx/f:fpy/f:fsx/f:fsy/f:ppx/f:ppy/f:psx/f:psy/f:z/f:plate/f:path/f:proc/f:brick/f";
54
55 char *query = new char[2048];
56 sprintf(query,"\
57select id_track,grains,fpx,fpy,fsx,fsy,ppx,ppy,psx,psy,z,id_plate,path,id_processoperation-8000000000000000,id_eventbrick \
58from vw_scanback_history \
59where id_eventbrick=7 and ID_PROCESSOPERATION=%s and id_plate=1 and path in \
60(select path from vw_scanback_history \
61where id_eventbrick=7 and ID_PROCESSOPERATION=%s \
62and id_plate=7 and abs(fpy-ppy)<50 and abs(fpx-ppx)<50) \
63and ppy>25000 and ppy<75000 ",
64id_proc,id_proc);
65
67
68 printf("%d entries\n",n);
70 t->Draw(
"ppx-fpx",
"grains>0");
73}
FILE * f
Definition: RecDispMC.C:150