11 void geant(
const Int_t Nevents=1,
12 const Char_t *fzfile =
"/star/rcf/simu/cocktail/hadronic/default/lowdensity/year_1h/half_field/hadronic_on/Gstardata/hc_lowdensity.400_evts.fz")
14 gROOT->LoadMacro(
"bfc.C");
15 bfc(0,
"fzin sim_T globT gen_T",fzfile);
17 for (Int_t i =1; i <= Nevents; i++){
20 St_g2t_track *
track = (St_g2t_track *) chain->FindObject(
"g2t_track");
21 g2t_track_st *trk = track->GetTable();
22 for (Int_t j = 0; j < track->GetNRows(); j++,trk++) {
23 if (TMath::Abs(trk->charge) < 0.5)
continue;
24 if (! trk->eg_label)
continue;
25 if (trk->n_tpc_hit < 26)
continue;
27 if (trk->ge_pid == 2 || trk->ge_pid == 3) hyp = 3;
28 if (trk->ge_pid == 8 || trk->ge_pid == 9) hyp = 2;
29 if (trk->ge_pid ==11 || trk->ge_pid ==12) hyp = 1;
30 if (trk->ge_pid ==14 || trk->ge_pid ==15) hyp = 0;
31 Double_t pT = trk->charge*trk->pt;
32 Double_t Eta = trk->eta;
33 printf(
"eg: %d ge: %d pT %f eta %f Ntpc %d\n",
34 trk->eg_label,trk->ge_pid,pT,Eta,trk->n_tpc_hit);
36 printf (
"=========================================== Done with Event no. %d\n",i);
virtual void Clear(Option_t *option="")
User defined functions.