LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
ChannelDataGroup.h
Go to the documentation of this file.
1 
9 #ifndef optdata_ChannelDataGroup_h
10 #define optdata_ChannelDataGroup_h
11 
12 // LArSoft includes
15 
16 // C++ includes
17 #include <vector>
18 
19 namespace optdata {
20 
21  // Collection of all the channels associated with a certain time frame
22  // (e.g., an event, a trigger).
23  class ChannelDataGroup : public std::vector<ChannelData> {
24  public:
25  // Simple constructor/destructor.
27  TimeSlice_t time = 0,
28  Frame_t frame = 0)
29  : fm_category(category), fm_timeSlice(time), fm_frame(frame){};
30 
32 
33  // Here we have getters and setters for the time information.
34 
36 
37  // A time slice associated with the first bin in the channel
38  // data. For example, the first bin of the ADC channels may refer
39  // to clock value 8595824 (in some arbitrary units).
40  TimeSlice_t TimeSlice() const { return fm_timeSlice; }
42 
43  // The frame number associated with the first frame in the channels.
44  Frame_t Frame() const { return fm_frame; }
45  void SetFrame(Frame_t f) { fm_frame = f; }
46 
47  private:
51  };
52 
53 } // namespace optdata
54 
55 #endif // optdata_ChannelDataGroup_h
enum optdata::_optical_category_t Optical_Category_t
Optical_Category_t fm_category
ChannelDataGroup(Optical_Category_t category=kUndefined, TimeSlice_t time=0, Frame_t frame=0)
TFile f
Definition: plotHisto.C:6
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Definition: DumpUtils.h:289
void SetTimeSlice(TimeSlice_t t)
unsigned int TimeSlice_t
Definition: OpticalTypes.h:20
unsigned int Frame_t
Definition: OpticalTypes.h:21
TimeSlice_t TimeSlice() const
Optical_Category_t Category() const