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

#include <FedTimingTask.h>

Inheritance diagram for FedTimingTask:
CommissioningTask

Public Member Functions

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

Constructor & Destructor Documentation

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

Definition at line 10 of file FedTimingTask.cc.

References LogDebug.

11  :
12  CommissioningTask( dqm, conn, "FedTimingTask" ),
13  timing_(),
14  nBins_(40) //@@ this should be from number of scope mode samples (mean booking in event loop and putting scope mode length in trigger fed)
15 {
16  LogDebug("Commissioning") << "[FedTimingTask::FedTimingTask] Constructing object...";
17 }
#define LogDebug(id)
uint16_t nBins_
Definition: FedTimingTask.h:25
HistoSet timing_
Definition: FedTimingTask.h:23
FedTimingTask::~FedTimingTask ( )
virtual

Definition at line 21 of file FedTimingTask.cc.

References LogDebug.

21  {
22  LogDebug("Commissioning") << "[FedTimingTask::FedTimingTask] Destructing object...";
23 }
#define LogDebug(id)

Member Function Documentation

void FedTimingTask::book ( )
privatevirtual

Reimplemented from CommissioningTask.

Definition at line 27 of file FedTimingTask.cc.

References CommissioningTask::connection(), CommissioningTask::dqm(), sistrip::EXPERT_HISTO, sistrip::FED_KEY, sistrip::FED_TIMING, CommissioningTask::fedKey(), CommissioningTask::HistoSet::histo(), sistrip::LLD_CHAN, LogDebug, pileupCalc::nbins, nBins_, timing_, SiStripHistoTitle::title(), indexGen::title, CommissioningTask::HistoSet::vNumOfEntries_, CommissioningTask::HistoSet::vSumOfContents_, and CommissioningTask::HistoSet::vSumOfSquares_.

27  {
28  LogDebug("Commissioning") << "[FedTimingTask::book]";
29 
30  uint16_t nbins = 24 * nBins_; // 24 "fine" pll skews possible
31 
32  std::string title;
33 
37  fedKey(),
39  connection().lldChannel() ).title();
40 
41  timing_.histo( dqm()->bookProfile( title, title,
42  nbins, -0.5, nbins*1.-0.5,
43  1025, 0., 1025. ) );
44 
45  timing_.vNumOfEntries_.resize(nbins,0);
46  timing_.vSumOfContents_.resize(nbins,0);
47  timing_.vSumOfSquares_.resize(nbins,0);
48 
49 }
#define LogDebug(id)
std::vector< float > vNumOfEntries_
Utility class that holds histogram title.
const std::string & title() const
std::vector< float > vSumOfContents_
uint16_t nBins_
Definition: FedTimingTask.h:25
DQMStore *const dqm() const
void histo(MonitorElement *)
const uint32_t & fedKey() const
std::vector< double > vSumOfSquares_
const FedChannelConnection & connection() const
HistoSet timing_
Definition: FedTimingTask.h:23
void FedTimingTask::fill ( const SiStripEventSummary summary,
const edm::DetSet< SiStripRawDigi > &  digis 
)
privatevirtual

Reimplemented from CommissioningTask.

Definition at line 61 of file FedTimingTask.cc.

References edm::DetSet< T >::data, LogDebug, nBins_, SiStripEventSummary::pllFine(), timing_, and CommissioningTask::updateHistoSet().

62  {
63  LogDebug("Commissioning") << "[FedTimingTask::fill]";
64 
65  //@@ if scope mode length is in trigger fed, then
66  //@@ can add check here on number of digis
67  if ( digis.data.size() < nBins_ ) {
68  edm::LogWarning("Commissioning") << "[FedTimingTask::fill]"
69  << " Unexpected number of digis! "
70  << digis.data.size();
71  } else {
72 
73  uint32_t pll_fine = summary.pllFine();
74  for ( uint16_t coarse = 0; coarse < nBins_/*digis.data.size()*/; coarse++ ) {
75  uint16_t fine = (coarse+1)*24 - (pll_fine+1);
76  updateHistoSet( timing_, fine, digis.data[coarse].adc() );
77  }
78 
79  }
80 
81 }
#define LogDebug(id)
const uint32_t & pllFine() const
void updateHistoSet(HistoSet &, const uint32_t &bin, const float &value)
uint16_t nBins_
Definition: FedTimingTask.h:25
collection_type data
Definition: DetSet.h:79
HistoSet timing_
Definition: FedTimingTask.h:23
void FedTimingTask::update ( void  )
privatevirtual

Reimplemented from CommissioningTask.

Definition at line 85 of file FedTimingTask.cc.

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

85  {
86  LogDebug("Commissioning") << "[FedTimingTask::update]";
88 }
#define LogDebug(id)
void updateHistoSet(HistoSet &, const uint32_t &bin, const float &value)
HistoSet timing_
Definition: FedTimingTask.h:23

Member Data Documentation

uint16_t FedTimingTask::nBins_
private

Definition at line 25 of file FedTimingTask.h.

Referenced by book(), and fill().

HistoSet FedTimingTask::timing_
private

Definition at line 23 of file FedTimingTask.h.

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