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

Public Member Functions | |
| pmt_waveform (PMT::ch_number_t ch=PMT::INVALID_CH, PMT::word_t ch_frame=PMT::INVALID_WORD, PMT::DISCRIMINATOR disc_id=PMT::DISC_MAX, PMT::word_t timeslice=PMT::INVALID_WORD, size_t len=0) | |
| Default constructor. | |
| pmt_waveform (const pmt_waveform &original) | |
| Default copy constructor. | |
| void | set_channel_number (PMT::ch_number_t ch) |
| Setter for the channel number. | |
| void | set_channel_frame_id (PMT::word_t id) |
| Setter for the channel frame ID number. | |
| void | set_disc_id (PMT::DISCRIMINATOR id) |
| Setter for the channel discriminator ID number. | |
| void | set_timeslice (PMT::word_t t) |
| Setter for the timeslice number. | |
| PMT::ch_number_t | channel_number () const |
| Getter for the channel number. | |
| PMT::word_t | channel_frame_id () const |
| Getter for the channel frame ID number. | |
| PMT::DISCRIMINATOR | disc_id () const |
| Getter for the discriminator ID number. | |
| PMT::word_t | timeslice () const |
| Getter for the timeslice number. | |
| virtual void | clear_data () |
| Method to clear currently held data contents in the buffer. | |
| ~pmt_waveform () | |
| Default destructor. | |
Private Member Functions | |
| void | init_vars () |
| Internal function to reset variables. | |
Private Attributes | |
| PMT::ch_number_t | _channel_number |
| Channel number. | |
| PMT::word_t | _channel_frame_id |
| Channel frame ID. | |
| PMT::word_t | _timeslice |
| Timeslice number. | |
| PMT::DISCRIMINATOR | _disc_id |
| Discriminator ID number. | |
Definition at line 23 of file pmt_waveform.hh.
| pmt_waveform::pmt_waveform | ( | PMT::ch_number_t | ch = PMT::INVALID_CH, |
|
| PMT::word_t | ch_frame = PMT::INVALID_WORD, |
|||
| PMT::DISCRIMINATOR | disc_id = PMT::DISC_MAX, |
|||
| PMT::word_t | timeslice = PMT::INVALID_WORD, |
|||
| size_t | len = 0 | |||
| ) | [inline] |
Default constructor.
Definition at line 29 of file pmt_waveform.hh.
00034 : std::vector<PMT::ch_adc_t>(len), 00035 data_base(), 00036 _channel_number(ch), 00037 _channel_frame_id(ch_frame), 00038 _timeslice(timeslice), 00039 _disc_id(disc_id) 00040 {};
| pmt_waveform::pmt_waveform | ( | const pmt_waveform & | original | ) | [inline] |
Default copy constructor.
Definition at line 43 of file pmt_waveform.hh.
00044 : std::vector<PMT::ch_adc_t>(original), 00045 data_base(original), 00046 _channel_number(original._channel_number), 00047 _channel_frame_id(original._channel_frame_id), 00048 _timeslice(original._timeslice), 00049 _disc_id(original._disc_id) 00050 {};
| pmt_waveform::~pmt_waveform | ( | ) | [inline] |
| PMT::word_t pmt_waveform::channel_frame_id | ( | ) | const [inline] |
Getter for the channel frame ID number.
Definition at line 68 of file pmt_waveform.hh.
References _channel_frame_id.
Referenced by reco_wf::analyze(), algo_slow_readout_decoder::decode_ch_word(), algo_pmt_xmit::decode_ch_word(), and algo_slow_readout_decoder::store_ch_data().
00068 {return _channel_frame_id;};
| PMT::ch_number_t pmt_waveform::channel_number | ( | ) | const [inline] |
Getter for the channel number.
Definition at line 65 of file pmt_waveform.hh.
References _channel_number.
Referenced by reco_wf::analyze(), algo_slow_readout_decoder::decode_ch_word(), algo_pmt_xmit::decode_ch_word(), algo_slow_readout_decoder::print_adc_values(), waveform_sampler::sample_waveform(), algo_slow_readout_decoder::store_ch_data(), and algo_pmt_xmit::store_ch_data().
00065 {return _channel_number;};
| void pmt_waveform::clear_data | ( | ) | [virtual] |
Method to clear currently held data contents in the buffer.
Reimplemented from data_base.
Definition at line 6 of file pmt_waveform.cc.
References data_base::clear_data(), and init_vars().
Referenced by algo_pmt_xmit::clear_event(), algo_pmt_xmit::decode_ch_word(), algo_slow_readout_decoder::init_ch_info(), and algo_pmt_xmit::store_ch_data().
00006 { 00007 data_base::clear_data(); 00008 init_vars(); 00009 }
| PMT::DISCRIMINATOR pmt_waveform::disc_id | ( | ) | const [inline] |
Getter for the discriminator ID number.
Definition at line 71 of file pmt_waveform.hh.
References _disc_id.
Referenced by algo_slow_readout_decoder::decode_ch_word(), algo_pmt_xmit::decode_ch_word(), algo_slow_readout_decoder::store_ch_data(), and algo_pmt_xmit::store_ch_data().
00071 {return _disc_id;};
| void pmt_waveform::init_vars | ( | ) | [private] |
Internal function to reset variables.
Definition at line 11 of file pmt_waveform.cc.
References _channel_frame_id, _channel_number, _disc_id, _timeslice, PMT::DISC_MAX, PMT::INVALID_CH, and PMT::INVALID_WORD.
Referenced by clear_data().
00011 { 00012 clear(); 00013 _channel_number=PMT::INVALID_CH; 00014 _channel_frame_id=PMT::INVALID_WORD; 00015 _disc_id=PMT::DISC_MAX; 00016 _timeslice=PMT::INVALID_WORD; 00017 }
| void pmt_waveform::set_channel_frame_id | ( | PMT::word_t | id | ) | [inline] |
Setter for the channel frame ID number.
Definition at line 56 of file pmt_waveform.hh.
References _channel_frame_id.
Referenced by algo_slow_readout_decoder::decode_ch_word(), and algo_pmt_xmit::decode_ch_word().
00056 {_channel_frame_id=id;};
| void pmt_waveform::set_channel_number | ( | PMT::ch_number_t | ch | ) | [inline] |
Setter for the channel number.
Definition at line 53 of file pmt_waveform.hh.
References _channel_number.
Referenced by algo_slow_readout_decoder::decode_ch_word(), and algo_pmt_xmit::decode_ch_word().
00053 {_channel_number=ch;};
| void pmt_waveform::set_disc_id | ( | PMT::DISCRIMINATOR | id | ) | [inline] |
Setter for the channel discriminator ID number.
Definition at line 59 of file pmt_waveform.hh.
References _disc_id.
Referenced by algo_slow_readout_decoder::decode_ch_word(), and algo_pmt_xmit::decode_ch_word().
00059 {_disc_id=id;};
| void pmt_waveform::set_timeslice | ( | PMT::word_t | t | ) | [inline] |
Setter for the timeslice number.
Definition at line 62 of file pmt_waveform.hh.
References _timeslice.
Referenced by algo_slow_readout_decoder::decode_ch_word(), and algo_pmt_xmit::decode_ch_word().
00062 {_timeslice=t;};
| PMT::word_t pmt_waveform::timeslice | ( | ) | const [inline] |
Getter for the timeslice number.
Definition at line 74 of file pmt_waveform.hh.
References _timeslice.
Referenced by reco_wf::analyze(), algo_slow_readout_decoder::decode_ch_word(), algo_pmt_xmit::decode_ch_word(), and algo_slow_readout_decoder::store_ch_data().
00074 {return _timeslice;};
PMT::word_t pmt_waveform::_channel_frame_id [private] |
Channel frame ID.
Definition at line 89 of file pmt_waveform.hh.
Referenced by channel_frame_id(), init_vars(), and set_channel_frame_id().
Channel number.
Definition at line 88 of file pmt_waveform.hh.
Referenced by channel_number(), init_vars(), and set_channel_number().
PMT::DISCRIMINATOR pmt_waveform::_disc_id [private] |
Discriminator ID number.
Definition at line 91 of file pmt_waveform.hh.
Referenced by disc_id(), init_vars(), and set_disc_id().
PMT::word_t pmt_waveform::_timeslice [private] |
Timeslice number.
Definition at line 90 of file pmt_waveform.hh.
Referenced by init_vars(), set_timeslice(), and timeslice().
1.4.7