Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Df250WindowSum.h
Go to the documentation of this file.
1 // $Id$
2 // $HeadURL$
3 //
4 // File: Df250WindowSum.h
5 // Created: Tue Aug 7 15:24:31 EDT 2012
6 // Creator: davidl (on Darwin harriet.jlab.org 11.4.0 i386)
7 //
8 
9 #ifndef _Df250WindowSum_
10 #define _Df250WindowSum_
11 
12 #include <DAQ/DDAQAddress.h>
13 
15 
16  /// Holds window sum data for one event in
17  /// one channel of a single f250 Flash ADC module.
18 
19  public:
21 
22  Df250WindowSum(uint32_t rocid=0, uint32_t slot=0, uint32_t channel=0, uint32_t itrigger=0, uint32_t sum=0, bool overflow=false):DDAQAddress(rocid, slot, channel, itrigger),sum(sum),overflow(overflow){}
23 
24  uint32_t sum; // from Window Sum Data word
25  bool overflow; // true if "overflow" bit set
26 
27  // This method is used primarily for pretty printing
28  // the second argument to AddString is printf style format
29  void toStrings(vector<pair<string,string> > &items)const{
31  AddString(items, "sum", "%d", sum);
32  AddString(items, "overflow", "%d", overflow);
33  }
34 
35 };
36 
37 #endif // _Df250WindowSum_
38 
void toStrings(vector< pair< string, string > > &items) const
Definition: DDAQAddress.h:47
JOBJECT_PUBLIC(Df250WindowSum)
Holds window sum data for one event in one channel of a single f250 Flash ADC module.
This class holds the Crate, Slot, Channel address for a digitized value from the DAQ system...
Definition: DDAQAddress.h:26
uint32_t channel
Definition: DDAQAddress.h:34
uint32_t rocid
Definition: DDAQAddress.h:32
Df250WindowSum(uint32_t rocid=0, uint32_t slot=0, uint32_t channel=0, uint32_t itrigger=0, uint32_t sum=0, bool overflow=false)
uint32_t itrigger
Definition: DDAQAddress.h:35
void toStrings(vector< pair< string, string > > &items) const
uint32_t slot
Definition: DDAQAddress.h:33