22 gROOT->LoadMacro(
"geant.C");
24 geant(1,
"/disk1/star/test/psc0049_08_40evts.fzd");
28 TDataSet *yp = chain->DataSet(
"geant");
34 St_g2t_track *pt = (St_g2t_track *) geantIter.
Find(
"g2t_track");
37 g2t_track_st *t = pt->GetTable();
40 TH1F *h1 =
new TH1F(
"g2t_rap",
"rapidity",100,-7.0,7.0);
43 for (Int_t i = 0; i < pt->GetNRows(); i++,t++){ h1->Fill(t->rapidity);}
46 TCanvas *c1 =
new TCanvas(
"c1",
"c1");
virtual TDataSet * Find(const Char_t *path, TDataSet *rootset=0, Bool_t mkdir=kFALSE, Bool_t titleFlag=kFALSE)