#include <ApvTimingTask.h>
Public Member Functions | |
ApvTimingTask (DQMStore *, const FedChannelConnection &) | |
virtual | ~ApvTimingTask () |
Private Member Functions | |
virtual void | book () |
virtual void | fill (const SiStripEventSummary &, const edm::DetSet< SiStripRawDigi > &) |
virtual void | update () |
Private Attributes | |
uint16_t | nBins_ |
uint16_t | nFineDelays_ |
uint16_t | nSamples_ |
HistoSet | timing_ |
Definition at line 9 of file ApvTimingTask.h.
ApvTimingTask::ApvTimingTask | ( | DQMStore * | dqm, |
const FedChannelConnection & | conn | ||
) |
Definition at line 11 of file ApvTimingTask.cc.
: CommissioningTask( dqm, conn, "ApvTimingTask" ), timing_(), nSamples_(40), nFineDelays_(24), nBins_(40) {}
ApvTimingTask::~ApvTimingTask | ( | ) | [virtual] |
Definition at line 22 of file ApvTimingTask.cc.
{ }
void ApvTimingTask::book | ( | ) | [private, virtual] |
Reimplemented from CommissioningTask.
Definition at line 27 of file ApvTimingTask.cc.
References sistrip::APV_TIMING, CommissioningTask::connection(), CommissioningTask::dqm(), sistrip::EXPERT_HISTO, sistrip::FED_KEY, CommissioningTask::fedKey(), CommissioningTask::HistoSet::histo(), sistrip::LLD_CHAN, pileupCalc::nbins, nBins_, timing_, SiStripHistoTitle::title(), indexGen::title, CommissioningTask::HistoSet::vNumOfEntries_, CommissioningTask::HistoSet::vSumOfContents_, and CommissioningTask::HistoSet::vSumOfSquares_.
{ uint16_t nbins = 24 * nBins_; std::string title = SiStripHistoTitle( sistrip::EXPERT_HISTO, sistrip::APV_TIMING, sistrip::FED_KEY, fedKey(), sistrip::LLD_CHAN, connection().lldChannel() ).title(); timing_.histo( dqm()->bookProfile( title, title, nbins, -0.5, nBins_*25.-0.5, 1025, 0., 1025. ) ); timing_.vNumOfEntries_.resize(nbins,0); timing_.vSumOfContents_.resize(nbins,0); timing_.vSumOfSquares_.resize(nbins,0); }
void ApvTimingTask::fill | ( | const SiStripEventSummary & | summary, |
const edm::DetSet< SiStripRawDigi > & | digis | ||
) | [private, virtual] |
Reimplemented from CommissioningTask.
Definition at line 58 of file ApvTimingTask.cc.
References edm::DetSet< T >::data, sistrip::mlDqmSource_, nBins_, SiStripEventSummary::pllFine(), timing_, and CommissioningTask::updateHistoSet().
{ if ( digis.data.size() < nBins_ ) { //@@ check scope mode length? edm::LogWarning(mlDqmSource_) << "[ApvTimingTask::" << __func__ << "]" << " Unexpected number of digis! " << digis.data.size(); return; } uint32_t pll_fine = summary.pllFine(); for ( uint16_t coarse = 0; coarse < nBins_/*digis.data.size()*/; coarse++ ) { uint16_t fine = (coarse+1)*24 - (pll_fine+1); updateHistoSet( timing_, fine, digis.data[coarse].adc() ); } }
void ApvTimingTask::update | ( | void | ) | [private, virtual] |
Reimplemented from CommissioningTask.
Definition at line 79 of file ApvTimingTask.cc.
References timing_, and CommissioningTask::updateHistoSet().
{ updateHistoSet( timing_ ); }
uint16_t ApvTimingTask::nBins_ [private] |
Definition at line 27 of file ApvTimingTask.h.
uint16_t ApvTimingTask::nFineDelays_ [private] |
Definition at line 26 of file ApvTimingTask.h.
uint16_t ApvTimingTask::nSamples_ [private] |
Definition at line 25 of file ApvTimingTask.h.
HistoSet ApvTimingTask::timing_ [private] |
Definition at line 23 of file ApvTimingTask.h.