FRIBParallelanalysis  1.0
FrameworkforMPIParalleldataanalysisatFRIB
EventProcessor.h
Go to the documentation of this file.
1 /*
2  This software is Copyright by the Board of Trustees of Michigan
3  State University (c) Copyright 2017.
4 
5  You may use this software under the terms of the GNU public license
6  (GPL). The terms of this license are described at:
7 
8  http://www.gnu.org/licenses/gpl.txt
9 
10  Authors:
11  Ron Fox
12  Giordano Cerriza
13  FRIB
14  Michigan State University
15  East Lansing, MI 48824-1321
16 */
17 
21 #ifndef ANALYSIS_EVENTPROCESSOR_H
22 #define ANALYSIS_EVENTPROCESSOR_H
23 #include "SpecTclTypes.h"
24 #include <string>
25 namespace frib {
26  namespace analysis {
27  class CEvent;
28  class CAnalyzer;
29  class CBufferDecoder;
30 
38  public:
39  virtual ~CEventProcessor() {} // for destructor chaining.
40 
41  virtual Bool_t operator()(const Address_t pEvent,
42  CEvent& rEvent,
43  CAnalyzer& rAnalyzer,
44  CBufferDecoder& rDecoder) = 0;
45  virtual Bool_t OnEventSourceOpen(std::string name);
46  virtual Bool_t OnInitialize();
47 
48 
49  };
50  }
51 }
52 
53 
54 #endif
Definition: Analyzer.h:41
Definition: BufferDecoder.h:39
Definition: Event.h:45
Definition: EventProcessor.h:37
Definition: AbstractApplication.cpp:30