Hall-D Software
alpha
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
DCODAControlEvent.h
Go to the documentation of this file.
1
// $Id$
2
// $HeadURL$
3
//
4
// File: DCODAControlEvent.h
5
// Created: Sat Dec 16 07:55:18 EST 2017
6
// Creator: davidl (on Darwin harriet.local 13.3.0 i386)
7
//
8
9
#ifndef _DCODAControlEvent_
10
#define _DCODAControlEvent_
11
12
#include <JANA/JObject.h>
13
using namespace
jana;
14
15
class
DCODAControlEvent
:
public
JObject{
16
public
:
17
JOBJECT_PUBLIC(
DCODAControlEvent
);
18
19
uint16_t
event_type
;
20
uint32_t
unix_time
;
21
vector<uint32_t>
words
;
22
23
// This method is used primarily for pretty printing
24
// the second argument to AddString is printf style format
25
void
toStrings
(vector<pair<string,string> > &items)
const
{
26
AddString(items,
"event_type"
,
"%04x"
, event_type);
27
AddString(items,
"unix_time"
,
"%ld"
,
unix_time
);
28
AddString(items,
"Nwords"
,
"%d"
, words.size());
29
}
30
31
};
32
33
#endif // _DCODAControlEvent_
34
DCODAControlEvent::toStrings
void toStrings(vector< pair< string, string > > &items) const
Definition:
DCODAControlEvent.h:25
DCODAControlEvent
Definition:
DCODAControlEvent.h:15
DCODAControlEvent::words
vector< uint32_t > words
Definition:
DCODAControlEvent.h:21
DCODAControlEvent::unix_time
uint32_t unix_time
Definition:
DCODAControlEvent.h:20
unix_time
double unix_time
Definition:
HistMacro_PID.C:576
DCODAControlEvent::event_type
uint16_t event_type
Definition:
DCODAControlEvent.h:19
libraries
DAQ
DCODAControlEvent.h
Generated on Fri Jul 26 2019 14:00:27 for Hall-D Software by
1.8.5