STAR Computing | |
Putting Histograms into your Maker | |
Offline computing - ROOT in STAR | Maintained by K. Turner |
void St_tcl_Maker::MakeHistograms() {
// Create an iterator
St_DataSetIter tpc_hits(m_DataSet);
//Get the table:
St_tcl_tphit *tphh = 0;
tphh = (St_tcl_tphit *) tpc_hits.Find("tphit");
// cout << " **** NOW MAKING HISTOGRAMS FOR TCL !!!!! " << endl;
if (tphh) {
tcl_tphit_st *r = tphh->GetTable();
for(Int_t i=0; i<tphh->GetNRows();i++,r++){
Float_t zofhit = r->z;
m_z_of_hits->Fill(zofhit);
}
}
}