CMS 3D CMS Logo

FastFedCablingTask Class Reference

#include <DQM/SiStripCommissioningSources/interface/FastFedCablingTask.h>

Inheritance diagram for FastFedCablingTask:

CommissioningTask

List of all members.

Public Member Functions

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

Private Member Functions

virtual void book ()
virtual void fill (const SiStripEventSummary &, const edm::DetSet< SiStripRawDigi > &)
virtual void update ()

Private Attributes

HistoSet histo_


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.

00015                                                                            :
00016   CommissioningTask( dqm, conn, "FastFedCablingTask" ),
00017   histo_()
00018 {}

FastFedCablingTask::~FastFedCablingTask (  )  [virtual]

Definition at line 22 of file FastFedCablingTask.cc.

00022                                         {
00023 }


Member Function Documentation

void FastFedCablingTask::book (  )  [private, virtual]

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, indexGen::title, CommissioningTask::HistoSet::vNumOfEntries_, CommissioningTask::HistoSet::vSumOfContents_, and CommissioningTask::HistoSet::vSumOfSquares_.

00027                               {
00028   
00029   std::string title = SiStripHistoTitle( sistrip::EXPERT_HISTO, 
00030                                          sistrip::FAST_CABLING,
00031                                          sistrip::FED_KEY, 
00032                                          fedKey(),
00033                                          sistrip::LLD_CHAN, 
00034                                          connection().lldChannel() ).title();
00035   
00036   uint16_t nbins = 34;
00037   histo_.histo( dqm()->bookProfile( title, title, 
00038                                     nbins, -0.5, nbins*1.-0.5,
00039                                     1025, 0., 1025. ) );
00040   
00041   histo_.vNumOfEntries_.resize(nbins,0);
00042   histo_.vSumOfContents_.resize(nbins,0);
00043   histo_.vSumOfSquares_.resize(nbins,0);
00044   
00045 }

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

Reimplemented from CommissioningTask.

Definition at line 49 of file FastFedCablingTask.cc.

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

00050                                                                         {
00051 
00052   if ( digis.data.empty() ) {
00053     edm::LogWarning(mlDqmSource_)
00054       << "[FastFedCablingTask::" << __func__ << "]"
00055       << " No digis found!"; 
00056     return;
00057   }
00058 
00059   uint32_t bin = summary.binNumber();
00060   for ( uint16_t ibin = 0; ibin < digis.data.size(); ibin++ ) {
00061     updateHistoSet( histo_, bin, digis.data[ibin].adc() );
00062   }
00063   
00064 }

void FastFedCablingTask::update (  )  [private, virtual]

Reimplemented from CommissioningTask.

Definition at line 68 of file FastFedCablingTask.cc.

References histo_, and CommissioningTask::updateHistoSet().

00068                                 {
00069   updateHistoSet( histo_ );
00070 }


Member Data Documentation

HistoSet FastFedCablingTask::histo_ [private]

Definition at line 22 of file FastFedCablingTask.h.

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


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:20:42 2009 for CMSSW by  doxygen 1.5.4