DDASToys for NSCLDAQ  6.2-000
ProcessToRootSink.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  Aaron Chester
12  FRIB
13  Michigan State University
14  East Lansing, MI 48824-1321
15 */
16 
23 #ifndef PROCESSTOROOTSINK_H
24 #define PROCESSTOROOTSINK_H
25 
26 #include <CRingItemProcessor.h>
27 
28 #include <string>
29 
30 class RootFileDataSink;
31 class CPhysicsEventItem;
32 
41 {
42 public:
44  ProcessToRootSink(std::string sink);
46  virtual ~ProcessToRootSink();
47 
48  // Mandatory interface from CRingItemProcessor:
49 
50 public:
55  virtual void processEvent(CPhysicsEventItem& item);
56 
57  // Private data:
58 
59 private:
60  RootFileDataSink* m_pSink;
61 };
62 
63 #endif
Defines an abstract base class for ring item processing.
Abstract base class to support type-independent ring-item processing.
Definition: CRingItemProcessor.h:48
A ring item processeor concrete class that overrides the CRingItemProcessor base class method to put ...
Definition: ProcessToRootSink.h:41
ProcessToRootSink(std::string sink)
Constructor.
Definition: ProcessToRootSink.cpp:33
virtual ~ProcessToRootSink()
Destructor.
Definition: ProcessToRootSink.cpp:40
virtual void processEvent(CPhysicsEventItem &item)
Process physics events.
Definition: ProcessToRootSink.cpp:55
This class knows how to write ROOT files from the ring items created by the fitting program.
Definition: RootFileDataSink.h:53