// $Id$ #include #include "DBCALGeometry_factory.h" #include "DBCALShower_factory_KLOE.h" #include "DBCALShower_factory.h" #include "DBCALCluster_factory.h" #include "DBCALCluster_factory_SINGLE.h" #include "DBCALPoint_factory.h" #include "DBCALHit.h" #include "DBCALTDCHit.h" #include "DBCALSiPMHit.h" #include "DBCALTruthCell.h" #include "DBCALTruthShower.h" #include "DBCALClump.h" #include "DBCALClump_factory.h" #include "DBCALShower_factory_JLAB.h" // These come from the event source, not from any algorithm typedef JFactory DBCALHit_factory; typedef JFactory DBCALTDCHit_factory; typedef JFactory DBCALSiPMHit_factory; typedef JFactory DBCALTruthShower_factory; typedef JFactory DBCALTruthCell_factory; jerror_t BCAL_init(JEventLoop *loop) { /// Create and register BCAL data factories loop->AddFactory(new DBCALHit_factory()); loop->AddFactory(new DBCALTDCHit_factory()); loop->AddFactory(new DBCALSiPMHit_factory()); loop->AddFactory(new DBCALGeometry_factory()); loop->AddFactory(new DBCALShower_factory_KLOE()); loop->AddFactory(new DBCALShower_factory_JLAB()); loop->AddFactory(new DBCALShower_factory()); loop->AddFactory(new DBCALCluster_factory()); loop->AddFactory(new DBCALCluster_factory_SINGLE()); loop->AddFactory(new DBCALTruthShower_factory()); loop->AddFactory(new DBCALTruthCell_factory()); loop->AddFactory(new DBCALPoint_factory()); loop->AddFactory(new DBCALClump_factory()); return NOERROR; }