NSCL DDAS  1.0
Support for XIA DDAS at the NSCL
 All Classes Namespaces Files Functions Variables Macros Pages
RootConverter2.h
1 
2 
3 #ifndef ROOTCONVERTER2_H
4 #define ROOTCONVERTER2_H
5 
6 #include <string>
7 
8 #ifndef CONVERTER_H
9 #include "Converter.h"
10 #endif
11 
12 #include <stdint.h>
13 
14 class DDASEvent;
15 class ddaschannel;
16 
18 
51 class RootConverter2 : public Converter
52 {
53 
54  private:
55  DDASEvent *m_ddasevent;
57  public:
62 
68  virtual ~RootConverter2();
69 
79  virtual void Initialize(std::string filein, std::string fileout);
80 
91  virtual void DumpData(const CRingItem& item);
92 
93  private:
94 
107  ddaschannel* ExtractDDASChannelFromEVBFragment(const uint32_t*& body_ptr);
108 
109 };
110 
111 #endif
Encapsulates a Built DDAS event.
Definition: DDASEvent.h:26
Converter for data formats : NSCLDAQ 10.2-00x.
Definition: RootConverter2.h:51
Encapsulation of a generic DDAS event.
Definition: ddaschannel.h:41
virtual ~RootConverter2()
Default destructor Calls the parent destructor and also deletes the object pointed to by the m_ddasev...
Definition: RootConverter2.cpp:24
virtual void DumpData(const CRingItem &item)
Conversion of CRingItem data and filling of the tree.
Definition: RootConverter2.cpp:45
virtual void Initialize(std::string filein, std::string fileout)
Adds ddasevent branch to tree and associates it with local DDASEvent object.
Definition: RootConverter2.cpp:33
RootConverter2()
Default constructor Constructs the DDASEvent object.
Definition: RootConverter2.cpp:19
Base class for all converter objects.
Definition: Converter.h:37