CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
ApvTimingTask Class Reference

#include <ApvTimingTask.h>

Inheritance diagram for ApvTimingTask:
CommissioningTask

Public Member Functions

 ApvTimingTask (DQMStore *, const FedChannelConnection &)
 
virtual ~ApvTimingTask ()
 
- Public Member Functions inherited from CommissioningTask
void bookHistograms ()
 
 CommissioningTask (DQMStore *, const FedChannelConnection &, const std::string &my_name)
 
void eventSetup (const edm::EventSetup *)
 
const uint32_t & fillCntr () const
 
void fillHistograms (const SiStripEventSummary &, const edm::DetSet< SiStripRawDigi > &)
 
void fillHistograms (const SiStripEventSummary &, const uint16_t &fed_id, const std::map< uint16_t, float > &fed_ch)
 
const std::string & myName () const
 
const uint32_t & updateFreq () const
 
void updateFreq (const uint32_t &)
 
void updateHistograms ()
 
virtual ~CommissioningTask ()
 

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_
 

Additional Inherited Members

- Protected Member Functions inherited from CommissioningTask
const FedChannelConnectionconnection () const
 
DQMStore *const dqm () const
 
const edm::EventSetup *const eventSetup () const
 
const uint32_t & fecKey () const
 
const uint32_t & fedKey () const
 
void updateHistoSet (HistoSet &, const uint32_t &bin, const float &value)
 
void updateHistoSet (CompactHistoSet &, const uint32_t &bin, const short &value)
 
void updateHistoSet (HistoSet &, const uint32_t &bin)
 
void updateHistoSet (CompactHistoSet &, const uint32_t &bin)
 
void updateHistoSet (HistoSet &, const float &value)
 
void updateHistoSet (CompactHistoSet &)
 
void updateHistoSet (HistoSet &)
 

Detailed Description

Definition at line 9 of file ApvTimingTask.h.

Constructor & Destructor Documentation

ApvTimingTask::ApvTimingTask ( DQMStore dqm,
const FedChannelConnection conn 
)

Definition at line 11 of file ApvTimingTask.cc.

12  :
13  CommissioningTask( dqm, conn, "ApvTimingTask" ),
14  timing_(),
15  nSamples_(40),
16  nFineDelays_(24),
17  nBins_(40)
18 {}
uint16_t nFineDelays_
Definition: ApvTimingTask.h:26
uint16_t nBins_
Definition: ApvTimingTask.h:27
HistoSet timing_
Definition: ApvTimingTask.h:23
uint16_t nSamples_
Definition: ApvTimingTask.h:25
ApvTimingTask::~ApvTimingTask ( )
virtual

Definition at line 22 of file ApvTimingTask.cc.

22  {
23 }

Member Function Documentation

void ApvTimingTask::book ( )
privatevirtual

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_, AlCaHLTBitMon_QueryRunRegistry::string, timing_, fftjetcommon_cfi::title, SiStripHistoTitle::title(), CommissioningTask::HistoSet::vNumOfEntries_, CommissioningTask::HistoSet::vSumOfContents_, and CommissioningTask::HistoSet::vSumOfSquares_.

27  {
28 
29  uint16_t nbins = 24 * nBins_;
30 
34  fedKey(),
36  connection().lldChannel() ).title();
37 
38  timing_.histo( dqm()->bookProfile( title, title,
39  nbins, -0.5, nBins_*25.-0.5,
40  1025, 0., 1025. ) );
41 
42  timing_.vNumOfEntries_.resize(nbins,0);
43  timing_.vSumOfContents_.resize(nbins,0);
44  timing_.vSumOfSquares_.resize(nbins,0);
45 
46 }
std::vector< float > vNumOfEntries_
Utility class that holds histogram title.
const std::string & title() const
std::vector< float > vSumOfContents_
uint16_t nBins_
Definition: ApvTimingTask.h:27
DQMStore *const dqm() const
HistoSet timing_
Definition: ApvTimingTask.h:23
void histo(MonitorElement *)
const uint32_t & fedKey() const
std::vector< double > vSumOfSquares_
const FedChannelConnection & connection() const
void ApvTimingTask::fill ( const SiStripEventSummary summary,
const edm::DetSet< SiStripRawDigi > &  digis 
)
privatevirtual

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().

59  {
60 
61  if ( digis.data.size() < nBins_ ) { //@@ check scope mode length?
63  << "[ApvTimingTask::" << __func__ << "]"
64  << " Unexpected number of digis! "
65  << digis.data.size();
66  return;
67  }
68 
69  uint32_t pll_fine = summary.pllFine();
70  for ( uint16_t coarse = 0; coarse < nBins_/*digis.data.size()*/; coarse++ ) {
71  uint16_t fine = (coarse+1)*24 - (pll_fine+1);
72  updateHistoSet( timing_, fine, digis.data[coarse].adc() );
73  }
74 
75 }
static const char mlDqmSource_[]
const uint32_t & pllFine() const
void updateHistoSet(HistoSet &, const uint32_t &bin, const float &value)
uint16_t nBins_
Definition: ApvTimingTask.h:27
collection_type data
Definition: DetSet.h:78
HistoSet timing_
Definition: ApvTimingTask.h:23
void ApvTimingTask::update ( )
privatevirtual

Reimplemented from CommissioningTask.

Definition at line 79 of file ApvTimingTask.cc.

References timing_, and CommissioningTask::updateHistoSet().

Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), dqm-mbProfile.Profile::finish(), progressbar.ProgressBar::finish(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), MatrixUtil.Steps::overwrite(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Gui.VispaWidget.VispaWidget::setText(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().

79  {
81 }
void updateHistoSet(HistoSet &, const uint32_t &bin, const float &value)
HistoSet timing_
Definition: ApvTimingTask.h:23

Member Data Documentation

uint16_t ApvTimingTask::nBins_
private

Definition at line 27 of file ApvTimingTask.h.

Referenced by book(), and fill().

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.

Referenced by book(), fill(), and update().