ADC 400F Instrukcja Obsługi Strona 60

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 74
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 59
Chapter 5. Complete program listings.
class MyEventProcessor : public CEventProcessor // co:epinherit
{
private:
CTreeParameterArray& m_rawData; // co:treearraymember
int m_nId; // co:epidmember
int m_nSlot; // co:epslotmember
public:
MyEventProcessor(int ourId,
int ourSlot, // co:epconstructor
const char* baseParameterName);
~MyEventProcessor(); // co:epdestructor
virtual Bool_t operator()(const Address_t pEvent,
CEvent& rEvent, // co:epfunccall
CAnalyzer& rAnalyzer,
CBufferDecoder& rDecoder);
private:
void unpackPacket(TranslatorPointer<UShort_t> p); // co:unpackUtil
};
#endif
Example 5-7. MyEventProcessor.cpp
#include <config.h>
#include "MyEventProcessor.h" // co:epinclude
#include <TreeParameter.h>
#include <Analyzer.h> // co:epforwardincludes
#include <BufferDecoder.h>
#include <Event.h>
#include <iostream>
#include <TCLAnalyzer.h> // co:tclanalyzerinclude
#ifdef HAVE_STD_NAMESPACE
using namespace std;
#endif
static const ULong_t CAEN_DATUM_TYPE(0x07000000);
static const ULong_t CAEN_HEADER(0x02000000);
static const ULong_t CAEN_DATA(0);
static const ULong_t CAEN_TRAILER(0x04000000);
static const ULong_t CAEN_INVALID(0x06000000);
55
Przeglądanie stron 59
1 2 ... 55 56 57 58 59 60 61 62 63 64 65 ... 73 74

Komentarze do niniejszej Instrukcji

Brak uwag