#include <DQM/SiStripCommissioningSources/interface/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.
00012 : 00013 CommissioningTask( dqm, conn, "DaqScopeModeTask" ), 00014 scope_(), 00015 nBins_(256) //@@ number of strips per FED channel 00016 {}
DaqScopeModeTask::~DaqScopeModeTask | ( | ) | [virtual] |
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_, indexGen::title, CommissioningTask::HistoSet::vNumOfEntries_, CommissioningTask::HistoSet::vSumOfContents_, and CommissioningTask::HistoSet::vSumOfSquares_.
00025 { 00026 LogTrace(mlDqmSource_) << "[CommissioningTask::" << __func__ << "]"; 00027 00028 std::string title = SiStripHistoTitle( sistrip::EXPERT_HISTO, 00029 sistrip::DAQ_SCOPE_MODE, 00030 sistrip::FED_KEY, 00031 fedKey(), 00032 sistrip::LLD_CHAN, 00033 connection().lldChannel() ).title(); 00034 00035 scope_.histo( dqm()->book1D( title, title, 00036 nBins_, -0.5, nBins_-0.5 ) ); 00037 00038 scope_.vNumOfEntries_.resize(nBins_,0); 00039 scope_.vSumOfContents_.resize(nBins_,0); 00040 scope_.vSumOfSquares_.resize(nBins_,0); 00041 scope_.isProfile_ = false; 00042 00043 }
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().
00048 { 00049 00050 // Only fill every 'N' events 00051 if ( !updateFreq() || fillCntr()%updateFreq() ) { return; } 00052 00053 if ( digis.data.size() != nBins_ ) { //@@ check scope mode length? 00054 edm::LogWarning(mlDqmSource_) 00055 << "[DaqScopeModeTask::" << __func__ << "]" 00056 << " Unexpected number of digis (" 00057 << digis.data.size() 00058 << ") wrt number of histogram bins (" 00059 << nBins_ << ")!"; 00060 } 00061 00062 uint16_t bins = digis.data.size() < nBins_ ? digis.data.size() : nBins_; 00063 for ( uint16_t ibin = 0; ibin < bins; ibin++ ) { 00064 updateHistoSet( scope_, ibin, digis.data[ibin].adc() ); 00065 } 00066 00067 }
void DaqScopeModeTask::update | ( | ) | [private, virtual] |
Reimplemented from CommissioningTask.
Definition at line 71 of file DaqScopeModeTask.cc.
References scope_, and CommissioningTask::updateHistoSet().
00071 { 00072 updateHistoSet( scope_ ); 00073 }
uint16_t DaqScopeModeTask::nBins_ [private] |
HistoSet DaqScopeModeTask::scope_ [private] |