// $Id$ #include using namespace jana; #include "DTOFGeometry_factory.h" #include "DTOFHit_factory.h" #include "DTOFPaddleHit_factory.h" #include "DTOFPoint_factory.h" #include "DTOFDigiHit.h" #include "DTOFTDCDigiHit.h" #include "DTOFHitMC.h" #include "DTOFTruth.h" typedef JFactory DTOFDigiHit_factory; typedef JFactory DTOFTDCDigiHit_factory; typedef JFactory DTOFHitMC_factory; typedef JFactory DTOFTruth_factory; jerror_t TOF_init(JEventLoop *loop) { /// Create and register TOF data factories loop->AddFactory(new DTOFGeometry_factory()); loop->AddFactory(new DTOFDigiHit_factory()); loop->AddFactory(new DTOFTDCDigiHit_factory()); loop->AddFactory(new DTOFHit_factory()); // smeared MC data loop->AddFactory(new DTOFPaddleHit_factory()); loop->AddFactory(new DTOFPoint_factory()); loop->AddFactory(new DTOFTruth_factory()); loop->AddFactory(new DTOFHitMC_factory()); // associated MC data objects loop->AddFactory(new JFactory("TRUTH")); // unsmeared MC data loop->AddFactory(new JFactory("TRUTH")); // associated MC data objects return NOERROR; }