-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCV977Unpacker.h
More file actions
54 lines (38 loc) · 1.17 KB
/
CV977Unpacker.h
File metadata and controls
54 lines (38 loc) · 1.17 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
This software is Copyright by the Board of Trustees of Michigan
State University (c) Copyright 2005.
You may use this software under the terms of the GNU public license
(GPL). The terms of this license are described at:
http://www.gnu.org/licenses/gpl.txt
Author:
Ron Fox
NSCL
Michigan State University
East Lansing, MI 48824-1321
*/
#ifndef __CV977UNPACKER_H
#define __CV977UNPACKER_H
#ifndef __CMODULEUNPACKER_H
#include "CModuleUnpacker.h"
#endif
/*!
This unpacker is responsible for unpacking CAEN V977 Input registers.
The unpacker will pull the next single 16 bit word into the buffer
mapping it to the single pararameter that represents.
Typically, this parameter is used to e.g. create a bit-mask spectrum or
to set bit-mask gates.
*/
class CV977Unpacker : public CModuleUnpacker
{
public:
// Canonicals:
CV977Unpacker();
virtual ~CV977Unpacker();
// The unpacker entry:
public:
virtual unsigned int operator()(CEvent& rEvent,
std::vector<unsigned short>& event,
unsigned int offset,
CParamMapCommand::AdcMapping* pMap);
};
#endif