Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
lardataobj
lardataobj
OpticalDetectorData
ChannelDataGroup.h
Go to the documentation of this file.
1
/// ChannelDataGroup.h
2
/// William Seligman <seligman@nevis.columbia.edu>
3
///
4
/// This a general container class for vectors of ADC counts. It can
5
/// be used for collections of ADC counts from the PMTS, channels
6
/// output by the Front End Modules (FEMs), etc.
7
///
8
9
#ifndef optdata_ChannelDataGroup_h
10
#define optdata_ChannelDataGroup_h
11
12
// LArSoft includes
13
#include "
lardataobj/OpticalDetectorData/OpticalTypes.h
"
14
#include "
lardataobj/OpticalDetectorData/ChannelData.h
"
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
{
25
public
:
26
27
// Simple constructor/destructor.
28
ChannelDataGroup
(
Optical_Category_t
category
=
kUndefined
,
29
TimeSlice_t
time
= 0,
30
Frame_t
frame = 0 )
31
:
fm_category
(
category
)
32
,
fm_timeSlice
(
time
)
33
,
fm_frame
(frame)
34
{};
35
36
~ChannelDataGroup
() {};
37
38
// Here we have getters and setters for the time information.
39
40
41
Optical_Category_t
Category
()
const
{
return
fm_category
; }
42
43
// A time slice associated with the first bin in the channel
44
// data. For example, the first bin of the ADC channels may refer
45
// to clock value 8595824 (in some arbitrary units).
46
TimeSlice_t
TimeSlice
()
const
{
return
fm_timeSlice
; }
47
void
SetTimeSlice
(
TimeSlice_t
t
) {
fm_timeSlice
=
t
; }
48
49
// The frame number associated with the first frame in the channels.
50
Frame_t
Frame
()
const
{
return
fm_frame
; }
51
void
SetFrame
(
Frame_t
f
) {
fm_frame
=
f
; }
52
53
54
private
:
55
Optical_Category_t
fm_category
;
56
TimeSlice_t
fm_timeSlice
;
57
Frame_t
fm_frame
;
58
};
59
60
}
// namespace optdata
61
62
#endif // optdata_ChannelDataGroup_h
optdata::ChannelDataGroup::fm_timeSlice
TimeSlice_t fm_timeSlice
Definition:
ChannelDataGroup.h:56
keras_to_tensorflow.f
f
Definition:
keras_to_tensorflow.py:162
vector
struct vector vector
optdata::Optical_Category_t
enum optdata::_optical_category_t Optical_Category_t
optdata::kUndefined
Definition:
OpticalTypes.h:25
optdata::ChannelDataGroup::fm_category
Optical_Category_t fm_category
Definition:
ChannelDataGroup.h:55
optdata::ChannelDataGroup::ChannelDataGroup
ChannelDataGroup(Optical_Category_t category=kUndefined, TimeSlice_t time=0, Frame_t frame=0)
Definition:
ChannelDataGroup.h:28
time
reco_momentum_tuples.t
t
Definition:
reco_momentum_tuples.py:25
python.root_metadata.category
category
Definition:
root_metadata.py:29
optdata::ChannelDataGroup::fm_frame
Frame_t fm_frame
Definition:
ChannelDataGroup.h:57
optdata::ChannelDataGroup
Definition:
ChannelDataGroup.h:23
optdata::ChannelDataGroup::~ChannelDataGroup
~ChannelDataGroup()
Definition:
ChannelDataGroup.h:36
optdata::ChannelDataGroup::Frame
Frame_t Frame() const
Definition:
ChannelDataGroup.h:50
optdata::ChannelDataGroup::SetTimeSlice
void SetTimeSlice(TimeSlice_t t)
Definition:
ChannelDataGroup.h:47
optdata::TimeSlice_t
unsigned int TimeSlice_t
Definition:
OpticalTypes.h:20
optdata::Frame_t
unsigned int Frame_t
Definition:
OpticalTypes.h:21
OpticalTypes.h
ChannelData.h
optdata::ChannelDataGroup::TimeSlice
TimeSlice_t TimeSlice() const
Definition:
ChannelDataGroup.h:46
optdata::ChannelDataGroup::SetFrame
void SetFrame(Frame_t f)
Definition:
ChannelDataGroup.h:51
optdata::ChannelDataGroup::Category
Optical_Category_t Category() const
Definition:
ChannelDataGroup.h:41
optdata
Definition:
ChannelData.h:17
Generated by
1.8.11