CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

DaqScopeModeTask Class Reference

#include <DaqScopeModeTask.h>

Inheritance diagram for DaqScopeModeTask:
CommissioningTask

List of all members.

Public Member Functions

 DaqScopeModeTask (DQMStore *, const FedChannelConnection &)
virtual ~DaqScopeModeTask ()

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_

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.

                                                                       :
  CommissioningTask( dqm, conn, "DaqScopeModeTask" ),
  scope_(),
  nBins_(256) //@@ number of strips per FED channel
{}
DaqScopeModeTask::~DaqScopeModeTask ( ) [virtual]

Definition at line 20 of file DaqScopeModeTask.cc.

                                    {
}

Member Function Documentation

void DaqScopeModeTask::book ( ) [private, virtual]
void DaqScopeModeTask::fill ( const SiStripEventSummary summary,
const edm::DetSet< SiStripRawDigi > &  digis 
) [private, virtual]

Reimplemented from CommissioningTask.

Definition at line 47 of file DaqScopeModeTask.cc.

References combineCards::bins, edm::DetSet< T >::data, CommissioningTask::fillCntr(), sistrip::mlDqmSource_, nBins_, scope_, CommissioningTask::updateFreq(), and CommissioningTask::updateHistoSet().

                                                                      {
  
  // Only fill every 'N' events 
  if ( !updateFreq() || fillCntr()%updateFreq() ) { return; }
  
  if ( digis.data.size() != nBins_ ) { //@@ check scope mode length?  
    edm::LogWarning(mlDqmSource_)
      << "[DaqScopeModeTask::" << __func__ << "]"
      << " Unexpected number of digis (" 
      << digis.data.size()
      << ") wrt number of histogram bins ("
      << nBins_ << ")!";
  }
  
  uint16_t bins = digis.data.size() < nBins_ ? digis.data.size() : nBins_;
  for ( uint16_t ibin = 0; ibin < bins; ibin++ ) {
      updateHistoSet( scope_, ibin, digis.data[ibin].adc() ); 
  }
  
}
void DaqScopeModeTask::update ( void  ) [private, virtual]

Reimplemented from CommissioningTask.

Definition at line 71 of file DaqScopeModeTask.cc.

References scope_, and CommissioningTask::updateHistoSet().


Member Data Documentation

uint16_t DaqScopeModeTask::nBins_ [private]

Definition at line 25 of file DaqScopeModeTask.h.

Referenced by book(), and fill().

Definition at line 23 of file DaqScopeModeTask.h.

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