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

#include <FedCablingTask.h>

Inheritance diagram for FedCablingTask:
CommissioningTask

Public Member Functions

 FedCablingTask (DQMStore *, const FedChannelConnection &)
 
virtual ~FedCablingTask ()
 
- 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 uint16_t &fed_id, const std::map< uint16_t, float > &fed_ch)
 
virtual void update ()
 

Private Attributes

std::vector< HistoSethistos_
 

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

This object is stored in the TaskMap using FecKey as the key, rather than FedKey as for the other commissioning tasks.

Definition at line 13 of file FedCablingTask.h.

Constructor & Destructor Documentation

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

Definition at line 14 of file FedCablingTask.cc.

15  :
16  CommissioningTask( dqm, conn, "FedCablingTask" ),
17  histos_()
18 {}
std::vector< HistoSet > histos_
DQMStore *const dqm() const
FedCablingTask::~FedCablingTask ( )
virtual

Definition at line 22 of file FedCablingTask.cc.

22  {
23 }

Member Function Documentation

void FedCablingTask::book ( )
privatevirtual

Reimplemented from CommissioningTask.

Definition at line 27 of file FedCablingTask.cc.

References CommissioningTask::connection(), CommissioningTask::dqm(), sistrip::EXPERT_HISTO, sistrip::FED_CABLING, sistrip::FED_KEY, sistrip::fedChannel_, CommissioningTask::fedKey(), sistrip::feDriver_, histos_, getDQMSummary::iter, sistrip::LLD_CHAN, sistrip::mlDqmSource_, pileupCalc::nbins, AlCaHLTBitMon_QueryRunRegistry::string, SiStripHistoTitle::title(), and indexGen::title.

27  {
28 
29  histos_.resize(2);
30 
32  uint16_t nbins = 0;
33  std::string extra_info = "";
34  for ( uint16_t iter = 0; iter < 2; iter++ ) {
35 
36  // Define number of histo bins and title
37  if ( iter == 0 ) { nbins = 1024; extra_info = sistrip::feDriver_; }
38  else if ( iter == 1 ) { nbins = 96; extra_info = sistrip::fedChannel_; }
39  else {
41  << "[FedCablingTask::" << __func__ << "]"
42  << " Unexpected number of HistoSets: " << iter;
43  }
44 
48  fedKey(),
50  connection().lldChannel(),
51  extra_info ).title();
52 
53  histos_[iter].histo( dqm()->bookProfile( title, title,
54  nbins, -0.5, nbins*1.-0.5,
55  1025, 0., 1025. ) );
56 
57  histos_[iter].vNumOfEntries_.resize(nbins,0);
58  histos_[iter].vSumOfContents_.resize(nbins,0);
59  histos_[iter].vSumOfSquares_.resize(nbins,0);
60 
61  }
62 
63 }
static const char feDriver_[]
Utility class that holds histogram title.
const std::string & title() const
static const char mlDqmSource_[]
std::vector< HistoSet > histos_
static const char fedChannel_[]
DQMStore *const dqm() const
const uint32_t & fedKey() const
const FedChannelConnection & connection() const
void FedCablingTask::fill ( const SiStripEventSummary summary,
const uint16_t &  fed_id,
const std::map< uint16_t, float > &  fed_ch 
)
privatevirtual

Reimplemented from CommissioningTask.

Definition at line 67 of file FedCablingTask.cc.

References histos_, LogTrace, sistrip::mlDqmSource_, and CommissioningTask::updateHistoSet().

69  {
70 
71  if ( fed_ch.empty() ) {
73  << "[FedCablingTask::" << __func__ << "]"
74  << " No FED channels with high signal!";
75  return;
76  } else {
78  << "[FedCablingTask::" << __func__ << "]"
79  << " Found " << fed_ch.size()
80  << " FED channels with high signal!";
81  }
82 
83  std::map<uint16_t,float>::const_iterator ichan = fed_ch.begin();
84  for ( ; ichan != fed_ch.end(); ichan++ ) {
85  updateHistoSet( histos_[0], fed_id, ichan->second );
86  updateHistoSet( histos_[1], ichan->first, ichan->second );
87  }
88 
89 }
static const char mlDqmSource_[]
void updateHistoSet(HistoSet &, const uint32_t &bin, const float &value)
std::vector< HistoSet > histos_
#define LogTrace(id)
void FedCablingTask::update ( )
privatevirtual

Reimplemented from CommissioningTask.

Definition at line 93 of file FedCablingTask.cc.

References histos_, getDQMSummary::iter, 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().

93  {
94  for ( uint32_t iter = 0; iter < histos_.size(); iter++ ) {
96  }
97 }
void updateHistoSet(HistoSet &, const uint32_t &bin, const float &value)
std::vector< HistoSet > histos_

Member Data Documentation

std::vector<HistoSet> FedCablingTask::histos_
private

HistoSet for FED cabling. First element contains histo info for FED id, second element contains histo info for FED channel.

Definition at line 30 of file FedCablingTask.h.

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