5 gSystem.Exec(
"del *.log");
8 St_XDFFile xdf(
"/star/mds/data/SD98/auau200/evg/central/hijing/set0001/regular/auau_ce_b0-2_4801_5000.xdf");
9 St_Event *
event = xdf.NextEvent();
12 TList *list =
event->GetListOfDataset();
16 printf(
" Getting the tables \n");
17 St_particle *pa=(St_particle *)(set->GetStafTable());
23 printf(
" Checking the results \n");
27 printf(
" Name=%s type=%s t1_h.nok = %i \n", t1_h->
name, t1_h->
type, t1_h->
nok);
28 printf(
" t1_h.rbytes = %i \n", t1_h.
rbytes);
30 hfile =
new TFile(
"mevsim.root",
"RECREATE",
"mevsim simulation");
31 particle_st *particle = pa.GetTable();
35 TNtuple *ntuple =
new TNtuple(
"ntuple",
"Demo ntuple",
"idhep:p1:p2:p3:p4:p5");
38 printf(
" Filling ntuple \n");
40 for ( Int_t l=0; l<t1_h.
nok; l++)
42 ntuple->Fill(particle[l]->idhep
53 printf(
" some KUMACS like results to show \n");
65 ntuple->Draw(
"sqrt(p1**2+p2**2)",
"p1 != 0");
71 ntuple->Draw(
"log(tan(0.5*atan(p3/sqrt(p1**2+p2**2))+.7854))",
"p1 != 0");
77 ntuple->Draw(
"log(tan(0.5*atan(p3/sqrt(p1**2+p2**2))+.7854))",
"idhep == 211 || idhep==-211");
virtual void ls(Option_t *option="") const