Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CCAL_init.cc
Go to the documentation of this file.
1 // $Id: FCAL_init.cc 5342 2009-07-09 15:46:12Z davidl $
2 
3 #include <JANA/JEventLoop.h>
4 using namespace jana;
5 
8 
9 #include "DCCALDigiHit.h"
10 #include "DCCALHit_factory.h"
11 #include "DCCALShower_factory.h"
12 
13 #include "DCCALRefDigiHit.h"
14 
15 jerror_t CCAL_init(JEventLoop *loop)
16 {
17  /// Create and register CCAL data factories
18  loop->AddFactory(new JFactory<DCCALDigiHit>());
19  loop->AddFactory(new JFactory<DCCALRefDigiHit>());
20  loop->AddFactory(new DCCALHit_factory());
21  loop->AddFactory(new DCCALShower_factory());
22  loop->AddFactory(new JFactory<DCCALHit>("TRUTH"));
23  loop->AddFactory(new DCCALTruthShower_factory());
24  loop->AddFactory(new DCCALGeometry_factory());
25 
26  return NOERROR;
27 }
jerror_t CCAL_init(JEventLoop *loop)
Definition: CCAL_init.cc:15