LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
DAQHeader.cxx
Go to the documentation of this file.
1 //
3 // DAQHeader class
4 //
5 // brebel@fnal.gov
6 //
8 
10 #include <string>
11 #include <iostream>
12 
13 namespace raw{
14 
15  //----------------------------------------------------------------------
17  : fStatus(0)
18  , fFixed(0)
19  , fFormat(0)
20  , fSoftware(0)
21  , fRun(0)
22  , fSubRun(0)
23  , fEvent(0)
24  , fTime(0)
25  , fSpare(0)
26  , fNchan(0)
27  {
28 
29  }
30 
31  //----------------------------------------------------------------------
32  DAQHeader::DAQHeader(unsigned int status)
33  : fStatus(status)
34  , fFixed(0)
35  , fFormat(0)
36  , fSoftware(0)
37  , fRun(0)
38  , fSubRun(0)
39  , fEvent(0)
40  , fTime(0)
41  , fSpare(0)
42  , fNchan(0)
43  {
44 
45  }
46 
47  //----------------------------------------------------------------------
48  DAQHeader::DAQHeader(unsigned int status,
49  int fixed,
50  unsigned short format,
51  unsigned short software,
52  unsigned short run,
53  unsigned short subrun,
54  unsigned short event,
55  time_t time,
56  short spare,
57  uint32_t nchan)
58  : fStatus(status)
59  , fFixed(fixed)
60  , fFormat(format)
61  , fSoftware(software)
62  , fRun(run)
63  , fSubRun(subrun)
64  , fEvent(event)
65  , fTime(time)
66  , fSpare(spare)
67  , fNchan(nchan)
68  {
69 
70  }
71 
72 
73  //----------------------------------------------------------------------
74  DAQHeader::DAQHeader(unsigned int status,
75  int fixed,
76  unsigned short format,
77  unsigned short software,
78  unsigned short run,
79  unsigned short event,
80  time_t time,
81  short spare,
82  uint32_t nchan)
83  : fStatus(status)
84  , fFixed(fixed)
85  , fFormat(format)
86  , fSoftware(software)
87  , fRun(run)
88  , fSubRun(0)
89  , fEvent(event)
90  , fTime(time)
91  , fSpare(spare)
92  , fNchan(nchan)
93  {
94 
95  }
96 
97 }
99 
unsigned short fEvent
Definition: DAQHeader.h:34
unsigned int fStatus
Definition: DAQHeader.h:28
unsigned short fRun
Definition: DAQHeader.h:32
short fSpare
Definition: DAQHeader.h:36
Raw data description.
Definition: RawTypes.h:6
unsigned short fSoftware
Definition: DAQHeader.h:31
uint32_t fNchan
Definition: DAQHeader.h:37
unsigned short fFormat
Definition: DAQHeader.h:30
time_t fTime
Definition: DAQHeader.h:35
unsigned short fSubRun
Definition: DAQHeader.h:33
Event finding and building.