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
DCODAEventInfo.h
Go to the documentation of this file.
1
// $Id$
2
// $HeadURL$
3
//
4
// File: DCODAEventInfo.h
5
// Created: Wed Oct 15 11:35:43 EDT 2014
6
// Creator: davidl (on Darwin harriet.local 13.3.0 i386)
7
//
8
9
#ifndef _DCODAEventInfo_
10
#define _DCODAEventInfo_
11
12
#include <JANA/JObject.h>
13
using namespace
jana;
14
15
class
DCODAEventInfo
:
public
JObject{
16
public
:
17
JOBJECT_PUBLIC(
DCODAEventInfo
);
18
19
uint32_t
run_number
;
20
uint32_t
run_type
;
21
uint64_t
event_number
;
22
uint16_t
event_type
;
23
uint64_t
avg_timestamp
;
24
25
// This method is used primarily for pretty printing
26
// the second argument to AddString is printf style format
27
void
toStrings
(vector<pair<string,string> > &items)
const
{
28
AddString(items,
"run_number"
,
"%d"
, run_number);
29
AddString(items,
"run_type"
,
"%d"
, run_type);
30
AddString(items,
"event_number"
,
"%ld"
, event_number);
31
AddString(items,
"event_type"
,
"%d"
, event_type);
32
AddString(items,
"avg_timestamp"
,
"%ld"
, avg_timestamp);
33
}
34
35
};
36
37
#endif // _DCODAEventInfo_
38
DCODAEventInfo::event_type
uint16_t event_type
Definition:
DCODAEventInfo.h:22
DCODAEventInfo::avg_timestamp
uint64_t avg_timestamp
Definition:
DCODAEventInfo.h:23
DCODAEventInfo::run_number
uint32_t run_number
Definition:
DCODAEventInfo.h:19
DCODAEventInfo::toStrings
void toStrings(vector< pair< string, string > > &items) const
Definition:
DCODAEventInfo.h:27
DCODAEventInfo
Definition:
DCODAEventInfo.h:15
DCODAEventInfo::run_type
uint32_t run_type
Definition:
DCODAEventInfo.h:20
DCODAEventInfo::event_number
uint64_t event_number
Definition:
DCODAEventInfo.h:21
libraries
DAQ
DCODAEventInfo.h
Generated on Fri Jul 26 2019 14:00:27 for Hall-D Software by
1.8.5