Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
JFactoryGenerator_DTrigger.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: JFactoryGenerator_DTrigger.h
4 // Created: Tue Jun 7 10:14:40 EDT 2011
5 // Creator: davidl (on Darwin eleanor.jlab.org 10.7.0 i386)
6 //
7 
8 #ifndef _JFactoryGenerator_DTrigger_
9 #define _JFactoryGenerator_DTrigger_
10 
11 #include <JANA/jerror.h>
12 #include <JANA/JFactoryGenerator.h>
13 
14 #include "DTrigger_factory.h"
15 
16 class JFactoryGenerator_DTrigger: public jana::JFactoryGenerator{
17  public:
20  virtual const char* className(void){return static_className();}
21  static const char* static_className(void){return "JFactoryGenerator_DTrigger";}
22 
23  jerror_t GenerateFactories(jana::JEventLoop *loop){
24  loop->AddFactory(new DTrigger_factory());
25  return NOERROR;
26  }
27 
28 };
29 
30 #endif // _JFactoryGenerator_DTrigger_
31 
jerror_t GenerateFactories(jana::JEventLoop *loop)
virtual const char * className(void)
static const char * static_className(void)
Implements a L1 trigger algorithm on simulated data in the form of a flag in the DTrigger object...