Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DTrackFitter_factory.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DTrackFitter_factory_ALT1.h
4 // Created: Mon Sep 1 10:29:51 EDT 2008
5 // Creator: davidl (on Darwin Amelia.local 8.11.1 i386)
6 //
7 
8 #ifndef _DTrackFitter_factory_
9 #define _DTrackFitter_factory_
10 
11 #include <JANA/JFactory.h>
12 #include <TRACKING/DTrackFitter.h>
13 
14 class DTrackFitter_factory:public jana::JFactory<DTrackFitter>{
15  public:
18 
19  private:
20  jerror_t evnt(jana::JEventLoop *loop, uint64_t eventnumber){
21 
22  // This is a trivial class that simply implements the
23  // ALT1 tagged factory as the default. It is here so
24  // that the default can be changed easily by simply
25  // changing the tag here or on the command line.
26  vector<const DTrackFitter*> fitters;
27  loop->Get(fitters, "KalmanSIMD");
28  for(unsigned int i=0; i< fitters.size(); i++){
29  _data.push_back(const_cast<DTrackFitter*>(fitters[i]));
30  }
31  SetFactoryFlag(NOT_OBJECT_OWNER);
32 
33  return NOERROR;
34  }
35 };
36 
37 #endif // _DTrackFitter_factory_
38 
jerror_t evnt(jana::JEventLoop *loop, uint64_t eventnumber)