CMS 3D CMS Logo

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

Private Attributes

std::vector< HistoSethistos_
 

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 (CompactHistoSet &)
 
void updateHistoSet (CompactHistoSet &, const uint32_t &bin)
 
void updateHistoSet (CompactHistoSet &, const uint32_t &bin, const short &value)
 
void updateHistoSet (HistoSet &)
 
void updateHistoSet (HistoSet &, const float &value)
 
void updateHistoSet (HistoSet &, const uint32_t &bin)
 
void updateHistoSet (HistoSet &, const uint32_t &bin, const float &value)
 

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::FedCablingTask ( DQMStore dqm,
const FedChannelConnection conn 
)

Definition at line 14 of file FedCablingTask.cc.

15  : CommissioningTask(dqm, conn, "FedCablingTask"), histos_() {}

◆ ~FedCablingTask()

FedCablingTask::~FedCablingTask ( )
override

Definition at line 19 of file FedCablingTask.cc.

19 {}

Member Function Documentation

◆ book()

void FedCablingTask::book ( )
overrideprivatevirtual

Reimplemented from CommissioningTask.

Definition at line 23 of file FedCablingTask.cc.

23  {
24  histos_.resize(2);
25 
27  uint16_t nbins = 0;
28  std::string extra_info = "";
29  for (uint16_t iter = 0; iter < 2; iter++) {
30  // Define number of histo bins and title
31  if (iter == 0) {
32  nbins = 1024;
33  extra_info = sistrip::feDriver_;
34  } else if (iter == 1) {
35  nbins = 96;
36  extra_info = sistrip::fedChannel_;
37  } else {
38  edm::LogWarning(mlDqmSource_) << "[FedCablingTask::" << __func__ << "]"
39  << " Unexpected number of HistoSets: " << iter;
40  }
41 
45  fedKey(),
47  connection().lldChannel(),
48  extra_info)
49  .title();
50 
51  histos_[iter].histo(dqm()->bookProfile(title, title, nbins, -0.5, nbins * 1. - 0.5, 1025, 0., 1025.));
52 
53  histos_[iter].vNumOfEntries_.resize(nbins, 0);
54  histos_[iter].vSumOfContents_.resize(nbins, 0);
55  histos_[iter].vSumOfSquares_.resize(nbins, 0);
56  }
57 }

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

◆ fill()

void FedCablingTask::fill ( const SiStripEventSummary summary,
const uint16_t &  fed_id,
const std::map< uint16_t, float > &  fed_ch 
)
overrideprivatevirtual

Reimplemented from CommissioningTask.

Definition at line 61 of file FedCablingTask.cc.

63  {
64  if (fed_ch.empty()) {
65  edm::LogWarning(mlDqmSource_) << "[FedCablingTask::" << __func__ << "]"
66  << " No FED channels with high signal!";
67  return;
68  } else {
69  LogTrace(mlDqmSource_) << "[FedCablingTask::" << __func__ << "]"
70  << " Found " << fed_ch.size() << " FED channels with high signal!";
71  }
72 
73  std::map<uint16_t, float>::const_iterator ichan = fed_ch.begin();
74  for (; ichan != fed_ch.end(); ichan++) {
75  updateHistoSet(histos_[0], fed_id, ichan->second);
76  updateHistoSet(histos_[1], ichan->first, ichan->second);
77  }
78 }

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

◆ update()

void FedCablingTask::update ( )
overrideprivatevirtual

Member Data Documentation

◆ histos_

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 25 of file FedCablingTask.h.

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

sistrip::mlDqmSource_
static const char mlDqmSource_[]
Definition: ConstantsForLogger.h:20
runGCPTkAlMap.title
string title
Definition: runGCPTkAlMap.py:94
FedCablingTask::histos_
std::vector< HistoSet > histos_
Definition: FedCablingTask.h:25
CommissioningTask::connection
const FedChannelConnection & connection() const
Definition: CommissioningTask.h:189
SiStripCommissioningClient_cfg.conn
conn
Definition: SiStripCommissioningClient_cfg.py:5
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
CommissioningTask::fedKey
const uint32_t & fedKey() const
Definition: CommissioningTask.h:192
sistrip::FED_CABLING
Definition: ConstantsForRunType.h:81
sistrip::fedChannel_
static const char fedChannel_[]
Definition: ConstantsForGranularity.h:48
sistrip::EXPERT_HISTO
Definition: ConstantsForHistoType.h:29
LaserClient_cfi.nbins
nbins
Definition: LaserClient_cfi.py:51
CommissioningTask::CommissioningTask
CommissioningTask()
Definition: CommissioningTask.h:143
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
CommissioningTask::updateHistoSet
void updateHistoSet(HistoSet &, const uint32_t &bin, const float &value)
Definition: CommissioningTask.cc:274
CommissioningTask::dqm
DQMStore *const dqm() const
Definition: CommissioningTask.h:188
SiStripHistoTitle::title
const std::string & title() const
Definition: SiStripHistoTitle.h:109
SiStripHistoTitle
Utility class that holds histogram title.
Definition: SiStripHistoTitle.h:20
dqm
Definition: DQMStore.h:18
LogTrace
#define LogTrace(id)
Definition: MessageLogger.h:224
sistrip::FED_KEY
Definition: ConstantsForKeyType.h:30
sistrip::LLD_CHAN
Definition: ConstantsForGranularity.h:78
sistrip::feDriver_
static const char feDriver_[]
Definition: ConstantsForGranularity.h:44