-
Notifications
You must be signed in to change notification settings - Fork 2
/
PCaenWindow.h
43 lines (33 loc) · 1.07 KB
/
PCaenWindow.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
41
42
43
//
// File: PCaenWindow.h
//
// Description: Window to display CAEN digitized trigger sums
//
// Revisions: 2012/03/06 - PH Created
//
#ifndef __PCaenWindow_h__
#define __PCaenWindow_h__
#include <Xm/Xm.h>
#include "PImageWindow.h"
#include "PListener.h"
#include "PMenu.h"
#include "ImageData.h"
#include "PHistImage.h"
class PNCDScopeImage;
class PCaenWindow : public PImageWindow, public PListener, public PMenuHandler, public PHistCalc {
public:
PCaenWindow(ImageData *data);
virtual ~PCaenWindow();
virtual void UpdateSelf();
virtual void Listen(int message, void *message_data);
virtual void DoMenuCommand(int anID);
void DoneGrab(PNCDScopeImage *hist);
virtual void DoCalc(PHistImage *hist);
virtual int GetRange(PHistImage *hist, int noffset, int nbin, int *min, int *max);
private:
void SetChannels(int chan_mask);
int GetActiveChannels();
Widget mChannel[kMaxCaenChannels]; // channel canvas widgets
PNCDScopeImage *mHist[kMaxCaenChannels];
};
#endif // __PCaenWindow_h__