~m-a-uchida/maus/RKdEdxDevel

« back to all changes in this revision

Viewing changes to src/common_cpp/DataStructure/DAQData.hh

  • Committer: Durga Rajaram
  • Date: 2014-01-14 07:07:02 UTC
  • mfrom: (659.1.80 relcand)
  • Revision ID: durga@fnal.gov-20140114070702-2l1fuj1w6rraw7xe
Tags: MAUS-v0.7.6
MAUS-v0.7.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
#include <vector>
21
21
 
22
 
#include "src/common_cpp/Utils/VersionNumber.hh"
23
 
#include "src/common_cpp/DataStructure/KLDaq.hh"
24
 
#include "src/common_cpp/DataStructure/Trigger.hh"
25
 
#include "src/common_cpp/DataStructure/TOFDaq.hh"
26
 
#include "src/common_cpp/DataStructure/V830.hh"
27
 
#include "src/common_cpp/DataStructure/CkovDaq.hh"
28
 
#include "src/common_cpp/DataStructure/Unknown.hh"
29
 
#include "src/common_cpp/DataStructure/TriggerRequest.hh"
30
 
#include "src/common_cpp/DataStructure/Tag.hh"
31
 
#include "src/common_cpp/DataStructure/TrackerDaq.hh"
 
22
#include "Utils/VersionNumber.hh"
 
23
#include "DataStructure/KLDaq.hh"
 
24
#include "DataStructure/Trigger.hh"
 
25
#include "DataStructure/TOFDaq.hh"
 
26
#include "DataStructure/V830.hh"
 
27
#include "DataStructure/CkovDaq.hh"
 
28
#include "DataStructure/EMRDaq.hh"
 
29
#include "DataStructure/Unknown.hh"
 
30
#include "DataStructure/TriggerRequest.hh"
 
31
#include "DataStructure/Tag.hh"
 
32
#include "DataStructure/TrackerDaq.hh"
32
33
 
33
34
namespace MAUS {
34
35
// Needed for ROOT
56
57
 *  @var tag  <--description-->
57
58
 *  @var tof0  <--description-->
58
59
 *  @var trigger  <--description-->
 
60
 *  @var emr  <--description-->
59
61
 */
60
62
 
61
63
class DAQData {
82
84
    /** Returns TriggerRequestArray */
83
85
    TriggerRequestArray GetTriggerRequestArray() const;
84
86
 
 
87
    /** Returns TriggerRequestArray pointer*/
 
88
    TriggerRequestArray* GetTriggerRequestArrayPtr();
 
89
 
85
90
    /** Get an element from TriggerRequestArray (needed for PyROOT) */
86
91
    TriggerRequest* GetTriggerRequestArrayElement(size_t index) const;
87
92
 
94
99
    /** Returns TOF1DaqArray */
95
100
    TOF1DaqArray GetTOF1DaqArray() const;
96
101
 
 
102
    /** Returns TOF1DaqArray pointer*/
 
103
    TOF1DaqArray* GetTOF1DaqArrayPtr();
 
104
 
97
105
    /** Get an element from TOF1DaqArray (needed for PyROOT) */
98
106
    TOFDaq* GetTOF1DaqArrayElement(size_t index) const;
99
107
 
106
114
    /** Returns CkovArray */
107
115
    CkovArray GetCkovArray() const;
108
116
 
 
117
    /** Returns CkovArray pointer*/
 
118
    CkovArray* GetCkovArrayPtr();
 
119
 
109
120
    /** Get an element from CkovArray (needed for PyROOT) */
110
121
    CkovDaq* GetCkovArrayElement(size_t index) const;
111
122
 
118
129
    /** Returns TOF2DaqArray */
119
130
    TOF2DaqArray GetTOF2DaqArray() const;
120
131
 
 
132
    /** Returns TOF2DaqArray pointer*/
 
133
    TOF2DaqArray* GetTOF2DaqArrayPtr();
 
134
 
121
135
    /** Get an element from TOF2DaqArray (needed for PyROOT) */
122
136
    TOFDaq* GetTOF2DaqArrayElement(size_t index) const;
123
137
 
129
143
 
130
144
    Tracker0DaqArray GetTracker0DaqArray() const;
131
145
 
 
146
    /** Returns UnknownArray pointer*/
 
147
    Tracker0DaqArray* GetTracker0DaqArrayPtr();
 
148
 
132
149
    TrackerDaq* GetTracker0DaqArrayElement(size_t index) const;
133
150
 
134
151
    size_t GetTracker0DaqArraySize() const;
137
154
 
138
155
    Tracker1DaqArray GetTracker1DaqArray() const;
139
156
 
 
157
    /** Returns UnknownArray pointer*/
 
158
    Tracker1DaqArray* GetTracker1DaqArrayPtr();
 
159
 
140
160
    TrackerDaq* GetTracker1DaqArrayElement(size_t index) const;
141
161
 
142
162
    size_t GetTracker1DaqArraySize() const;
146
166
    /** Returns UnknownArray */
147
167
    UnknownArray GetUnknownArray() const;
148
168
 
 
169
    /** Returns UnknownArray pointer*/
 
170
    UnknownArray* GetUnknownArrayPtr();
 
171
 
149
172
    /** Get an element from UnknownArray (needed for PyROOT) */
150
173
    Unknown* GetUnknownArrayElement(size_t index) const;
151
174
 
158
181
    /** Returns KLArray */
159
182
    KLArray GetKLArray() const;
160
183
 
 
184
    /** Returns KLArray pointer*/
 
185
    KLArray* GetKLArrayPtr();
 
186
 
161
187
    /** Get an element from KLArray (needed for PyROOT) */
162
188
    KLDaq* GetKLArrayElement(size_t index) const;
163
189
 
170
196
    /** Returns TagArray */
171
197
    TagArray GetTagArray() const;
172
198
 
 
199
    /** Returns TagArray pointer*/
 
200
    TagArray* GetTagArrayPtr();
 
201
 
173
202
    /** Get an element from TagArray (needed for PyROOT) */
174
203
    Tag* GetTagArrayElement(size_t index) const;
175
204
 
182
211
    /** Returns TOF0DaqArray */
183
212
    TOF0DaqArray GetTOF0DaqArray() const;
184
213
 
 
214
    /** Returns TOF0DaqArray pointer*/
 
215
    TOF0DaqArray* GetTOF0DaqArrayPtr();
 
216
 
185
217
    /** Get an element from TOF0DaqArray (needed for PyROOT) */
186
218
    TOFDaq* GetTOF0DaqArrayElement(size_t index) const;
187
219
 
194
226
    /** Returns TriggerArray */
195
227
    TriggerArray GetTriggerArray() const;
196
228
 
 
229
    /** Returns TriggerArray pointer*/
 
230
    TriggerArray* GetTriggerArrayPtr();
 
231
 
197
232
    /** Get an element from TriggerArray (needed for PyROOT) */
198
233
    Trigger* GetTriggerArrayElement(size_t index) const;
199
234
 
203
238
    /** Sets TriggerArray */
204
239
    void SetTriggerArray(TriggerArray trigger);
205
240
 
 
241
    /** Returns EMRDaqArray */
 
242
    EMRDaq GetEMRDaq() const;
 
243
 
 
244
    /** Returns EMRDaqArray pointer */
 
245
    EMRDaq* GetEMRDaqPtr();
 
246
 
 
247
    /** Sets EMRDaqArray */
 
248
    void SetEMRDaq(EMRDaq emr);
 
249
 
206
250
  private:
207
251
    V830 _V830;
208
 
    TriggerRequestArray _trigger_request;
209
 
    TOF1DaqArray _tof1;
210
 
    CkovArray _ckov;
211
 
    TOF2DaqArray _tof2;
212
 
    UnknownArray _unknown;
213
 
    KLArray _kl;
214
 
    TagArray _tag;
215
 
    TOF0DaqArray _tof0;
216
 
    TriggerArray _trigger;
217
 
    Tracker0DaqArray _tracker0;
218
 
    Tracker1DaqArray _tracker1;
 
252
    TriggerRequestArray  _trigger_request;
 
253
    TOF1DaqArray         _tof1;
 
254
    CkovArray            _ckov;
 
255
    TOF2DaqArray         _tof2;
 
256
    UnknownArray         _unknown;
 
257
    KLArray              _kl;
 
258
    TagArray             _tag;
 
259
    TOF0DaqArray         _tof0;
 
260
    TriggerArray         _trigger;
 
261
    EMRDaq               _emr;
 
262
    Tracker0DaqArray     _tracker0;
 
263
    Tracker1DaqArray     _tracker1;
219
264
 
220
265
    MAUS_VERSIONED_CLASS_DEF(DAQData)
221
266
};