// set up RPC branch in ROOT tree // // called from uhbook.F // // last modified on 05/12/2008 by I. Koenig #include #include "rpcbookr.h" #include "hgeantmaxtrk.h" void rpcbookr(void) { HRecEvent* pHGeantEvent = (HRecEvent*)(gHades->getCurrentEvent()); HPartialEvent* pRpc = pHGeantEvent->getPartialEvent(catSimul); Int_t ini[2]={6,MAXTRKRPC}; //These are the indexes in catRpcGeantRaw category: //1500 == MAXTRK is the maximum number of tracks/sector, same as MAXTRK in rpctuple.inc //6 is the number of sectors pRpc->addCategory(catRpcGeantRaw, new HMatrixCategory("HGeantRpc",2,ini,0.5) ); printf("\n RPC branches added\n"); } FCALLSCSUB0(rpcbookr,RPCBOOKR,rpcbookr)