algo_trig_decoder Class Reference
[AlgorithmAlgorithm]

Algorithm to decode trigger words. More...

#include <algo_trig_decoder.hh>

Inheritance diagram for algo_trig_decoder:

algo_base decoder_base List of all members.

Public Member Functions

 algo_trig_decoder ()
 Default constructor.
virtual ~algo_trig_decoder ()
 Default destructor.
virtual bool process_word (const PMT::word_t word)
 A parent process to run this decoder should pass a stream of words to this method.
virtual bool check_event_quality ()
 A method to check event quality upon saving in the output file.
void clear_event_info ()
 A method to clear event-wise infomration ... called upon filling each event in output.
virtual void reset ()
 Override a function to prepare for new processing.
virtual bool is_event_empty ()
 A method to inquire if the local data holder is empty or not.
virtual void finalize ()
 Function called just after processing word.
virtual PMT::PMT_WORD get_word_class (const PMT::word_t word) const
 Virtual member: this should return word type defined in PMT::PMT_WORD.
void set_debug_mode (bool doit)
 Run utility: set debug mode. Children class defines what-to-do in debug mode.
void set_storage_ptr (storage_manager *storage)
 Expects a storage pointer to be provided from a parent class.
virtual void set_backtrace_mode (size_t nwords=0)
 Run utility: set back-trace mode. One should provide number of words to be stored.
size_t backtrace_mode () const
 Getter for backtrace mode (returns # words specified to store. 0=no backtrace).
void backtrace () const
 Function to print out stored words in buffer for back-trace purpose.
void set_verbosity (MSG::Level level)
 Setter for the verbosity level.
MSG::Level get_verbosity () const
 Getter for the verbosity level.
const std::string class_name () const
 Getter for the class name.

Protected Member Functions

bool decode_trigger_words (PMT::word_t *trigger_words)
virtual void init_checker_info ()
 Function to initialize checker information.

Protected Attributes

trig_info_data
UInt_t _nevents
UInt_t _last_event_id
size_t _trigger_word_count
PMT::word_t _trigger_words [TRIGGER_WORD_COUNT]
bool _debug_mode
 Debug mode boolean holder.
bool _bt_mode
 Back-trace mode boolean holder.
storage_manager_storage
 Data storage pointer to be provided by a parent process.
PMT::word_t _checksum
 data checksum
PMT::word_t _nwords
 number of data word counts processed
std::deque< PMT::word_t_bt_words
 processed words to be stored event-wise for back-trace purpose
size_t _bt_nwords
 user defined # of words to be temporarily stored in the buffer
bool _bt_nwords_filled
 run utility boolean to keep a recored of filled buffer
char _buf [200]
 char buffer for message manipulation
bool _verbosity [MSG::MSG_TYPE_MAX]
 holder for enabled message levels
MSG::Level _verbosity_level
 holder for specified verbosity level
std::string _name
 class name holder

Static Protected Attributes

static const size_t TRIGGER_WORD_COUNT = 4
static const UInt_t TRIGGER_LAST_WORD = 0xffffffff
static const size_t BEAM_REF_CHANNEL = 39
 Defines a reference channel for beamgate.
static const size_t BEAM_NWORDS = 21
 Defines # of minimum words to identify beamgate event.
static const size_t FRAME_WIDTH = 8192
 Defines # of ADC samples per readout frame.

Detailed Description

Algorithm to decode trigger words.

Definition at line 25 of file algo_trig_decoder.hh.


Constructor & Destructor Documentation

algo_trig_decoder::algo_trig_decoder (  ) 

Default constructor.

Definition at line 6 of file algo_trig_decoder.cc.

References _data, decoder_base::_name, and reset().

00006                                      : algo_base() {
00007   _name="algo_trig_decoder"; 
00008   _data=0;
00009   reset();
00010 }

virtual algo_trig_decoder::~algo_trig_decoder (  )  [inline, virtual]

Default destructor.

Definition at line 33 of file algo_trig_decoder.hh.

00033 {}; 


Member Function Documentation

void algo_base::backtrace (  )  const [inline, inherited]

Function to print out stored words in buffer for back-trace purpose.

Definition at line 82 of file algo_base.hh.

References algo_base::_bt_words, Message::send(), and MSG::WARNING.

Referenced by algo_tpc_huffman::process_word(), and algo_fem_decoder_base::process_word().

00083   {
00084     Message::send(MSG::WARNING,__FUNCTION__,"Dumping a backtrace...");
00085     int ctr=1;
00086     for(std::deque<PMT::word_t>::const_iterator iter(_bt_words.begin());
00087     iter!=_bt_words.end();
00088     ++iter) {
00089       printf("%08x ",(*iter));
00090       if(ctr%8==0 && ctr) std::cout<<std::endl;
00091       ctr++;
00092     }
00093     std::cout<<std::endl<<std::endl;
00094   };

size_t algo_base::backtrace_mode (  )  const [inline, inherited]

Getter for backtrace mode (returns # words specified to store. 0=no backtrace).

Definition at line 71 of file algo_base.hh.

References algo_base::_bt_nwords.

00071 {return _bt_nwords;};

bool algo_trig_decoder::check_event_quality (  )  [virtual]

A method to check event quality upon saving in the output file.

Reimplemented from algo_base.

Definition at line 165 of file algo_trig_decoder.cc.

References _trigger_word_count, and TRIGGER_WORD_COUNT.

00165                                             {
00166 
00167   return (_trigger_word_count == TRIGGER_WORD_COUNT);
00168 }

const std::string decoder_base::class_name (  )  const [inline, inherited]

Getter for the class name.

Definition at line 46 of file decoder_base.hh.

References decoder_base::_name.

00046 {return _name;};

void algo_trig_decoder::clear_event_info (  ) 

A method to clear event-wise infomration ... called upon filling each event in output.

Definition at line 155 of file algo_trig_decoder.cc.

References _trigger_word_count, _trigger_words, and TRIGGER_WORD_COUNT.

Referenced by process_word(), and reset().

00155                                         {
00156 
00157   _trigger_word_count=0;
00158 
00159   for(size_t i=0; i<TRIGGER_WORD_COUNT; ++i)
00160     _trigger_words[i]=0x0;
00161 
00162 }

bool algo_trig_decoder::decode_trigger_words ( PMT::word_t trigger_words  )  [protected]

Definition at line 95 of file algo_trig_decoder.cc.

References _data, _last_event_id, decoder_base::_verbosity, trig_info::active(), trig_info::calib(), trig_info::gate1(), trig_info::gate2(), MSG::INFO, Message::send(), trig_info::set_pmt_data(), trig_info::set_reminder_16MHz(), trig_info::set_reminder_64MHz(), trig_info::set_trig_frame_id(), trig_info::set_trig_id(), trig_info::set_trig_timeslice(), trig_info::set_trigger_bits(), trig_info::trig_ext(), trig_info::trig_frame_id(), trig_info::trig_id(), trig_info::trig_pc(), trig_info::trig_timeslice(), TRIGGER_WORD_COUNT, trig_info::veto_in(), and MSG::WARNING.

Referenced by process_word().

00095                                                                     {
00096 
00097   _data->set_trig_timeslice( (trigger_words[0]>>4) & 0xfff );
00098   _data->set_trig_frame_id( ((trigger_words[1] & 0xff)<<16) + (trigger_words[0]>>16) );
00099   _data->set_trig_id( (trigger_words[1]>>8) );
00100   _data->set_pmt_data( trigger_words[2] & 0xff );
00101 
00102   _data->set_trigger_bits( (trigger_words[2]>>8  & 0x1),   // pc
00103                (trigger_words[2]>>9  & 0x1),   // ext
00104                (trigger_words[2]>>10 & 0x1),   // active
00105                (trigger_words[2]>>12 & 0x1),   // gate1
00106                (trigger_words[2]>>11 & 0x1),   // gate2
00107                (trigger_words[2]>>13 & 0x1),   // veto
00108                (trigger_words[2]>>14 & 0x1) ); // calib
00109 
00110   _data->set_reminder_64MHz((trigger_words[2]>>15 & 0x3));
00111   _data->set_reminder_16MHz((trigger_words[0]>>1  & 0x7));
00112 
00113   if(_verbosity[MSG::INFO]){
00114     std::ostringstream msg;
00115     msg << std::endl << "Decoded words: ";
00116     for(size_t i=0; i<TRIGGER_WORD_COUNT; ++i)
00117       msg << Form("0x%08x ",trigger_words[i]) ;
00118     msg 
00119       << std::endl
00120       << Form("Trigger id : %d",_data->trig_id()) << std::endl
00121       << Form("Frame  id  : %d",_data->trig_frame_id()) << std::endl
00122       << Form("Sample id  : %d",_data->trig_timeslice()) << std::endl
00123       << Form("PC     : %d",_data->trig_pc()) << std::endl
00124       << Form("EXT    : %d",_data->trig_ext()) << std::endl
00125       << Form("Active : %d",_data->active()) << std::endl
00126       << Form("Gate 1 : %d",_data->gate1()) << std::endl
00127       << Form("Gate 2 : %d",_data->gate2()) << std::endl
00128       << Form("Veto   : %d",_data->veto_in()) << std::endl
00129       << Form("Calib  : %d",_data->calib()) << std::endl
00130       << std::endl;
00131     Message::send(MSG::INFO,__FUNCTION__,msg.str());
00132   }
00133 
00134   if(_data->trig_id() && _data->trig_id() != (_last_event_id+1))
00135 
00136     Message::send(MSG::WARNING,__FUNCTION__,
00137           Form("Processed event %d while the last event ID was %d ... missing %d!",
00138                _data->trig_id(),
00139                _last_event_id,
00140                (_last_event_id+1)));
00141 
00142   _last_event_id = _data->trig_id();
00143 
00144   return true;
00145 }

virtual void algo_base::finalize (  )  [inline, virtual, inherited]

Function called just after processing word.

Definition at line 52 of file algo_base.hh.

00052 {};

MSG::Level decoder_base::get_verbosity (  )  const [inline, inherited]

Getter for the verbosity level.

Definition at line 43 of file decoder_base.hh.

References decoder_base::_verbosity_level.

00043 {return _verbosity_level;};

virtual PMT::PMT_WORD algo_base::get_word_class ( const PMT::word_t  word  )  const [inline, virtual, inherited]

Virtual member: this should return word type defined in PMT::PMT_WORD.

Reimplemented in algo_fem_decoder_base, algo_pmt_xmit, algo_slow_readout_decoder, algo_tpc_huffman, algo_tpc_xmit, and algo_xmit_decoder.

Definition at line 55 of file algo_base.hh.

References PMT::UNDEFINED_WORD.

Referenced by xmit_event_search::print_word().

00056   {if(word) return PMT::UNDEFINED_WORD; else return PMT::UNDEFINED_WORD;};

void algo_base::init_checker_info (  )  [protected, virtual, inherited]

Function to initialize checker information.

Definition at line 6 of file algo_base.cc.

References algo_base::_checksum, and algo_base::_nwords.

Referenced by algo_slow_readout_decoder::init_event_info(), reset(), and algo_base::reset().

00007 {
00008   _checksum=0x0;
00009   _nwords=0;
00010 }

virtual bool algo_trig_decoder::is_event_empty (  )  [inline, virtual]

A method to inquire if the local data holder is empty or not.

Implements algo_base.

Definition at line 52 of file algo_trig_decoder.hh.

References _data, PMT::INVALID_WORD, and trig_info::trig_id().

00052                                {
00053     if(_data) return (_data->trig_id()==PMT::INVALID_WORD);
00054     else return true;
00055   };

bool algo_trig_decoder::process_word ( const PMT::word_t  word  )  [virtual]

A parent process to run this decoder should pass a stream of words to this method.

In this framework, a parent class should be decoder_manager for decoding, for instance.

Implements algo_base.

Definition at line 13 of file algo_trig_decoder.cc.

References algo_base::_bt_mode, algo_base::_bt_nwords, algo_base::_bt_nwords_filled, algo_base::_bt_words, algo_base::_checksum, _data, algo_base::_debug_mode, _last_event_id, algo_base::_nwords, algo_base::_storage, _trigger_word_count, _trigger_words, clear_event_info(), decode_trigger_words(), MSG::ERROR, storage_manager::get_data(), storage_manager::next_event(), Message::send(), DATA_STRUCT::TRIG_INFO, TRIGGER_LAST_WORD, TRIGGER_WORD_COUNT, and MSG::WARNING.

00013                                                    {
00014 
00015   bool status=true;
00016 
00017   // If in back_trace mode, add this word in record
00018   if(_bt_mode){
00019 
00020     // Check if buffer is filled
00021     if(!_bt_nwords_filled)
00022       _bt_nwords_filled = (_bt_nwords == _bt_words.size());
00023 
00024     // If filled, remove the oldest element
00025     if(_bt_nwords_filled)
00026       _bt_words.pop_front();
00027 
00028     // Add new word
00029     _bt_words.push_back(word);
00030 
00031   }
00032 
00033   if(!_data){
00034     _data=(trig_info*)(_storage->get_data(DATA_STRUCT::TRIG_INFO));
00035     if(!_data){
00036       Message::send(MSG::ERROR,__FUNCTION__,
00037             "Could not retrieve writeable trig_info pointer!");
00038       return false;
00039     }
00040   }
00041 
00042   _trigger_words[_trigger_word_count]=word;
00043     
00044   _trigger_word_count++;
00045 
00046   if(_trigger_word_count==TRIGGER_WORD_COUNT) {
00047 
00048     // Check that the last word is end-of-packet.
00049     // If not, spit out warning and shift data word to continue.
00050     if(_trigger_words[(TRIGGER_WORD_COUNT - 1)] != TRIGGER_LAST_WORD) {
00051       
00052       Message::send(MSG::ERROR,__FUNCTION__,
00053             Form(" Invalid end-of-trigger-data word: %x (event %d)", 
00054              _trigger_words[_trigger_word_count-1],_last_event_id));
00055 
00056       status = false;
00057 
00058       if(_debug_mode) {
00059 
00060     std::string msg("Currently in memory: ");
00061     
00062     for(size_t i=0; i<TRIGGER_WORD_COUNT; ++i) {
00063 
00064       msg += Form("%08x ",_trigger_words[i]);
00065 
00066       if( (i+1) < TRIGGER_WORD_COUNT)
00067 
00068         _trigger_words[i]=_trigger_words[i+1];
00069 
00070     }
00071     
00072     Message::send(MSG::WARNING,__FUNCTION__,
00073               Form("%s ...  Continue by shifting a data word...",msg.c_str()));
00074     
00075     _trigger_word_count-=1;
00076     
00077       }
00078 
00079     }else{
00080 
00081       decode_trigger_words(_trigger_words);
00082       
00083       _storage->next_event();
00084       
00085       clear_event_info();
00086     }
00087   }
00088 
00089   _nwords+=1;
00090   _checksum+=word;
00091 
00092   return status;
00093 }

void algo_trig_decoder::reset (  )  [virtual]

Override a function to prepare for new processing.

Reimplemented from algo_base.

Definition at line 147 of file algo_trig_decoder.cc.

References clear_event_info(), algo_base::init_checker_info(), and algo_base::reset().

Referenced by algo_trig_decoder().

00147                              {
00148 
00149   init_checker_info();
00150   clear_event_info();
00151   algo_base::reset();
00152 
00153 }

virtual void algo_base::set_backtrace_mode ( size_t  nwords = 0  )  [inline, virtual, inherited]

Run utility: set back-trace mode. One should provide number of words to be stored.

Definition at line 65 of file algo_base.hh.

References algo_base::_bt_mode, and algo_base::_bt_nwords.

Referenced by main().

00065                                                   {
00066     _bt_nwords=nwords;
00067     _bt_mode=(bool)(nwords);
00068   };

void algo_base::set_debug_mode ( bool  doit  )  [inline, inherited]

Run utility: set debug mode. Children class defines what-to-do in debug mode.

Definition at line 59 of file algo_base.hh.

References algo_base::_debug_mode.

Referenced by decoder_manager::initialize().

00059 {_debug_mode=doit;};

void algo_base::set_storage_ptr ( storage_manager storage  )  [inline, inherited]

Expects a storage pointer to be provided from a parent class.

Definition at line 62 of file algo_base.hh.

References algo_base::_storage.

Referenced by decoder_manager::initialize().

00062 {_storage=storage;};

void decoder_base::set_verbosity ( MSG::Level  level  )  [inherited]

Setter for the verbosity level.

Reimplemented in ana_processor.

Definition at line 11 of file decoder_base.cc.

References decoder_base::_verbosity, decoder_base::_verbosity_level, MSG::DEBUG, MSG::ERROR, MSG::INFO, MSG::MSG_TYPE_MAX, MSG::NORMAL, and MSG::WARNING.

Referenced by algo_slow_readout_decoder::algo_slow_readout_decoder(), compare_content(), decoder_base::decoder_base(), decoder_manager::decoder_manager(), decoder_manager::initialize(), main(), xmit_event_search::run(), bin_word_search::run(), and ana_processor::set_verbosity().

00011                                               {
00012 
00013   _verbosity_level=level;
00014 
00015   for(size_t i=(size_t)(MSG::DEBUG); i<(size_t)(MSG::MSG_TYPE_MAX); ++i)
00016     _verbosity[i]=false;
00017 
00018   switch(level){
00019   case MSG::DEBUG:
00020     _verbosity[MSG::DEBUG]=true;
00021   case MSG::INFO:
00022     _verbosity[MSG::INFO]=true;
00023   case MSG::NORMAL:
00024     _verbosity[MSG::NORMAL]=true;
00025   case MSG::WARNING:
00026     _verbosity[MSG::WARNING]=true;
00027   case MSG::ERROR:
00028     _verbosity[MSG::ERROR]=true;
00029   case MSG::MSG_TYPE_MAX:
00030     break;
00031   }
00032 
00033 }


Member Data Documentation

bool algo_base::_bt_mode [protected, inherited]

Back-trace mode boolean holder.

Definition at line 109 of file algo_base.hh.

Referenced by algo_base::algo_base(), process_word(), algo_tpc_huffman::process_word(), algo_slow_readout_decoder::process_word(), algo_fem_decoder_base::process_word(), and algo_base::set_backtrace_mode().

size_t algo_base::_bt_nwords [protected, inherited]

user defined # of words to be temporarily stored in the buffer

Definition at line 133 of file algo_base.hh.

Referenced by algo_base::algo_base(), algo_base::backtrace_mode(), process_word(), algo_tpc_huffman::process_word(), algo_slow_readout_decoder::process_word(), algo_fem_decoder_base::process_word(), and algo_base::set_backtrace_mode().

bool algo_base::_bt_nwords_filled [protected, inherited]

run utility boolean to keep a recored of filled buffer

Definition at line 134 of file algo_base.hh.

Referenced by algo_base::algo_base(), process_word(), algo_tpc_huffman::process_word(), algo_slow_readout_decoder::process_word(), and algo_fem_decoder_base::process_word().

std::deque<PMT::word_t> algo_base::_bt_words [protected, inherited]

processed words to be stored event-wise for back-trace purpose

Definition at line 132 of file algo_base.hh.

Referenced by algo_base::backtrace(), process_word(), algo_tpc_huffman::process_word(), algo_slow_readout_decoder::process_word(), and algo_fem_decoder_base::process_word().

char decoder_base::_buf[200] [protected, inherited]

char buffer for message manipulation

Definition at line 46 of file decoder_base.hh.

Referenced by reco_wf::analyze(), pulse_viewer::analyze(), algo_slow_readout_decoder::check_event_quality(), storage_manager::close(), bin_io_handler::close(), decoder_manager::decode(), algo_slow_readout_decoder::decode_ch_word(), algo_pmt_xmit::decode_ch_word(), algo_slow_readout_decoder::decode_event_header(), pulse_viewer::get_waveform(), ana_processor::initialize(), pulse_viewer::next_pulse(), storage_manager::open(), bin_io_handler::open(), storage_manager::prepare_tree(), pulse_viewer::previous_pulse(), algo_slow_readout_decoder::print_adc_values(), algo_tpc_xmit::process_ch_word(), algo_slow_readout_decoder::process_ch_word(), algo_pmt_xmit::process_ch_word(), algo_fem_decoder_base::process_fem_header(), algo_xmit_decoder::process_header(), algo_slow_readout_decoder::process_header(), algo_slow_readout_decoder::process_word(), bin_io_handler::read_multi_word(), bin_io_handler::read_word(), and ana_processor::run().

PMT::word_t algo_base::_checksum [protected, inherited]

data checksum

Definition at line 126 of file algo_base.hh.

Referenced by algo_tpc_xmit::check_event_quality(), algo_slow_readout_decoder::check_event_quality(), algo_pmt_xmit::check_event_quality(), algo_slow_readout_decoder::decode_event_header(), algo_fem_decoder_base::decode_fem_header(), algo_base::init_checker_info(), algo_tpc_xmit::process_ch_word(), algo_tpc_huffman::process_ch_word(), algo_slow_readout_decoder::process_ch_word(), algo_pmt_xmit::process_ch_word(), and process_word().

trig_info* algo_trig_decoder::_data [protected]

Definition at line 63 of file algo_trig_decoder.hh.

Referenced by algo_trig_decoder(), decode_trigger_words(), is_event_empty(), and process_word().

bool algo_base::_debug_mode [protected, inherited]

Debug mode boolean holder.

Definition at line 108 of file algo_base.hh.

Referenced by algo_base::algo_base(), algo_slow_readout_decoder::process_ch_word(), algo_fem_decoder_base::process_fem_header(), algo_slow_readout_decoder::process_header(), process_word(), algo_tpc_huffman::process_word(), algo_slow_readout_decoder::process_word(), algo_fem_decoder_base::process_word(), and algo_base::set_debug_mode().

UInt_t algo_trig_decoder::_last_event_id [protected]

Definition at line 66 of file algo_trig_decoder.hh.

Referenced by decode_trigger_words(), and process_word().

std::string decoder_base::_name [protected, inherited]

class name holder

Definition at line 53 of file decoder_base.hh.

Referenced by algo_base::algo_base(), algo_fem_decoder_base::algo_fem_decoder_base(), algo_fixed_window::algo_fixed_window(), algo_slow_readout_decoder::algo_slow_readout_decoder(), algo_threshold::algo_threshold(), algo_tpc_huffman::algo_tpc_huffman(), algo_trig_decoder(), ana_base::ana_base(), ana_processor::ana_processor(), beamgate_debugger::beamgate_debugger(), bin_io_handler::bin_io_handler(), decoder_base::class_name(), led_pulse_analyzer::led_pulse_analyzer(), led_pulse_selector::led_pulse_selector(), pmt_slow_encoder::pmt_slow_encoder(), pmtbaseline::pmtbaseline(), pmtbaseline_ana::pmtbaseline_ana(), preco_algo_base::preco_algo_base(), pulse_analyzer::pulse_analyzer(), pulse_reco::pulse_reco(), pulse_selector_base::pulse_selector_base(), pulse_selector_simple::pulse_selector_simple(), pulse_viewer::pulse_viewer(), reco_wf::reco_wf(), storage_manager::storage_manager(), and waveform_sampler::waveform_sampler().

UInt_t algo_trig_decoder::_nevents [protected]

Definition at line 65 of file algo_trig_decoder.hh.

PMT::word_t algo_base::_nwords [protected, inherited]

number of data word counts processed

Definition at line 127 of file algo_base.hh.

Referenced by algo_tpc_xmit::check_event_quality(), algo_slow_readout_decoder::check_event_quality(), algo_pmt_xmit::check_event_quality(), algo_slow_readout_decoder::decode_event_header(), algo_fem_decoder_base::decode_fem_header(), algo_base::init_checker_info(), algo_tpc_xmit::process_ch_word(), algo_tpc_huffman::process_ch_word(), algo_slow_readout_decoder::process_ch_word(), algo_pmt_xmit::process_ch_word(), algo_pmt_xmit::process_fem_last_word(), process_word(), and algo_tpc_huffman::process_word().

storage_manager* algo_base::_storage [protected, inherited]

Data storage pointer to be provided by a parent process.

Definition at line 121 of file algo_base.hh.

Referenced by algo_base::algo_base(), algo_slow_readout_decoder::process_ch_word(), algo_tpc_xmit::process_event_header(), algo_tpc_huffman::process_event_header(), algo_pmt_xmit::process_event_header(), process_word(), algo_slow_readout_decoder::process_word(), algo_base::reset(), algo_base::set_storage_ptr(), algo_tpc_xmit::store_event(), and algo_pmt_xmit::store_event().

size_t algo_trig_decoder::_trigger_word_count [protected]

Definition at line 67 of file algo_trig_decoder.hh.

Referenced by check_event_quality(), clear_event_info(), and process_word().

PMT::word_t algo_trig_decoder::_trigger_words[TRIGGER_WORD_COUNT] [protected]

Definition at line 68 of file algo_trig_decoder.hh.

Referenced by clear_event_info(), and process_word().

bool decoder_base::_verbosity[MSG::MSG_TYPE_MAX] [protected, inherited]

holder for enabled message levels

Definition at line 51 of file decoder_base.hh.

Referenced by reco_wf::analyze(), algo_slow_readout_decoder::check_event_quality(), storage_manager::close(), decoder_manager::decode(), algo_slow_readout_decoder::decode_ch_word(), algo_pmt_xmit::decode_ch_word(), algo_slow_readout_decoder::decode_event_header(), algo_fem_decoder_base::decode_fem_header(), decode_trigger_words(), decoder_manager::finalize(), beamgate_debugger::finalize(), ana_processor::finalize(), decoder_manager::initialize(), beamgate_debugger::initialize(), ana_processor::initialize(), storage_manager::open(), beamgate_debugger::prepare_histo(), storage_manager::prepare_tree(), algo_tpc_xmit::process_ch_word(), algo_tpc_huffman::process_ch_word(), algo_slow_readout_decoder::process_ch_word(), algo_pmt_xmit::process_ch_word(), algo_tpc_xmit::process_event_last_word(), algo_pmt_xmit::process_event_last_word(), algo_fem_decoder_base::process_fem_header(), algo_pmt_xmit::process_fem_last_word(), algo_xmit_decoder::process_header(), algo_slow_readout_decoder::process_header(), algo_fem_decoder_base::process_word(), bin_io_handler::read_multi_word(), storage_manager::reset(), beamgate_debugger::reset(), ana_processor::reset(), decoder_manager::run(), ana_processor::run(), decoder_base::set_verbosity(), algo_tpc_xmit::store_event(), and algo_pmt_xmit::store_event().

MSG::Level decoder_base::_verbosity_level [protected, inherited]

holder for specified verbosity level

Definition at line 52 of file decoder_base.hh.

Referenced by pulse_viewer::analyze(), decoder_base::get_verbosity(), pulse_viewer::initialize(), decoder_manager::initialize(), ana_processor::initialize(), bin_io_handler::read_multi_word(), bin_io_handler::read_word(), and decoder_base::set_verbosity().

const size_t algo_base::BEAM_NWORDS = 21 [static, protected, inherited]

Defines # of minimum words to identify beamgate event.

Definition at line 115 of file algo_base.hh.

Referenced by algo_slow_readout_decoder::apply_beamgate_correction(), and algo_slow_readout_decoder::store_ch_data().

const size_t algo_base::BEAM_REF_CHANNEL = 39 [static, protected, inherited]

Defines a reference channel for beamgate.

Definition at line 114 of file algo_base.hh.

Referenced by algo_slow_readout_decoder::store_ch_data().

const size_t algo_base::FRAME_WIDTH = 8192 [static, protected, inherited]

Defines # of ADC samples per readout frame.

Definition at line 116 of file algo_base.hh.

Referenced by algo_slow_readout_decoder::apply_beamgate_correction().

const UInt_t algo_trig_decoder::TRIGGER_LAST_WORD = 0xffffffff [static, protected]

Definition at line 62 of file algo_trig_decoder.hh.

Referenced by process_word().

const size_t algo_trig_decoder::TRIGGER_WORD_COUNT = 4 [static, protected]

Definition at line 61 of file algo_trig_decoder.hh.

Referenced by check_event_quality(), clear_event_info(), decode_trigger_words(), and process_word().


The documentation for this class was generated from the following files:
Generated on Mon Apr 7 15:35:12 2014 for MyProject by  doxygen 1.4.7