Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Df250EmulatorAlgorithm_factory_v1.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: Df250EmulatorAlgorithm_factory.h
4 // Created: Mar 20, 2016
5 // Creator: mstaib
6 //
7 
8 #ifndef _Df250EmulatorAlgorithm_factory_v1_
9 #define _Df250EmulatorAlgorithm_factory_v1_
10 
11 #include <JANA/JFactory.h>
13 
14 class Df250EmulatorAlgorithm_factory_v1:public jana::JFactory<Df250EmulatorAlgorithm>{
15  public:
18  const char* Tag(void){return "v1";}
19 
20  private:
21  jerror_t evnt(jana::JEventLoop *loop, uint64_t eventnumber){
22 
23  // Create single Df250EmulatorAlgorithm object and mark the factory as
24  // persistent so it doesn't get deleted every event.
26  SetFactoryFlag(PERSISTANT);
27  ClearFactoryFlag(WRITE_TO_OUTPUT);
28  _data.push_back(emulator);
29 
30  return NOERROR;
31  }
32 };
33 
34 #endif // _Df250EmulatorAlgorithm_factory_v1_
35 
jerror_t evnt(jana::JEventLoop *loop, uint64_t eventnumber)