Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PID_init.cc
Go to the documentation of this file.
1 // $Id: PID_init.cc 2433 2007-04-07 14:57:32Z kornicer $
2 
3 #include <JANA/JEventLoop.h>
4 using namespace jana;
5 
6 #include "DBeamPhoton_factory.h"
10 #include "DParticleID_factory.h"
12 #include "DChargedTrack_factory.h"
18 #include "DNeutralShower_factory.h"
20 #include "DVertex_factory.h"
21 #include "DVertex_factory_THROWN.h"
22 #include "DEventRFBunch_factory.h"
31 
32 #include "DMCReaction.h"
33 
34 #define UC_CLUSTERIZER
35 
36 jerror_t PID_init(JEventLoop *loop)
37 {
38  /// Create and register PID data factories
39  loop->AddFactory(new JFactory<DMCReaction>());
40  loop->AddFactory(new DBeamPhoton_factory);
41  loop->AddFactory(new DBeamPhoton_factory_TRUTH);
42  loop->AddFactory(new DBeamPhoton_factory_TAGGEDMCGEN);
43  loop->AddFactory(new DBeamPhoton_factory_MCGEN);
44  loop->AddFactory(new DParticleID_factory);
45  loop->AddFactory(new DParticleID_factory_PID1);
46  loop->AddFactory(new DChargedTrack_factory);
47  loop->AddFactory(new DChargedTrack_factory_PreSelect);
48  loop->AddFactory(new DChargedTrackHypothesis_factory);
49  loop->AddFactory(new DNeutralParticle_factory);
50  loop->AddFactory(new DNeutralParticle_factory_PreSelect);
51  loop->AddFactory(new DNeutralParticleHypothesis_factory);
52  loop->AddFactory(new DNeutralShower_factory);
53  loop->AddFactory(new DNeutralShower_factory_PreSelect);
54  loop->AddFactory(new DVertex_factory);
55  loop->AddFactory(new DVertex_factory_THROWN);
56  loop->AddFactory(new DEventRFBunch_factory);
57  loop->AddFactory(new DEventRFBunch_factory_Thrown);
58  loop->AddFactory(new DEventRFBunch_factory_Calibrations);
59  loop->AddFactory(new DEventRFBunch_factory_CalorimeterOnly);
60  loop->AddFactory(new DDetectorMatches_factory);
61  loop->AddFactory(new DDetectorMatches_factory_WireBased);
62  loop->AddFactory(new DMCThrown_factory_FinalState);
63  loop->AddFactory(new DMCThrown_factory_Decaying);
64  loop->AddFactory(new DMCThrown_factory_Primary);
65 
66  return NOERROR;
67 }
jerror_t PID_init(JEventLoop *loop)
Definition: PID_init.cc:36