#include <tpc_waveform.hh>
Inheritance diagram for tpc_waveform:

Public Member Functions | |
| tpc_waveform (PMT::ch_number_t ch=PMT::INVALID_CH, size_t len=0) | |
| Default constructor. | |
| tpc_waveform (const tpc_waveform &original) | |
| Default copy constructor. | |
| void | set_channel_number (PMT::ch_number_t ch) |
| Setter for the channel number. | |
| PMT::ch_number_t | channel_number () const |
| Getter for the channel number. | |
| virtual void | clear_data () |
| Method to clear currently held data contents in the buffer. | |
| ~tpc_waveform () | |
| Default destructor. | |
Private Member Functions | |
| void | init_vars () |
| Internal function to reset variables. | |
Private Attributes | |
| PMT::ch_number_t | _channel_number |
| Channel number. | |
Definition at line 23 of file tpc_waveform.hh.
| tpc_waveform::tpc_waveform | ( | PMT::ch_number_t | ch = PMT::INVALID_CH, |
|
| size_t | len = 0 | |||
| ) | [inline] |
Default constructor.
Definition at line 29 of file tpc_waveform.hh.
00031 : std::vector<PMT::ch_adc_t>(len), 00032 data_base(), 00033 _channel_number(ch) 00034 {};
| tpc_waveform::tpc_waveform | ( | const tpc_waveform & | original | ) | [inline] |
Default copy constructor.
Definition at line 37 of file tpc_waveform.hh.
00038 : std::vector<PMT::ch_adc_t>(original), 00039 data_base(original), 00040 _channel_number(original._channel_number) 00041 {};
| tpc_waveform::~tpc_waveform | ( | ) | [inline] |
| PMT::ch_number_t tpc_waveform::channel_number | ( | ) | const [inline] |
Getter for the channel number.
Definition at line 47 of file tpc_waveform.hh.
References _channel_number.
Referenced by algo_tpc_xmit::process_ch_word(), and algo_tpc_huffman::process_ch_word().
00047 {return _channel_number;};
| void tpc_waveform::clear_data | ( | ) | [virtual] |
Method to clear currently held data contents in the buffer.
Reimplemented from data_base.
Definition at line 6 of file tpc_waveform.cc.
References data_base::clear_data(), and init_vars().
Referenced by algo_tpc_xmit::process_ch_word(), algo_tpc_huffman::process_ch_word(), and algo_tpc_xmit::reset().
00006 { 00007 data_base::clear_data(); 00008 init_vars(); 00009 }
| void tpc_waveform::init_vars | ( | ) | [private] |
Internal function to reset variables.
Definition at line 11 of file tpc_waveform.cc.
References _channel_number, and PMT::INVALID_CH.
Referenced by clear_data().
00011 { 00012 clear(); 00013 _channel_number=PMT::INVALID_CH; 00014 }
| void tpc_waveform::set_channel_number | ( | PMT::ch_number_t | ch | ) | [inline] |
Setter for the channel number.
Definition at line 44 of file tpc_waveform.hh.
References _channel_number.
Referenced by algo_tpc_xmit::process_ch_word(), and algo_tpc_huffman::process_ch_word().
00044 {_channel_number=ch;};
Channel number.
Definition at line 61 of file tpc_waveform.hh.
Referenced by channel_number(), init_vars(), and set_channel_number().
1.4.7