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
FastFedCablingTask Class Reference

#include <FastFedCablingTask.h>

Inheritance diagram for FastFedCablingTask:
CommissioningTask

Public Member Functions

 FastFedCablingTask (DQMStore *, const FedChannelConnection &)
 
virtual ~FastFedCablingTask ()
 
- 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

HistoSet histo_
 

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 8 of file FastFedCablingTask.h.

Constructor & Destructor Documentation

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

Definition at line 14 of file FastFedCablingTask.cc.

15  :
16  CommissioningTask( dqm, conn, "FastFedCablingTask" ),
17  histo_()
18 {}
FastFedCablingTask::~FastFedCablingTask ( )
virtual

Definition at line 22 of file FastFedCablingTask.cc.

22  {
23 }

Member Function Documentation

void FastFedCablingTask::book ( )
privatevirtual

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

27  {
28 
32  fedKey(),
34  connection().lldChannel() ).title();
35 
36  uint16_t nbins = 34;
37  histo_.histo( dqm()->bookProfile( title, title,
38  nbins, -0.5, nbins*1.-0.5,
39  1025, 0., 1025. ) );
40 
41  histo_.vNumOfEntries_.resize(nbins,0);
42  histo_.vSumOfContents_.resize(nbins,0);
43  histo_.vSumOfSquares_.resize(nbins,0);
44 
45 }
std::vector< float > vNumOfEntries_
Utility class that holds histogram title.
const std::string & title() const
std::vector< float > vSumOfContents_
DQMStore *const dqm() const
void histo(MonitorElement *)
const uint32_t & fedKey() const
std::vector< double > vSumOfSquares_
const FedChannelConnection & connection() const
void FastFedCablingTask::fill ( const SiStripEventSummary summary,
const edm::DetSet< SiStripRawDigi > &  digis 
)
privatevirtual

Reimplemented from CommissioningTask.

Definition at line 49 of file FastFedCablingTask.cc.

References newFWLiteAna::bin, SiStripEventSummary::binNumber(), edm::DetSet< T >::data, histo_, sistrip::mlDqmSource_, and CommissioningTask::updateHistoSet().

50  {
51 
52  if ( digis.data.empty() ) {
54  << "[FastFedCablingTask::" << __func__ << "]"
55  << " No digis found!";
56  return;
57  }
58 
59  uint32_t bin = summary.binNumber();
60  for ( uint16_t ibin = 0; ibin < digis.data.size(); ibin++ ) {
61  updateHistoSet( histo_, bin, digis.data[ibin].adc() );
62  }
63 
64 }
static const char mlDqmSource_[]
const uint32_t & binNumber() const
void updateHistoSet(HistoSet &, const uint32_t &bin, const float &value)
collection_type data
Definition: DetSet.h:78
void FastFedCablingTask::update ( void  )
privatevirtual

Reimplemented from CommissioningTask.

Definition at line 68 of file FastFedCablingTask.cc.

References histo_, and CommissioningTask::updateHistoSet().

Referenced by progressbar.ProgressBar::__next__(), relval_steps.Matrix::__setitem__(), relval_steps.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(), 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(), relval_steps.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().

68  {
70 }
void updateHistoSet(HistoSet &, const uint32_t &bin, const float &value)

Member Data Documentation

HistoSet FastFedCablingTask::histo_
private

Definition at line 22 of file FastFedCablingTask.h.

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