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

Public Member Functions | |
| tpc_wf_collection (size_t len=0) | |
| Default constructor ... provide an option to set the length of ch-wise data. | |
| tpc_wf_collection (const tpc_wf_collection &original) | |
| Default copy constructor needed to avoid memory leak in ROOT streamer. | |
| ~tpc_wf_collection () | |
| Default destructor. | |
| void | set_event_id (PMT::word_t id) |
| Setter for the envet id number. | |
| void | set_event_frame_id (PMT::word_t id) |
| Setter for the event frame number. | |
| void | set_module_address (PMT::word_t id) |
| Setter for the module address from which this event is read-out. | |
| void | set_module_id (PMT::word_t id) |
| Setter for the module ID. | |
| void | set_channel_header_count (size_t n) |
| Setter for the channel's header count. | |
| void | set_checksum (PMT::word_t sum) |
| Setter for the checksum. | |
| void | set_nwords (PMT::word_t n) |
| Setter for the # words read out. | |
| void | set_trigger_frame_id (PMT::word_t id) |
| Setter for the trigger frame id. | |
| void | set_trigger_timeslice (PMT::word_t n) |
| Setter for the trigger timeslice. | |
| PMT::word_t | event_id () const |
| Getter for the event ID. | |
| PMT::word_t | event_frame_id () const |
| Getter for the frame ID. | |
| PMT::word_t | module_address () const |
| Getter for the module address. | |
| PMT::word_t | module_id () const |
| Getter for the module ID. | |
| size_t | channel_header_count () const |
| Getter for the channel header count. | |
| PMT::word_t | checksum () const |
| Getter for the checksum. | |
| PMT::word_t | nwords () const |
| Getter for the number of read words. | |
| PMT::word_t | trigger_frame_id () const |
| Getter for the trigger frame id. | |
| PMT::word_t | trigger_timeslice () const |
| Getter for the trigger time slice. | |
| virtual void | clear_data () |
| A function to reset data member variables. | |
Private Member Functions | |
| void | init_vars () |
Private Attributes | |
| PMT::word_t | _event_id |
| Actual implementation function of resetting variables event ID number. | |
| PMT::word_t | _event_frame_id |
| event frame ID number | |
| PMT::word_t | _module_address |
| module address number | |
| PMT::word_t | _module_id |
| module ID number | |
| size_t | _channel_header_count |
| channel header count | |
| PMT::word_t | _trigger_frame_id |
| trigger frame id | |
| PMT::word_t | _trigger_timeslice |
| trigger time slice | |
| PMT::word_t | _checksum |
| checksum of readout events | |
| PMT::word_t | _nwords |
| # of event words readout | |
Definition at line 74 of file tpc_waveform.hh.
| tpc_wf_collection::tpc_wf_collection | ( | size_t | len = 0 |
) | [inline] |
Default constructor ... provide an option to set the length of ch-wise data.
Definition at line 80 of file tpc_waveform.hh.
00080 : 00081 std::vector<tpc_waveform>(len), 00082 data_base() 00083 {};
| tpc_wf_collection::tpc_wf_collection | ( | const tpc_wf_collection & | original | ) | [inline] |
Default copy constructor needed to avoid memory leak in ROOT streamer.
Definition at line 86 of file tpc_waveform.hh.
00087 : std::vector<tpc_waveform>(original), 00088 data_base(original), 00089 _event_id(original._event_id), 00090 _event_frame_id(original._event_frame_id), 00091 _module_address(original._module_address), 00092 _module_id(original._module_id), 00093 _channel_header_count(original._channel_header_count), 00094 _checksum(original._checksum), 00095 _nwords(original._nwords) 00096 {};
| tpc_wf_collection::~tpc_wf_collection | ( | ) | [inline] |
| size_t tpc_wf_collection::channel_header_count | ( | ) | const [inline] |
Getter for the channel header count.
Definition at line 141 of file tpc_waveform.hh.
References _channel_header_count.
00141 {return _channel_header_count;};
| PMT::word_t tpc_wf_collection::checksum | ( | ) | const [inline] |
Getter for the checksum.
Definition at line 144 of file tpc_waveform.hh.
References _checksum.
00144 {return _checksum;};
| void tpc_wf_collection::clear_data | ( | ) | [virtual] |
A function to reset data member variables.
Reimplemented from data_base.
Definition at line 16 of file tpc_waveform.cc.
References data_base::clear_data(), and init_vars().
Referenced by algo_tpc_xmit::clear_event().
00016 { 00017 data_base::clear_data(); 00018 init_vars(); 00019 }
| PMT::word_t tpc_wf_collection::event_frame_id | ( | ) | const [inline] |
Getter for the frame ID.
Definition at line 132 of file tpc_waveform.hh.
References _event_frame_id.
00132 {return _event_frame_id;};
| PMT::word_t tpc_wf_collection::event_id | ( | ) | const [inline] |
Getter for the event ID.
Definition at line 129 of file tpc_waveform.hh.
References _event_id.
Referenced by algo_tpc_xmit::store_event().
00129 {return _event_id;};
| void tpc_wf_collection::init_vars | ( | ) | [private] |
Definition at line 21 of file tpc_waveform.cc.
References _channel_header_count, _checksum, _event_frame_id, _event_id, _module_address, _module_id, _nwords, _trigger_frame_id, _trigger_timeslice, and PMT::INVALID_WORD.
Referenced by clear_data().
00021 { 00022 clear(); 00023 _event_id=PMT::INVALID_WORD; 00024 _event_frame_id=PMT::INVALID_WORD; 00025 _module_address=PMT::INVALID_WORD; 00026 _module_id=PMT::INVALID_WORD; 00027 _channel_header_count=PMT::INVALID_WORD; 00028 _checksum=PMT::INVALID_WORD; 00029 _nwords=PMT::INVALID_WORD; 00030 _trigger_frame_id=PMT::INVALID_WORD; 00031 _trigger_timeslice=PMT::INVALID_WORD; 00032 }
| PMT::word_t tpc_wf_collection::module_address | ( | ) | const [inline] |
Getter for the module address.
Definition at line 135 of file tpc_waveform.hh.
References _module_address.
00135 {return _module_address;};
| PMT::word_t tpc_wf_collection::module_id | ( | ) | const [inline] |
Getter for the module ID.
Definition at line 138 of file tpc_waveform.hh.
References _module_id.
00138 {return _module_id;};
| PMT::word_t tpc_wf_collection::nwords | ( | ) | const [inline] |
Getter for the number of read words.
Definition at line 147 of file tpc_waveform.hh.
References _nwords.
00147 {return _nwords;};
| void tpc_wf_collection::set_channel_header_count | ( | size_t | n | ) | [inline] |
Setter for the channel's header count.
Definition at line 114 of file tpc_waveform.hh.
References _channel_header_count.
00114 {_channel_header_count=n;};
| void tpc_wf_collection::set_checksum | ( | PMT::word_t | sum | ) | [inline] |
Setter for the checksum.
Definition at line 117 of file tpc_waveform.hh.
References _checksum.
Referenced by algo_tpc_xmit::store_event().
00117 {_checksum=sum;};
| void tpc_wf_collection::set_event_frame_id | ( | PMT::word_t | id | ) | [inline] |
Setter for the event frame number.
Definition at line 105 of file tpc_waveform.hh.
References _event_frame_id.
Referenced by algo_tpc_xmit::store_event().
00105 {_event_frame_id=id;};
| void tpc_wf_collection::set_event_id | ( | PMT::word_t | id | ) | [inline] |
Setter for the envet id number.
Definition at line 102 of file tpc_waveform.hh.
References _event_id.
Referenced by algo_tpc_xmit::store_event().
00102 {_event_id=id;};
| void tpc_wf_collection::set_module_address | ( | PMT::word_t | id | ) | [inline] |
Setter for the module address from which this event is read-out.
Definition at line 108 of file tpc_waveform.hh.
References _module_address.
Referenced by algo_tpc_xmit::store_event().
00108 {_module_address=id;};
| void tpc_wf_collection::set_module_id | ( | PMT::word_t | id | ) | [inline] |
Setter for the module ID.
Definition at line 111 of file tpc_waveform.hh.
References _module_id.
Referenced by algo_tpc_xmit::store_event().
00111 {_module_id=id;};
| void tpc_wf_collection::set_nwords | ( | PMT::word_t | n | ) | [inline] |
Setter for the # words read out.
Definition at line 120 of file tpc_waveform.hh.
References _nwords.
Referenced by algo_tpc_xmit::store_event().
00120 {_nwords=n;};
| void tpc_wf_collection::set_trigger_frame_id | ( | PMT::word_t | id | ) | [inline] |
Setter for the trigger frame id.
Definition at line 123 of file tpc_waveform.hh.
References _trigger_frame_id.
Referenced by algo_tpc_xmit::store_event().
00123 {_trigger_frame_id=id;};
| void tpc_wf_collection::set_trigger_timeslice | ( | PMT::word_t | n | ) | [inline] |
Setter for the trigger timeslice.
Definition at line 126 of file tpc_waveform.hh.
References _trigger_timeslice.
Referenced by algo_tpc_xmit::store_event().
00126 {_trigger_timeslice=n;};
| PMT::word_t tpc_wf_collection::trigger_frame_id | ( | ) | const [inline] |
Getter for the trigger frame id.
Definition at line 150 of file tpc_waveform.hh.
References _trigger_frame_id.
00150 {return _trigger_frame_id;};
| PMT::word_t tpc_wf_collection::trigger_timeslice | ( | ) | const [inline] |
Getter for the trigger time slice.
Definition at line 153 of file tpc_waveform.hh.
References _trigger_timeslice.
00153 {return _trigger_timeslice;};
size_t tpc_wf_collection::_channel_header_count [private] |
channel header count
Definition at line 168 of file tpc_waveform.hh.
Referenced by channel_header_count(), init_vars(), and set_channel_header_count().
PMT::word_t tpc_wf_collection::_checksum [private] |
checksum of readout events
Definition at line 173 of file tpc_waveform.hh.
Referenced by checksum(), init_vars(), and set_checksum().
event frame ID number
Definition at line 165 of file tpc_waveform.hh.
Referenced by event_frame_id(), init_vars(), and set_event_frame_id().
PMT::word_t tpc_wf_collection::_event_id [private] |
Actual implementation function of resetting variables event ID number.
Definition at line 164 of file tpc_waveform.hh.
Referenced by event_id(), init_vars(), and set_event_id().
module address number
Definition at line 166 of file tpc_waveform.hh.
Referenced by init_vars(), module_address(), and set_module_address().
PMT::word_t tpc_wf_collection::_module_id [private] |
module ID number
Definition at line 167 of file tpc_waveform.hh.
Referenced by init_vars(), module_id(), and set_module_id().
PMT::word_t tpc_wf_collection::_nwords [private] |
# of event words readout
Definition at line 174 of file tpc_waveform.hh.
Referenced by init_vars(), nwords(), and set_nwords().
trigger frame id
Definition at line 170 of file tpc_waveform.hh.
Referenced by init_vars(), set_trigger_frame_id(), and trigger_frame_id().
trigger time slice
Definition at line 171 of file tpc_waveform.hh.
Referenced by init_vars(), set_trigger_timeslice(), and trigger_timeslice().
1.4.7