Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DTrackFitter_factory_LSLM.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DTrackFitter_factory_LSLM.h
4 // Created: Wed Jan 14 08:59:27 EST 2009
5 // Creator: davidl (on Darwin harriet.jlab.org 9.6.0 i386)
6 //
7 
8 #ifndef _DTrackFitter_factory_LSLM_
9 #define _DTrackFitter_factory_LSLM_
10 
11 #include <JANA/JFactory.h>
12 #include "DTrackLSFitter.h"
13 
14 class DTrackFitter_factory_LSLM:public jana::JFactory<DTrackFitter>{
15  public:
18  const char* Tag(void){return "LSLM";}
19 
20  private:
21  jerror_t evnt(jana::JEventLoop *loop, uint64_t eventnumber){
22 
23  // Create single DTrackFitter object and mark the factory as
24  // persistent so it doesn't get deleted every event.
25  DTrackFitter *fitter = new DTrackLSFitter(loop);
26  SetFactoryFlag(PERSISTANT);
27  ClearFactoryFlag(WRITE_TO_OUTPUT);
28  _data.push_back(fitter);
29 
30  return NOERROR;
31  }
32 };
33 
34 #endif // _DTrackFitter_factory_LSLM_
35 
jerror_t evnt(jana::JEventLoop *loop, uint64_t eventnumber)
The DTrackFitter class is a base class for different charged track fitting algorithms. It does not actually fit the track itself, but provides the interface and some common support features most algorthims will need to implement.
Definition: DTrackFitter.h:61
const DTrackFitter * fitter