Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TPOL_init.cc
Go to the documentation of this file.
1 // $Id: CDC_init.cc 2151 2006-10-23 18:01:37Z davidl $
2 
3 #include <JANA/JEventLoop.h>
4 using namespace jana;
5 
6 #include "DTPOLTruthHit.h"
7 #include "DTPOLSectorDigiHit.h"
8 #include "DTPOLRingDigiHit.h"
9 #include "DTPOLHit_factory.h"
10 
11 jerror_t TPOL_init(JEventLoop *loop)
12 {
13  /// Create and register TPOL data factories
14  loop->AddFactory(new JFactory<DTPOLSectorDigiHit>());
15  loop->AddFactory(new JFactory<DTPOLRingDigiHit>());
16  loop->AddFactory(new DTPOLHit_factory());
17  loop->AddFactory(new JFactory<DTPOLHit>("TRUTH"));
18  loop->AddFactory(new JFactory<DTPOLTruthHit>());
19 
20  return NOERROR;
21 }
jerror_t TPOL_init(JEventLoop *loop)
Definition: TPOL_init.cc:11