Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Df250StreamingRawData.h
Go to the documentation of this file.
1 // $Id$
2 // $HeadURL$
3 //
4 // File: Df250StreamingRawData.h
5 // Created: Tue Aug 7 15:25:15 EDT 2012
6 // Creator: davidl (on Darwin harriet.jlab.org 11.4.0 i386)
7 //
8 
9 #ifndef _Df250StreamingRawData_
10 #define _Df250StreamingRawData_
11 
12 #include <DAQ/DDAQAddress.h>
13 
15 
16  /// Holds streaming raw data for one event in one
17  /// channel of a single f250 Flash ADC module.
18  /// This should represent a dump of the entire
19  /// memory for the channel (~17 milliseconds worth
20  /// of data) It will only be used for debugging.
21 
22  public:
24 
25  vector<uint16_t> samples; // from Streaming Raw Data words 2-N (each word contains 2 samples)
26  bool invalid_samples; // true if any sample's "not valid" bit set
27  bool overflow; // true if any sample's "overflow" bit set
28 
29  // This method is used primarily for pretty printing
30  // the second argument to AddString is printf style format
31  void toStrings(vector<pair<string,string> > &items)const{
33  AddString(items, "Nsamples", "%d", samples.size());
34  AddString(items, "invalid_samples", "%d", invalid_samples);
35  AddString(items, "overflow", "%d", overflow);
36  }
37 
38 };
39 
40 #endif // _Df250StreamingRawData_
41 
void toStrings(vector< pair< string, string > > &items) const
Definition: DDAQAddress.h:47
vector< uint16_t > samples
This class holds the Crate, Slot, Channel address for a digitized value from the DAQ system...
Definition: DDAQAddress.h:26
JOBJECT_PUBLIC(Df250StreamingRawData)
Holds streaming raw data for one event in one channel of a single f250 Flash ADC module. This should represent a dump of the entire memory for the channel (~17 milliseconds worth of data) It will only be used for debugging.
void toStrings(vector< pair< string, string > > &items) const