LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
raw::OpDetWaveform Class Reference

#include "OpDetWaveform.h"

Inheritance diagram for raw::OpDetWaveform:

Public Member Functions

 OpDetWaveform (TimeStamp_t time=std::numeric_limits< TimeStamp_t >::max(), Channel_t chan=std::numeric_limits< Channel_t >::max(), size_type len=0)
 
 OpDetWaveform (TimeStamp_t time, Channel_t chan, std::vector< uint16_t > rhs)
 
 ~OpDetWaveform ()
 
std::vector< ADC_Count_t > & Waveform ()
 
Channel_t ChannelNumber () const
 
TimeStamp_t TimeStamp () const
 
void SetChannelNumber (Channel_t chan)
 
void SetTimeStamp (TimeStamp_t time)
 

Public Attributes

elements
 STL member. More...
 

Private Attributes

Channel_t fChannel
 
TimeStamp_t fTimeStamp
 

Detailed Description

Definition at line 26 of file OpDetWaveform.h.

Constructor & Destructor Documentation

raw::OpDetWaveform::OpDetWaveform ( TimeStamp_t  time = std::numeric_limits<TimeStamp_t>::max(),
Channel_t  chan = std::numeric_limits<Channel_t>::max(),
size_type  len = 0 
)
inline

Definition at line 39 of file OpDetWaveform.h.

42  : fChannel(chan)
43  , fTimeStamp(time)
44  {
45  this->reserve(len);
46  };
TimeStamp_t fTimeStamp
Definition: OpDetWaveform.h:30
raw::OpDetWaveform::OpDetWaveform ( TimeStamp_t  time,
Channel_t  chan,
std::vector< uint16_t >  rhs 
)
inline

Definition at line 49 of file OpDetWaveform.h.

52  : fChannel(chan)
53  , fTimeStamp(time)
54  {
55  this->reserve(rhs.size());
56  for (unsigned int i =0; i < rhs.size(); i++)
57  this->push_back(rhs[i]);
58  };
TimeStamp_t fTimeStamp
Definition: OpDetWaveform.h:30
raw::OpDetWaveform::~OpDetWaveform ( )
inline

Definition at line 61 of file OpDetWaveform.h.

61 {};

Member Function Documentation

Channel_t raw::OpDetWaveform::ChannelNumber ( ) const
inline

Definition at line 72 of file OpDetWaveform.h.

References fChannel.

Referenced by detsim::DumpOpDetWaveforms::DumpWaveform(), and raw::operator<().

72 { return fChannel; }
void raw::OpDetWaveform::SetChannelNumber ( Channel_t  chan)
inline

Definition at line 74 of file OpDetWaveform.h.

74 { fChannel = chan; }
void raw::OpDetWaveform::SetTimeStamp ( TimeStamp_t  time)
inline

Definition at line 75 of file OpDetWaveform.h.

75 { fTimeStamp = time; }
TimeStamp_t fTimeStamp
Definition: OpDetWaveform.h:30
TimeStamp_t raw::OpDetWaveform::TimeStamp ( ) const
inline

Definition at line 73 of file OpDetWaveform.h.

References fTimeStamp.

Referenced by detsim::DumpOpDetWaveforms::DumpWaveform(), and raw::operator<().

73 { return fTimeStamp; }
TimeStamp_t fTimeStamp
Definition: OpDetWaveform.h:30
std::vector<ADC_Count_t>& raw::OpDetWaveform::Waveform ( )
inline

Definition at line 64 of file OpDetWaveform.h.

64 { return *this; }

Member Data Documentation

T std::vector< T >::elements
inherited

STL member.

Channel_t raw::OpDetWaveform::fChannel
private

Definition at line 29 of file OpDetWaveform.h.

Referenced by ChannelNumber().

TimeStamp_t raw::OpDetWaveform::fTimeStamp
private

Definition at line 30 of file OpDetWaveform.h.

Referenced by TimeStamp().


The documentation for this class was generated from the following file: