LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
DAQHeader.h
Go to the documentation of this file.
1
//
3
// Definition of basic DAQ header information
4
//
5
// brebel@fnal.gov
6
//
7
// -modified DAQHeader class to save all information available in
8
// binary version of DAQ480 software. - Mitch Soderberg 2/19/09
9
//
11
12
#ifndef DAQHEADER_H
13
#define DAQHEADER_H
14
15
#include <vector>
16
#include <iosfwd>
17
#include <time.h>
18
#include <stdint.h>
19
20
namespace
raw
{
21
22
class
DAQHeader
{
23
public
:
24
DAQHeader
();
// Default constructor
25
26
private
:
27
28
unsigned
int
fStatus
;
29
int
fFixed
;
30
unsigned
short
fFormat
;
31
unsigned
short
fSoftware
;
32
unsigned
short
fRun
;
33
unsigned
short
fSubRun
;
//-> Added by D. Caratelli (dcaratelli@nevis.columbia.edu) after E. Church got approval @ Dec. 1st LArSoft mtg. This is a fucking nice comment. --kazu
34
unsigned
short
fEvent
;
35
time_t
fTime
;
36
short
fSpare
;
37
uint32_t
fNchan
;
38
39
40
public
:
41
42
DAQHeader
(
unsigned
int
status);
// Ascii DAQ constructor
43
DAQHeader
(
unsigned
int
status,
// Binary DAQ constructor - SubRun Specified
44
int
fixed,
45
unsigned
short
format,
46
unsigned
short
software,
47
unsigned
short
run,
48
unsigned
short
subrun,
49
unsigned
short
event
,
50
time_t time,
51
short
spare,
52
uint32_t nchan);
53
DAQHeader
(
unsigned
int
status,
// Binary DAQ constructor - SubRun Not Specified
54
int
fixed,
55
unsigned
short
format,
56
unsigned
short
software,
57
unsigned
short
run,
58
unsigned
short
event
,
59
time_t time,
60
short
spare,
61
uint32_t nchan);
62
63
// Set Methods
64
void
SetStatus
(
unsigned
int
i);
65
void
SetFixedWord
(
int
i);
66
void
SetFileFormat
(
unsigned
short
i);
67
void
SetSoftwareVersion
(
unsigned
short
i);
68
void
SetRun
(
unsigned
short
i);
69
void
SetSubRun
(
unsigned
short
i);
70
void
SetEvent
(
unsigned
short
i);
71
void
SetTimeStamp
(time_t t);
72
void
SetSpareWord
(
short
s
);
73
void
SetNChannels
(uint32_t i);
74
75
// Get Methods
76
unsigned
int
GetStatus
()
const
;
77
int
GetFixedWord
()
const
;
78
unsigned
short
GetFileFormat
()
const
;
79
unsigned
short
GetSoftwareVersion
()
const
;
80
unsigned
short
GetRun
()
const
;
81
unsigned
short
GetSubRun
()
const
;
82
unsigned
short
GetEvent
()
const
;
83
time_t
GetTimeStamp
()
const
;
84
short
GetSpareWord
()
const
;
85
uint32_t
GetNChannels
()
const
;
86
87
};
88
}
89
90
91
inline
void
raw::DAQHeader::SetStatus
(
unsigned
int
i) {
fStatus
= i; }
92
inline
void
raw::DAQHeader::SetFixedWord
(
int
i) {
fFixed
= i; }
93
inline
void
raw::DAQHeader::SetFileFormat
(
unsigned
short
i) {
fFormat
= i; }
94
inline
void
raw::DAQHeader::SetSoftwareVersion
(
unsigned
short
i) {
fSoftware
= i; }
95
inline
void
raw::DAQHeader::SetRun
(
unsigned
short
i) {
fRun
= i; }
96
inline
void
raw::DAQHeader::SetSubRun
(
unsigned
short
i) {
fSubRun
= i; }
97
inline
void
raw::DAQHeader::SetEvent
(
unsigned
short
i) {
fEvent
= i; }
98
inline
void
raw::DAQHeader::SetTimeStamp
(time_t t) {
fTime
= t; }
99
inline
void
raw::DAQHeader::SetSpareWord
(
short
s
) {
fSpare
=
s
; }
100
inline
void
raw::DAQHeader::SetNChannels
(uint32_t i) {
fNchan
= i; }
101
inline
unsigned
int
raw::DAQHeader::GetStatus
()
const
{
return
fStatus
; }
102
inline
int
raw::DAQHeader::GetFixedWord
()
const
{
return
fFixed
; }
103
inline
unsigned
short
raw::DAQHeader::GetFileFormat
()
const
{
return
fFormat
; }
104
inline
unsigned
short
raw::DAQHeader::GetSoftwareVersion
()
const
{
return
fSoftware
; }
105
inline
unsigned
short
raw::DAQHeader::GetRun
()
const
{
return
fRun
; }
106
inline
unsigned
short
raw::DAQHeader::GetSubRun
()
const
{
return
fSubRun
; }
107
inline
unsigned
short
raw::DAQHeader::GetEvent
()
const
{
return
fEvent
; }
108
inline
time_t
raw::DAQHeader::GetTimeStamp
()
const
{
return
fTime
; }
109
inline
short
raw::DAQHeader::GetSpareWord
()
const
{
return
fSpare
; }
110
inline
uint32_t
raw::DAQHeader::GetNChannels
()
const
{
return
fNchan
; }
111
112
113
#endif // DAQHEADER_H
114
raw::DAQHeader::fEvent
unsigned short fEvent
Definition:
DAQHeader.h:34
raw::DAQHeader::fStatus
unsigned int fStatus
Definition:
DAQHeader.h:28
s
Float_t s
Definition:
plot.C:23
raw::DAQHeader::SetSpareWord
void SetSpareWord(short s)
Definition:
DAQHeader.h:99
raw::DAQHeader::fFixed
int fFixed
Definition:
DAQHeader.h:29
raw::DAQHeader::SetRun
void SetRun(unsigned short i)
Definition:
DAQHeader.h:95
raw::DAQHeader::fRun
unsigned short fRun
Definition:
DAQHeader.h:32
raw::DAQHeader
Definition:
DAQHeader.h:22
raw::DAQHeader::fSpare
short fSpare
Definition:
DAQHeader.h:36
raw::DAQHeader::SetTimeStamp
void SetTimeStamp(time_t t)
Definition:
DAQHeader.h:98
raw
Raw data description.
Definition:
RawTypes.h:6
raw::DAQHeader::fSoftware
unsigned short fSoftware
Definition:
DAQHeader.h:31
raw::DAQHeader::GetSubRun
unsigned short GetSubRun() const
Definition:
DAQHeader.h:106
raw::DAQHeader::GetFileFormat
unsigned short GetFileFormat() const
Definition:
DAQHeader.h:103
raw::DAQHeader::fNchan
uint32_t fNchan
Definition:
DAQHeader.h:37
raw::DAQHeader::GetFixedWord
int GetFixedWord() const
Definition:
DAQHeader.h:102
raw::DAQHeader::GetStatus
unsigned int GetStatus() const
Definition:
DAQHeader.h:101
raw::DAQHeader::SetSubRun
void SetSubRun(unsigned short i)
Definition:
DAQHeader.h:96
raw::DAQHeader::fFormat
unsigned short fFormat
Definition:
DAQHeader.h:30
raw::DAQHeader::SetNChannels
void SetNChannels(uint32_t i)
Definition:
DAQHeader.h:100
raw::DAQHeader::fTime
time_t fTime
Definition:
DAQHeader.h:35
raw::DAQHeader::SetFixedWord
void SetFixedWord(int i)
Definition:
DAQHeader.h:92
raw::DAQHeader::GetRun
unsigned short GetRun() const
Definition:
DAQHeader.h:105
raw::DAQHeader::GetSpareWord
short GetSpareWord() const
Definition:
DAQHeader.h:109
raw::DAQHeader::GetEvent
unsigned short GetEvent() const
Definition:
DAQHeader.h:107
raw::DAQHeader::DAQHeader
DAQHeader()
Definition:
DAQHeader.cxx:16
raw::DAQHeader::GetNChannels
uint32_t GetNChannels() const
Definition:
DAQHeader.h:110
raw::DAQHeader::SetSoftwareVersion
void SetSoftwareVersion(unsigned short i)
Definition:
DAQHeader.h:94
raw::DAQHeader::GetSoftwareVersion
unsigned short GetSoftwareVersion() const
Definition:
DAQHeader.h:104
raw::DAQHeader::SetEvent
void SetEvent(unsigned short i)
Definition:
DAQHeader.h:97
raw::DAQHeader::SetStatus
void SetStatus(unsigned int i)
Definition:
DAQHeader.h:91
raw::DAQHeader::SetFileFormat
void SetFileFormat(unsigned short i)
Definition:
DAQHeader.h:93
raw::DAQHeader::GetTimeStamp
time_t GetTimeStamp() const
Definition:
DAQHeader.h:108
raw::DAQHeader::fSubRun
unsigned short fSubRun
Definition:
DAQHeader.h:33
event
Event finding and building.
Definition:
AggregateEvent_module.cc:55
lardataobj
v07_06_00
source
lardataobj
RawData
DAQHeader.h
Generated on Wed Dec 12 2018 14:42:45 for LArSoft by
1.8.11