CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
DaqScopeModeTask Class Reference

#include <DaqScopeModeTask.h>

Inheritance diagram for DaqScopeModeTask:
CommissioningTask

Public Member Functions

 DaqScopeModeTask (DQMStore *, const FedChannelConnection &)
 
virtual ~DaqScopeModeTask ()
 
- 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_
 
HistoSet scope_
 

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 DaqScopeModeTask.h.

Constructor & Destructor Documentation

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

Definition at line 11 of file DaqScopeModeTask.cc.

12  :
13  CommissioningTask( dqm, conn, "DaqScopeModeTask" ),
14  scope_(),
15  nBins_(256) //@@ number of strips per FED channel
16 {}
DQMStore *const dqm() const
DaqScopeModeTask::~DaqScopeModeTask ( )
virtual

Definition at line 20 of file DaqScopeModeTask.cc.

20  {
21 }

Member Function Documentation

void DaqScopeModeTask::book ( )
privatevirtual

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

25  {
26  LogTrace(mlDqmSource_) << "[CommissioningTask::" << __func__ << "]";
27 
31  fedKey(),
33  connection().lldChannel() ).title();
34 
35  scope_.histo( dqm()->book1D( title, title,
36  nBins_, -0.5, nBins_-0.5 ) );
37 
38  scope_.vNumOfEntries_.resize(nBins_,0);
39  scope_.vSumOfContents_.resize(nBins_,0);
40  scope_.vSumOfSquares_.resize(nBins_,0);
41  scope_.isProfile_ = false;
42 
43 }
std::vector< float > vNumOfEntries_
Utility class that holds histogram title.
const std::string & title() const
static const char mlDqmSource_[]
std::vector< float > vSumOfContents_
#define LogTrace(id)
DQMStore *const dqm() const
void histo(MonitorElement *)
const uint32_t & fedKey() const
std::vector< double > vSumOfSquares_
const FedChannelConnection & connection() const
void DaqScopeModeTask::fill ( const SiStripEventSummary summary,
const edm::DetSet< SiStripRawDigi > &  digis 
)
privatevirtual

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

48  {
49 
50  // Only fill every 'N' events
51  if ( !updateFreq() || fillCntr()%updateFreq() ) { return; }
52 
53  if ( digis.data.size() != nBins_ ) { //@@ check scope mode length?
55  << "[DaqScopeModeTask::" << __func__ << "]"
56  << " Unexpected number of digis ("
57  << digis.data.size()
58  << ") wrt number of histogram bins ("
59  << nBins_ << ")!";
60  }
61 
62  uint16_t bins = digis.data.size() < nBins_ ? digis.data.size() : nBins_;
63  for ( uint16_t ibin = 0; ibin < bins; ibin++ ) {
64  updateHistoSet( scope_, ibin, digis.data[ibin].adc() );
65  }
66 
67 }
static const char mlDqmSource_[]
const uint32_t & updateFreq() const
void updateHistoSet(HistoSet &, const uint32_t &bin, const float &value)
const uint32_t & fillCntr() const
collection_type data
Definition: DetSet.h:78
void DaqScopeModeTask::update ( )
privatevirtual

Reimplemented from CommissioningTask.

Definition at line 71 of file DaqScopeModeTask.cc.

References scope_, 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().

71  {
73 }
void updateHistoSet(HistoSet &, const uint32_t &bin, const float &value)

Member Data Documentation

uint16_t DaqScopeModeTask::nBins_
private

Definition at line 25 of file DaqScopeModeTask.h.

Referenced by book(), and fill().

HistoSet DaqScopeModeTask::scope_
private

Definition at line 23 of file DaqScopeModeTask.h.

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