#include <DQM/SiStripCommissioningSources/interface/FastFedCablingTask.h>
Public Member Functions | |
FastFedCablingTask (DQMStore *, const FedChannelConnection &) | |
virtual | ~FastFedCablingTask () |
Private Member Functions | |
virtual void | book () |
virtual void | fill (const SiStripEventSummary &, const edm::DetSet< SiStripRawDigi > &) |
virtual void | update () |
Private Attributes | |
HistoSet | histo_ |
Definition at line 8 of file FastFedCablingTask.h.
FastFedCablingTask::FastFedCablingTask | ( | DQMStore * | dqm, | |
const FedChannelConnection & | conn | |||
) |
Definition at line 14 of file FastFedCablingTask.cc.
00015 : 00016 CommissioningTask( dqm, conn, "FastFedCablingTask" ), 00017 histo_() 00018 {}
FastFedCablingTask::~FastFedCablingTask | ( | ) | [virtual] |
void FastFedCablingTask::book | ( | ) | [private, virtual] |
Reimplemented from CommissioningTask.
Definition at line 27 of file FastFedCablingTask.cc.
References CommissioningTask::connection(), CommissioningTask::dqm(), sistrip::EXPERT_HISTO, sistrip::FAST_CABLING, sistrip::FED_KEY, CommissioningTask::fedKey(), CommissioningTask::HistoSet::histo(), histo_, sistrip::LLD_CHAN, indexGen::title, CommissioningTask::HistoSet::vNumOfEntries_, CommissioningTask::HistoSet::vSumOfContents_, and CommissioningTask::HistoSet::vSumOfSquares_.
00027 { 00028 00029 std::string title = SiStripHistoTitle( sistrip::EXPERT_HISTO, 00030 sistrip::FAST_CABLING, 00031 sistrip::FED_KEY, 00032 fedKey(), 00033 sistrip::LLD_CHAN, 00034 connection().lldChannel() ).title(); 00035 00036 uint16_t nbins = 34; 00037 histo_.histo( dqm()->bookProfile( title, title, 00038 nbins, -0.5, nbins*1.-0.5, 00039 1025, 0., 1025. ) ); 00040 00041 histo_.vNumOfEntries_.resize(nbins,0); 00042 histo_.vSumOfContents_.resize(nbins,0); 00043 histo_.vSumOfSquares_.resize(nbins,0); 00044 00045 }
void FastFedCablingTask::fill | ( | const SiStripEventSummary & | summary, | |
const edm::DetSet< SiStripRawDigi > & | digis | |||
) | [private, virtual] |
Reimplemented from CommissioningTask.
Definition at line 49 of file FastFedCablingTask.cc.
References SiStripEventSummary::binNumber(), edm::DetSet< T >::data, histo_, sistrip::mlDqmSource_, and CommissioningTask::updateHistoSet().
00050 { 00051 00052 if ( digis.data.empty() ) { 00053 edm::LogWarning(mlDqmSource_) 00054 << "[FastFedCablingTask::" << __func__ << "]" 00055 << " No digis found!"; 00056 return; 00057 } 00058 00059 uint32_t bin = summary.binNumber(); 00060 for ( uint16_t ibin = 0; ibin < digis.data.size(); ibin++ ) { 00061 updateHistoSet( histo_, bin, digis.data[ibin].adc() ); 00062 } 00063 00064 }
void FastFedCablingTask::update | ( | ) | [private, virtual] |
Reimplemented from CommissioningTask.
Definition at line 68 of file FastFedCablingTask.cc.
References histo_, and CommissioningTask::updateHistoSet().
00068 { 00069 updateHistoSet( histo_ ); 00070 }
HistoSet FastFedCablingTask::histo_ [private] |