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
Comentários a estes Manuais