// $Id: PID_init.cc 2433 2007-04-07 14:57:32Z kornicer $ #include using namespace jana; #include "DTwoGammaFit_factory.h" #include "DTwoGammaFit_factory_PI0.h" #include "DTwoGammaFit_factory_ETA.h" #include "DParticleID_factory.h" #include "DParticleID_factory_PID1.h" #include "DChargedTrack_factory.h" #include "DChargedTrackHypothesis_factory.h" #include "DChargedTruthMatch_factory.h" #include "DNeutralParticle_factory.h" #include "DNeutralParticleHypothesis_factory.h" #include "DNeutralShower_factory.h" #include "DVertexIndependentResults_factory.h" #include "DVertex_factory.h" #include "DVertex_factory_THROWN.h" #include "DPhysicsEvent_factory.h" #include "DParticleSet_factory.h" #include "DPiPlus_factory.h" #include "DPiMinus_factory.h" #include "DEventRFBunch_factory.h" #include "DBeamPhoton.h" #include "DMCReaction.h" typedef JFactory DBeamPhoton_factory; typedef JFactory DMCReaction_factory; #define UC_CLUSTERIZER jerror_t PID_init(JEventLoop *loop) { /// Create and register PID data factories loop->AddFactory(new DTwoGammaFit_factory_PI0); loop->AddFactory(new DTwoGammaFit_factory_ETA); loop->AddFactory(new DBeamPhoton_factory); loop->AddFactory(new DMCReaction_factory); loop->AddFactory(new DParticleID_factory); loop->AddFactory(new DParticleID_factory_PID1); loop->AddFactory(new DChargedTrack_factory); loop->AddFactory(new DChargedTrackHypothesis_factory); loop->AddFactory(new DChargedTruthMatch_factory); loop->AddFactory(new DNeutralParticle_factory); loop->AddFactory(new DNeutralParticleHypothesis_factory); loop->AddFactory(new DNeutralShower_factory); loop->AddFactory(new DVertexIndependentResults_factory); loop->AddFactory(new DVertex_factory); loop->AddFactory(new DVertex_factory_THROWN); loop->AddFactory(new DParticleSet_factory); loop->AddFactory(new DPhysicsEvent_factory); loop->AddFactory(new DPiPlus_factory); loop->AddFactory(new DPiMinus_factory); loop->AddFactory(new DEventRFBunch_factory); return NOERROR; }