6 St_XDFFile xdf(
"/star/mds/data/SD98/auau200/evg/central/hijing/set0001/regular/auau_ce_b0-2_4801_5000.xdf");
12 set = root.
Cd(
"/evgen/particle");
15 printf(
" Getting the tables \n");
17 St_particle *pa=set->GetTableObj();
20 printf(
" Checking the results \n");
24 printf(
" Name=%s type=%s t1_h.nok = %i \n", t1_h->
name, t1_h->
type, t1_h->
nok);
25 printf(
" t1_h.rbytes = %i \n", t1_h.
rbytes);
27 particle_st *particle = pa.GetTable();
33 TH1F h1(
"h1",
"phep(3)",100);
38 TH1F h1Sqrt(
"h1Sqrt",
"666.sqrt",100);
43 TH1F h2Log1(
"h2Log1",
"666.log1",100);
44 h2Log1->SetFillColor(42);
48 TH1F h3Log2(
"h3Log2",
"666.log2",100);
49 h3Log2->SetFillColor(46);
53 Int_t kUPDATE = t1_h.
nok/20;
57 c1 =
new TCanvas(
"c1",
"The reading STAF table: \"particle.h\"",200,10,600,400);
59 gBenchmark->Start(
"hsum");
62 for (l=0; l < pa->GetNRows(); l++)
64 particle_st *p = particle[l];
80 if ( p->phep[0] != 0 )
82 h1Sqrt->Fill(sqrt(p->phep[0]**2+p->phep[1]**2));
83 h2Log1->Fill(sqrt(tan(0.5*atan(p->phep[2]/sqrt(p->phep[0]**2+p->phep[1]**2))+.7854)));
89 if ( p->idhep ==211 || p->idhep == -211)
90 h3Log2->Fill(log(tan(0.5*atan(p->phep[2]/sqrt(p->phep[0]**2+p->phep[1]**2))+.7854)));
94 if (l && (l%kUPDATE) == 0) {
101 slider =
new TSlider(
"slider",
"test",1.05,0,1.1,h1Sqrt->GetMaximum()*1.3,38);
102 slider->SetFillColor(46);
104 if (slider) slider->SetRange(0,Float_t(l)/t1_h->
nok);
110 slider->SetRange(0,1);
112 gBenchmark->Show(
"hsum");
114 printf(
" This is a finish \n");
virtual TDataSet * Cd(const Char_t *dirname)
virtual void ls(Option_t *option="") const