~mice-daq/equipmentlist-mice/trunk

« back to all changes in this revision

Viewing changes to src/readoutlib/MDEv1724.cc

  • Committer: MICE DAQ
  • Date: 2014-10-22 09:00:57 UTC
  • Revision ID: daq@miceacq14.micenet.rl.ac.uk-20141022090057-kvm7ihhnxfvfljcj
More sophisticated tests are added.

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
}
83
83
 
84
84
int MDEv1724::ReadEvent() {
 
85
  int nbStored   = 0;
 
86
  if ( (*this)["ZSThreshold"] > 0)
 
87
    nbStored += ReadEventZS();
 
88
 
 
89
  else
 
90
    nbStored += ReadEventNoZS();
 
91
 
 
92
  return nbStored;
 
93
}
 
94
 
 
95
int MDEv1724::ReadEventNoZS() {
85
96
 
86
97
  int nbStored   = 0;
87
98
  mde_data_32_ = 0;
197
208
  mde_current_address_ = mde_base_address_ + V1724_EVENT_STORED;
198
209
  mde_vmeStatus_ = VME_READ_32(mde_current_address_, &mde_data_32_);
199
210
 
200
 
  //MESSAGESTREAM << " MDEv1724::getNEventsStored() address: " << std::hex << mde_current_address_ << std::dec;
201
 
  //mde_messanger_->sendMessage(MDE_WARNING);
 
211
  MESSAGESTREAM << "The Number of Events is " << mde_data_32_;
 
212
  mde_messanger_->sendMessage(MDE_DEBUGGING);
 
213
 
202
214
  if( mde_vmeStatus_ != cvSuccess ) {
203
215
    mde_messanger_->sendMessage(this, "Unable to do read the Event Stored Register.", MDE_ERROR);
204
216
    return 0;