CMS 3D CMS Logo

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 &)
 
 ~FastFedCablingTask () override
 
- 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 edm::DetSet< SiStripRawDigi > &, const edm::DetSet< SiStripRawDigi > &)
 
void fillHistograms (const SiStripEventSummary &, const edm::DetSet< SiStripRawDigi > &, const edm::DetSet< SiStripRawDigi > &, const std::vector< uint16_t > &)
 
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

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

Private Attributes

HistoSet histo_
 

Additional Inherited Members

- Public Types inherited from CommissioningTask
typedef dqm::legacy::DQMStore DQMStore
 
typedef dqm::legacy::MonitorElement MonitorElement
 
- 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::FastFedCablingTask ( DQMStore dqm,
const FedChannelConnection conn 
)

Definition at line 14 of file FastFedCablingTask.cc.

◆ ~FastFedCablingTask()

FastFedCablingTask::~FastFedCablingTask ( )
override

Definition at line 19 of file FastFedCablingTask.cc.

19 {}

Member Function Documentation

◆ book()

void FastFedCablingTask::book ( )
overrideprivatevirtual

Reimplemented from CommissioningTask.

Definition at line 23 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, LaserClient_cfi::nbins, AlCaHLTBitMon_QueryRunRegistry::string, SiStripHistoTitle::title(), runGCPTkAlMap::title, CommissioningTask::HistoSet::vNumOfEntries_, CommissioningTask::HistoSet::vSumOfContents_, and CommissioningTask::HistoSet::vSumOfSquares_.

23  {
27  fedKey(),
29  connection().lldChannel())
30  .title();
31 
32  uint16_t nbins = 34;
33  histo_.histo(dqm()->bookProfile(title, title, nbins, -0.5, nbins * 1. - 0.5, 1025, 0., 1025.));
34 
35  histo_.vNumOfEntries_.resize(nbins, 0);
36  histo_.vSumOfContents_.resize(nbins, 0);
37  histo_.vSumOfSquares_.resize(nbins, 0);
38 }
std::vector< float > vNumOfEntries_
Utility class that holds histogram title.
std::vector< float > vSumOfContents_
const uint32_t & fedKey() const
DQMStore *const dqm() const
void histo(MonitorElement *)
std::vector< double > vSumOfSquares_
const std::string & title() const
const FedChannelConnection & connection() const

◆ fill()

void FastFedCablingTask::fill ( const SiStripEventSummary summary,
const edm::DetSet< SiStripRawDigi > &  digis 
)
overrideprivatevirtual

Reimplemented from CommissioningTask.

Definition at line 42 of file FastFedCablingTask.cc.

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

42  {
43  if (digis.data.empty()) {
44  edm::LogWarning(mlDqmSource_) << "[FastFedCablingTask::" << __func__ << "]"
45  << " No digis found!";
46  return;
47  }
48 
49  uint32_t bin = summary.binNumber();
50  for (uint16_t ibin = 0; ibin < digis.data.size(); ibin++) {
51  updateHistoSet(histo_, bin, digis.data[ibin].adc());
52  }
53 }
static const char mlDqmSource_[]
void updateHistoSet(HistoSet &, const uint32_t &bin, const float &value)
collection_type data
Definition: DetSet.h:80
Log< level::Warning, false > LogWarning

◆ update()

void FastFedCablingTask::update ( )
overrideprivatevirtual

Member Data Documentation

◆ histo_

HistoSet FastFedCablingTask::histo_
private

Definition at line 18 of file FastFedCablingTask.h.

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