Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gauss_plugin.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file gauss_plugin.h
1 #ifndef __EXAMPLE_PLUGIN_H__
2 #define __EXAMPLE_PLUGIN_H__
3 
4 // this is part of the example how to build a plugin.
5 // It consists of a (silly) daq_device class (which creates a
6 // packet of type ID4EVT where channel i has the value i), and
7 // the actual "plugin" part, a plugabble class called
8 // gauss_plugin, which inherits from RCDAQPlugin.
9 
10 // please note at the very bottom of the .cc file the declaration of
11 // a static object of type gauss_plugin which gets
12 // instantiated on load of the shared lib and triggers
13 // the registration.
14 
15 // Also note that the plugin class can support more than one
16 // daq_device (here we have only one).
17 
18 #include <rcdaq_plugin.h>
19 #include <iostream>
20 
21 class gauss_plugin : public RCDAQPlugin {
22 
23  public:
24  int create_device(deviceblock *db);
25 
26  void identify(std::ostream& os = std::cout, const int flag = 0) const;
27 
28 };
29 
30 
31 #endif