NSCL DDAS 12.2-009
Support for XIA DDAS at FRIB
CMyTrigger.h
Go to the documentation of this file.
1
6#ifndef CMYTRIGGER_H
7#define CMYTRIGGER_H
8
9#include <ctime>
10
11#include <CEventTrigger.h>
12
23class CMyTrigger : public CEventTrigger {
24private:
25 bool m_retrigger;
26 unsigned int nFIFOWords;
27 int NumberOfModules;
28 unsigned short ModNum;
29 unsigned m_fifoThreshold;
30 time_t m_lastTriggerTime;
31 unsigned int *m_wordsInEachModule;
32
33 // Constructors, destructors and other cannonical operations:
34public:
36 CMyTrigger();
39
40 // Mutators:
41protected:
42 // Class operations:
43public:
45 virtual void setup();
47 virtual void teardown();
54 virtual bool operator()();
60 virtual void Initialize(int nummod);
65 void Reset();
71 unsigned int *getWordsInModules() const { return m_wordsInEachModule; };
72};
73
74#endif
Trigger class for DDAS.
Definition: CMyTrigger.h:23
unsigned int * getWordsInModules() const
Get the number of words in each module.
Definition: CMyTrigger.h:71
virtual void setup()
Start the trigger timeout.
Definition: CMyTrigger.cpp:44
void Reset()
Control for determing if trigger should poll modules or pass control back to CEventSegment for proces...
Definition: CMyTrigger.cpp:58
CMyTrigger()
Default constructor.
Definition: CMyTrigger.cpp:24
virtual void teardown()
Called as data taking ends.
Definition: CMyTrigger.cpp:52
virtual void Initialize(int nummod)
Setup the trigger and FIFO words array.
Definition: CMyTrigger.cpp:64
~CMyTrigger()
Destructor.
Definition: CMyTrigger.cpp:42
virtual bool operator()()
operator()
Definition: CMyTrigger.cpp:83