-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCFERSUnpacker.h
40 lines (34 loc) · 995 Bytes
/
CFERSUnpacker.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef CFERSUNPACKER_H
#define CFERSUNPACKER_H
#include <config.h>
#include "CFERSA5202Unpacker.h"
#include <EventProcessor.h>
#include <TreeParameter.h>
#include <cstdint>
#include <cstddef>
class CEvent;
class CAnalyzer;
class CBufferDecoder;
class CFERSUnpacker : public CEventProcessor
{
private:
CFERSA5202Unpacker m_unpacker;
CTreeParameterArray m_lg;
CTreeParameterArray m_hg;
CTreeParameterArray m_counts;
CTreeParameterArray m_toa_int;
CTreeParameterArray m_tot_int;
CTreeParameterArray m_toa_float;
CTreeParameterArray m_tot_float;
public:
CFERSUnpacker();
virtual ~CFERSUnpacker();
virtual Bool_t operator()(const Address_t pEvent,
CEvent& rEvent,
CAnalyzer& rAnalyzer,
CBufferDecoder& rDecoder);
private:
Bool_t unpack(TranslatorPointer<std::uint16_t> begin,
uint16_t acqmode);
};
#endif