// $Id$ // // File: DHDDMTOFHit_factory.cc // Created: Mon Oct 17 15:01:51 EST 2005 // Creator: remitche (on Linux mantrid00 2.4.20-18.8smp i686) // #include #include "DHDDMTOFHit_factory.h" //------------------ // evnt //------------------ jerror_t DHDDMTOFHit_factory::evnt(JEventLoop *loop, int eventnumber) { // no code should be here -- this factory is used strictly for reading in // HDDM data return NOERROR; } //------------------ // toString //------------------ const string DHDDMTOFHit_factory::toString(void) { // Ensure our Get method has been called so _data is up to date Get(); if(_data.size()<=0)return string(); // don't print anything if we have no data! printheader("id: bar: plane: end: t: dE: "); for(unsigned int i=0; i<_data.size(); i++){ DHDDMTOFHit *hit = _data[i]; printnewrow(); printcol("%d", hit->id); printcol("%d", hit->bar); printcol("%d", hit->plane); printcol("%d", hit->end); printcol("%1.3f", hit->t); printcol("%1.3f", hit->dE); printrow(); } return _table; }