#include <DaqScopeModeTask.h>
Public Member Functions | |
DaqScopeModeTask (DQMStore *, const FedChannelConnection &) | |
virtual | ~DaqScopeModeTask () |
Private Member Functions | |
virtual void | book () |
virtual void | fill (const SiStripEventSummary &, const edm::DetSet< SiStripRawDigi > &) |
virtual void | update () |
Private Attributes | |
uint16_t | nBins_ |
HistoSet | scope_ |
Definition at line 9 of file DaqScopeModeTask.h.
DaqScopeModeTask::DaqScopeModeTask | ( | DQMStore * | dqm, |
const FedChannelConnection & | conn | ||
) |
Definition at line 11 of file DaqScopeModeTask.cc.
: CommissioningTask( dqm, conn, "DaqScopeModeTask" ), scope_(), nBins_(256) //@@ number of strips per FED channel {}
DaqScopeModeTask::~DaqScopeModeTask | ( | ) | [virtual] |
Definition at line 20 of file DaqScopeModeTask.cc.
{ }
void DaqScopeModeTask::book | ( | ) | [private, virtual] |
Reimplemented from CommissioningTask.
Definition at line 25 of file DaqScopeModeTask.cc.
References CommissioningTask::connection(), sistrip::DAQ_SCOPE_MODE, CommissioningTask::dqm(), sistrip::EXPERT_HISTO, sistrip::FED_KEY, CommissioningTask::fedKey(), CommissioningTask::HistoSet::histo(), CommissioningTask::HistoSet::isProfile_, sistrip::LLD_CHAN, LogTrace, sistrip::mlDqmSource_, nBins_, scope_, SiStripHistoTitle::title(), indexGen::title, CommissioningTask::HistoSet::vNumOfEntries_, CommissioningTask::HistoSet::vSumOfContents_, and CommissioningTask::HistoSet::vSumOfSquares_.
{ LogTrace(mlDqmSource_) << "[CommissioningTask::" << __func__ << "]"; std::string title = SiStripHistoTitle( sistrip::EXPERT_HISTO, sistrip::DAQ_SCOPE_MODE, sistrip::FED_KEY, fedKey(), sistrip::LLD_CHAN, connection().lldChannel() ).title(); scope_.histo( dqm()->book1D( title, title, nBins_, -0.5, nBins_-0.5 ) ); scope_.vNumOfEntries_.resize(nBins_,0); scope_.vSumOfContents_.resize(nBins_,0); scope_.vSumOfSquares_.resize(nBins_,0); scope_.isProfile_ = false; }
void DaqScopeModeTask::fill | ( | const SiStripEventSummary & | summary, |
const edm::DetSet< SiStripRawDigi > & | digis | ||
) | [private, virtual] |
Reimplemented from CommissioningTask.
Definition at line 47 of file DaqScopeModeTask.cc.
References edm::DetSet< T >::data, CommissioningTask::fillCntr(), sistrip::mlDqmSource_, nBins_, scope_, CommissioningTask::updateFreq(), and CommissioningTask::updateHistoSet().
{ // Only fill every 'N' events if ( !updateFreq() || fillCntr()%updateFreq() ) { return; } if ( digis.data.size() != nBins_ ) { //@@ check scope mode length? edm::LogWarning(mlDqmSource_) << "[DaqScopeModeTask::" << __func__ << "]" << " Unexpected number of digis (" << digis.data.size() << ") wrt number of histogram bins (" << nBins_ << ")!"; } uint16_t bins = digis.data.size() < nBins_ ? digis.data.size() : nBins_; for ( uint16_t ibin = 0; ibin < bins; ibin++ ) { updateHistoSet( scope_, ibin, digis.data[ibin].adc() ); } }
void DaqScopeModeTask::update | ( | void | ) | [private, virtual] |
Reimplemented from CommissioningTask.
Definition at line 71 of file DaqScopeModeTask.cc.
References scope_, and CommissioningTask::updateHistoSet().
{ updateHistoSet( scope_ ); }
uint16_t DaqScopeModeTask::nBins_ [private] |
Definition at line 25 of file DaqScopeModeTask.h.
HistoSet DaqScopeModeTask::scope_ [private] |
Definition at line 23 of file DaqScopeModeTask.h.