// $Id: FCAL_init.cc 3646 2008-04-24 19:44:31Z davidl $ #include using namespace jana; #include "DFCALCluster_factory.h" #include "DFCALGeometry_factory.h" #include "DFCALHit_factory.h" #include "DFCALMCResponse_factory.h" #include "DFCALPhoton_factory.h" #include "DFCALTruthShower.h" #include "DMCFCALHit.h" #include "DFCALPbWTruthShower.h" #include "DMCFCALPbWHit.h" typedef JFactory DFCALTruthShower_factory; typedef JFactory DMCFCALHit_factory; typedef JFactory DFCALPbWTruthShower_factory; typedef JFactory DMCFCALPbWHit_factory; jerror_t FCAL_init(JEventLoop *loop) { /// Create and register FCAL data factories loop->AddFactory(new DFCALHit_factory()); loop->AddFactory(new DFCALCluster_factory()); loop->AddFactory(new DFCALPhoton_factory()); loop->AddFactory(new DFCALGeometry_factory()); loop->AddFactory(new DFCALTruthShower_factory()); loop->AddFactory(new DFCALMCResponse_factory()); loop->AddFactory(new DFCALPbWTruthShower_factory()); // This is just used as a container loop->AddFactory(new JFactory()); loop->AddFactory(new JFactory()); return NOERROR; }