Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RF_init.cc
Go to the documentation of this file.
1 // $Id: RF_init.cc 14984 2015-03-31 14:33:22Z pmatt $
2 
3 #include <JANA/JEventLoop.h>
4 using namespace jana;
5 
6 #include "DRFDigiTime.h"
7 #include "DRFTDCDigiTime.h"
8 #include "DRFTime_factory.h"
9 #include "DRFTime_factory_FDC.h"
10 #include "DRFTime_factory_PSC.h"
11 #include "DRFTime_factory_TAGH.h"
12 #include "DRFTime_factory_TOF.h"
13 
14 jerror_t RF_init(JEventLoop *loop)
15 {
16  /// Create and register RF data factories
17  loop->AddFactory(new JFactory<DRFDigiTime>());
18  loop->AddFactory(new JFactory<DRFTDCDigiTime>());
19  loop->AddFactory(new DRFTime_factory());
20  loop->AddFactory(new DRFTime_factory_FDC());
21  loop->AddFactory(new DRFTime_factory_PSC());
22  loop->AddFactory(new DRFTime_factory_TAGH());
23  loop->AddFactory(new DRFTime_factory_TOF());
24  loop->AddFactory(new JFactory<DRFTime>("TRUTH"));
25 
26  return NOERROR;
27 }
jerror_t RF_init(JEventLoop *loop)
Definition: RF_init.cc:14