Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DIRC_init.cc
Go to the documentation of this file.
1 /*
2  * DIRC_init.cc
3  *
4  * Created on: Oct 11, 2012
5  * Author: yqiang
6  * Modified on: 0ct 7, 2013, yqiang, added DIRCTruthHit factory
7  */
8 
9 #include <JANA/JEventLoop.h>
10 using namespace jana;
11 
12 #include "DDIRCTDCDigiHit.h"
13 #include "DDIRCPmtHit.h"
14 #include "DDIRCLEDRef.h"
15 #include "DDIRCTruthBarHit.h"
16 #include "DDIRCTruthPmtHit.h"
17 #include "DDIRCLut_factory.h"
18 #include "DDIRCPmtHit_factory.h"
19 #include "DDIRCLEDRef_factory.h"
20 #include "DDIRCGeometry_factory.h"
21 
22 jerror_t DIRC_init(JEventLoop *loop) {
23 
24  /// Create and register DIRC data factories
25  loop->AddFactory(new JFactory<DDIRCTDCDigiHit>());
26  loop->AddFactory(new DDIRCGeometry_factory());
27  loop->AddFactory(new DDIRCPmtHit_factory());
28  loop->AddFactory(new DDIRCLEDRef_factory());
29  loop->AddFactory(new JFactory<DDIRCTruthPmtHit>());
30  loop->AddFactory(new JFactory<DDIRCTruthBarHit>());
31  loop->AddFactory(new DDIRCLut_factory());
32 
33  return NOERROR;
34 }
35 
jerror_t DIRC_init(JEventLoop *loop)
Definition: DIRC_init.cc:22