CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
CommissioningTask Class Reference

#include <CommissioningTask.h>

Inheritance diagram for CommissioningTask:
ApvTimingTask CalibrationScanTask CalibrationTask DaqScopeModeTask FastFedCablingTask FedCablingTask FedTimingTask FineDelayTask LatencyTask NoiseTask OptoScanTask PedestalsTask PedsFullNoiseTask PedsOnlyTask VpspScanTask

Classes

class  CompactHistoSet
 
class  HistoSet
 

Public Member Functions

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 ()
 

Protected Member Functions

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 &)
 

Private Member Functions

virtual void book ()
 
 CommissioningTask ()
 
virtual void fill (const SiStripEventSummary &, const edm::DetSet< SiStripRawDigi > &)
 
virtual void fill (const SiStripEventSummary &, const edm::DetSet< SiStripRawDigi > &, const edm::DetSet< SiStripRawDigi > &)
 
virtual void fill (const SiStripEventSummary &, const edm::DetSet< SiStripRawDigi > &, const edm::DetSet< SiStripRawDigi > &, const std::vector< uint16_t > &)
 
virtual void fill (const SiStripEventSummary &, const uint16_t &fed_id, const std::map< uint16_t, float > &fed_ch)
 
virtual void update ()
 

Private Attributes

bool booked_
 
FedChannelConnection connection_
 
DQMStoredqm_
 
const edm::EventSetupeventSetup_
 
uint32_t fecKey_
 
uint32_t fedKey_
 
uint32_t fillCntr_
 
std::string myName_
 
uint32_t updateFreq_
 

Detailed Description

Definition at line 23 of file CommissioningTask.h.

Constructor & Destructor Documentation

CommissioningTask::CommissioningTask ( DQMStore dqm,
const FedChannelConnection conn,
const std::string &  my_name 
)

Definition at line 17 of file CommissioningTask.cc.

References FedChannelConnection::ccuAddr(), FedChannelConnection::ccuChan(), connection_, TauDecayModes::dec, FedChannelConnection::fecCrate(), SiStripFedKey::feChan(), fecKey_, FedChannelConnection::fecRing(), FedChannelConnection::fecSlot(), FedChannelConnection::fedCh(), FedChannelConnection::fedId(), fedKey_, SiStripFedKey::feUnit(), crabWrapper::key, FedChannelConnection::lldChannel(), LogTrace, sistrip::mlDqmSource_, and myName_.

19  :
20  dqm_(dqm),
21  updateFreq_(0),
22  fillCntr_(0),
23  connection_(conn),
24  fedKey_(0),
25  fecKey_(0),
26  booked_(false),
27  myName_(my_name),
28  eventSetup_(nullptr)
29 {
30  uint16_t fed_ch = connection_.fedCh();
32  SiStripFedKey::feUnit(fed_ch),
33  SiStripFedKey::feChan(fed_ch) ).key();
40 
42  << "[CommissioningTask::" << __func__ << "]"
43  << " Constructing '" << myName_
44  << "' object for FecKey/FedKey: "
45  << "0x" << std::hex << std::setw(8) << std::setfill('0') << fecKey_ << std::dec
46  << "/"
47  << "0x" << std::hex << std::setw(8) << std::setfill('0') << fedKey_ << std::dec
48  << " and Crate/FEC/ring/CCU/module/LLDchan: "
49  << connection_.fecCrate() << "/"
50  << connection_.fecSlot() << "/"
51  << connection_.fecRing() << "/"
52  << connection_.ccuAddr() << "/"
53  << connection_.ccuChan() << "/"
55  << " and FedId/Ch: "
56  << connection_.fedId() << "/"
57  << connection_.fedCh();
58 }
const uint16_t & fecSlot() const
const uint16_t & fecCrate() const
A container class for generic run and event-related info, information required by the commissioning a...
Definition: SiStripFedKey.h:56
const uint16_t & fedCh() const
static const char mlDqmSource_[]
uint16_t lldChannel() const
const uint16_t & fedId() const
Utility class that identifies a position within the strip tracker control structure, down to the level of an APV25.
Definition: SiStripFecKey.h:45
const uint16_t & fecRing() const
const uint16_t & ccuChan() const
const uint16_t & ccuAddr() const
const edm::EventSetup * eventSetup_
#define LogTrace(id)
const uint16_t & feUnit() const
const uint16_t & feChan() const
FedChannelConnection connection_
CommissioningTask::~CommissioningTask ( )
virtual

Definition at line 62 of file CommissioningTask.cc.

References FedChannelConnection::ccuAddr(), FedChannelConnection::ccuChan(), connection_, TauDecayModes::dec, FedChannelConnection::fecCrate(), fecKey_, FedChannelConnection::fecRing(), FedChannelConnection::fecSlot(), FedChannelConnection::fedCh(), FedChannelConnection::fedId(), fedKey_, FedChannelConnection::lldChannel(), LogTrace, sistrip::mlDqmSource_, and myName_.

62  {
64  << "[CommissioningTask::" << __func__ << "]"
65  << " Destructing object for FED id/ch "
66  << " Constructing '" << myName_
67  << "' object for FecKey/FedKey: "
68  << "0x" << std::hex << std::setw(8) << std::setfill('0') << fecKey_ << std::dec
69  << "/"
70  << "0x" << std::hex << std::setw(8) << std::setfill('0') << fedKey_ << std::dec
71  << " and Crate/FEC/ring/CCU/module/LLDchan: "
72  << connection_.fecCrate() << "/"
73  << connection_.fecSlot() << "/"
74  << connection_.fecRing() << "/"
75  << connection_.ccuAddr() << "/"
76  << connection_.ccuChan() << "/"
78  << " and FedId/Ch: "
79  << connection_.fedId() << "/"
80  << connection_.fedCh();
81  //@@ do not delete EventSetup pointer!
82 }
const uint16_t & fecSlot() const
const uint16_t & fecCrate() const
const uint16_t & fedCh() const
static const char mlDqmSource_[]
uint16_t lldChannel() const
const uint16_t & fedId() const
const uint16_t & fecRing() const
const uint16_t & ccuChan() const
const uint16_t & ccuAddr() const
#define LogTrace(id)
FedChannelConnection connection_
CommissioningTask::CommissioningTask ( )
inlineprivate

Definition at line 147 of file CommissioningTask.h.

References lumiContext::fill, and update.

147 {;}

Member Function Documentation

void CommissioningTask::book ( )
privatevirtual

Reimplemented in PedsFullNoiseTask, NoiseTask, PedsOnlyTask, FedCablingTask, CalibrationScanTask, CalibrationTask, DaqScopeModeTask, FineDelayTask, LatencyTask, OptoScanTask, PedestalsTask, ApvTimingTask, FedTimingTask, VpspScanTask, and FastFedCablingTask.

Definition at line 144 of file CommissioningTask.cc.

References sistrip::mlDqmSource_.

Referenced by bookHistograms().

144  {
146  << "[CommissioningTask::" << __func__ << "]"
147  << " No derived implementation exists!";
148 }
static const char mlDqmSource_[]
void CommissioningTask::bookHistograms ( )

Books histograms and constructs HistoSet cache.

Definition at line 200 of file CommissioningTask.cc.

References book(), and booked_.

200  {
201  book();
202  booked_ = true;
203 }
const FedChannelConnection & CommissioningTask::connection ( ) const
inlineprotected
DQMStore *const CommissioningTask::dqm ( ) const
inlineprotected
void CommissioningTask::eventSetup ( const edm::EventSetup setup)
inline

Define access to the EventSetup.

Definition at line 205 of file CommissioningTask.h.

References GeneralSetup::setup().

205 { eventSetup_ = setup; }
def setup(process, global_tag, zero_tesla=False)
Definition: GeneralSetup.py:2
const edm::EventSetup * eventSetup_
const edm::EventSetup *const CommissioningTask::eventSetup ( ) const
inlineprotected

Access to the EventSetup.

Definition at line 206 of file CommissioningTask.h.

Referenced by NoiseTask::book().

206 { return eventSetup_; }
const edm::EventSetup * eventSetup_
const uint32_t & CommissioningTask::fecKey ( ) const
inlineprotected

Returns FEC key.

Definition at line 202 of file CommissioningTask.h.

References sistrip::fecKey_.

Referenced by VpspScanTask::fill().

202 { return fecKey_; }
const uint32_t & CommissioningTask::fedKey ( ) const
inlineprotected
void CommissioningTask::fill ( const SiStripEventSummary summary,
const edm::DetSet< SiStripRawDigi > &  digis 
)
privatevirtual

Reimplemented in PedsFullNoiseTask, NoiseTask, PedsOnlyTask, DaqScopeModeTask, CalibrationScanTask, CalibrationTask, FineDelayTask, LatencyTask, OptoScanTask, PedestalsTask, ApvTimingTask, FedTimingTask, VpspScanTask, and FastFedCablingTask.

Definition at line 152 of file CommissioningTask.cc.

References sistrip::mlDqmSource_.

Referenced by fillHistograms().

153  {
155  << "[CommissioningTask::" << __func__ << "]"
156  << " No derived implementation exists!";
157 }
static const char mlDqmSource_[]
void CommissioningTask::fill ( const SiStripEventSummary summary,
const edm::DetSet< SiStripRawDigi > &  digis,
const edm::DetSet< SiStripRawDigi > &  digisAlt 
)
privatevirtual

Reimplemented in DaqScopeModeTask.

Definition at line 161 of file CommissioningTask.cc.

References sistrip::mlDqmSource_.

163  {
165  << "[CommissioningTask::" << __func__ << "]"
166  << " No derived implementation exists!";
167 }
static const char mlDqmSource_[]
void CommissioningTask::fill ( const SiStripEventSummary summary,
const edm::DetSet< SiStripRawDigi > &  digis,
const edm::DetSet< SiStripRawDigi > &  digisAlt,
const std::vector< uint16_t > &  stripOnCluster 
)
privatevirtual

Reimplemented in DaqScopeModeTask.

Definition at line 171 of file CommissioningTask.cc.

References sistrip::mlDqmSource_.

174  {
176  << "[CommissioningTask::" << __func__ << "]"
177  << " No derived implementation exists!";
178 }
static const char mlDqmSource_[]
void CommissioningTask::fill ( const SiStripEventSummary summary,
const uint16_t &  fed_id,
const std::map< uint16_t, float > &  fed_ch 
)
privatevirtual

Reimplemented in FedCablingTask.

Definition at line 182 of file CommissioningTask.cc.

References sistrip::mlDqmSource_.

184  {
186  << "[CommissioningTask::" << __func__ << "]"
187  << " No derived implementation exists!";
188 }
static const char mlDqmSource_[]
const uint32_t & CommissioningTask::fillCntr ( ) const
inline

Get histogram filled counter.

Definition at line 194 of file CommissioningTask.h.

Referenced by DaqScopeModeTask::fill().

194 { return fillCntr_; }
void CommissioningTask::fillHistograms ( const SiStripEventSummary summary,
const edm::DetSet< SiStripRawDigi > &  digis 
)

Fills HistoSet cache.

Definition at line 207 of file CommissioningTask.cc.

References booked_, fill(), fillCntr_, sistrip::mlDqmSource_, update(), and updateFreq_.

208  {
209  if ( !booked_ ) {
211  << "[CommissioningTask::" << __func__ << "]"
212  << " Attempting to fill histos that haven't been booked yet!";
213  return;
214  }
215  fillCntr_++;
216  fill( summary, digis );
217  if ( updateFreq_ && !(fillCntr_%updateFreq_) ) {
218  update();
219  }
220 
221 }
static const char mlDqmSource_[]
virtual void fill(const SiStripEventSummary &, const edm::DetSet< SiStripRawDigi > &)
virtual void update()
void CommissioningTask::fillHistograms ( const SiStripEventSummary summary,
const edm::DetSet< SiStripRawDigi > &  digis,
const edm::DetSet< SiStripRawDigi > &  digisAlt 
)

Fills HistoSet cache.

Definition at line 225 of file CommissioningTask.cc.

References booked_, fill(), fillCntr_, sistrip::mlDqmSource_, update(), and updateFreq_.

228  {
229  if ( !booked_ ) {
231  << "[CommissioningTask::" << __func__ << "]"
232  << " Attempting to fill histos that haven't been booked yet!";
233  return;
234  }
235  fillCntr_++;
236  fill( summary, digis, digisAlt );
237  if ( updateFreq_ && !(fillCntr_%updateFreq_) ) {
238  update();
239  }
240 
241 }
static const char mlDqmSource_[]
virtual void fill(const SiStripEventSummary &, const edm::DetSet< SiStripRawDigi > &)
virtual void update()
void CommissioningTask::fillHistograms ( const SiStripEventSummary summary,
const edm::DetSet< SiStripRawDigi > &  digis,
const edm::DetSet< SiStripRawDigi > &  digisAlt,
const std::vector< uint16_t > &  stripOnCluster 
)

Fills HistoSet cache.

Definition at line 246 of file CommissioningTask.cc.

References booked_, fill(), fillCntr_, sistrip::mlDqmSource_, update(), and updateFreq_.

250  {
251  if ( !booked_ ) {
253  << "[CommissioningTask::" << __func__ << "]"
254  << " Attempting to fill histos that haven't been booked yet!";
255  return;
256  }
257  fillCntr_++;
258  fill( summary, digis, digisAlt, stripOnCluster);
259  if ( updateFreq_ && !(fillCntr_%updateFreq_) ) {
260  update();
261  }
262 }
static const char mlDqmSource_[]
virtual void fill(const SiStripEventSummary &, const edm::DetSet< SiStripRawDigi > &)
virtual void update()
void CommissioningTask::fillHistograms ( const SiStripEventSummary summary,
const uint16_t &  fed_id,
const std::map< uint16_t, float > &  fed_ch 
)

Fill HistoSet cache for FED cabling (special case).

Definition at line 266 of file CommissioningTask.cc.

References booked_, fill(), fillCntr_, sistrip::mlDqmSource_, update(), and updateFreq_.

268  {
269  if ( !booked_ ) {
271  << "[CommissioningTask::" << __func__ << "]"
272  << " Attempting to fill histos that haven't been booked yet!";
273  return;
274  }
275  fillCntr_++;
276  fill( summary, fed_id, fed_ch );
277  if ( updateFreq_ && !(fillCntr_%updateFreq_) ) {
278  update();
279  }
280 
281 }
static const char mlDqmSource_[]
virtual void fill(const SiStripEventSummary &, const edm::DetSet< SiStripRawDigi > &)
virtual void update()
const std::string & CommissioningTask::myName ( void  ) const
inline

Returns the name of this commissioning task.

Definition at line 197 of file CommissioningTask.h.

197 { return myName_; }
void CommissioningTask::update ( )
privatevirtual

Reimplemented in DaqScopeModeTask, PedsFullNoiseTask, NoiseTask, PedsOnlyTask, FedCablingTask, CalibrationTask, CalibrationScanTask, FineDelayTask, LatencyTask, OptoScanTask, PedestalsTask, ApvTimingTask, FedTimingTask, VpspScanTask, and FastFedCablingTask.

Definition at line 192 of file CommissioningTask.cc.

References sistrip::mlDqmSource_.

Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.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(), fillHistograms(), dqm-mbProfile.Profile::finish(), 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(), MatrixUtil.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(), Vispa.Gui.PortConnection.PointToPointConnection::updateConnection(), and updateHistograms().

192  {
194  << "[CommissioningTask::" << __func__ << "]"
195  << " No derived implementation exists!";
196 }
static const char mlDqmSource_[]
const uint32_t & CommissioningTask::updateFreq ( ) const
inline

Get histogram update frequency.

Definition at line 195 of file CommissioningTask.h.

Referenced by DaqScopeModeTask::fill().

195 { return updateFreq_; }
void CommissioningTask::updateFreq ( const uint32_t &  freq)
inline

Set histogram update frequency.

Definition at line 196 of file CommissioningTask.h.

196 { updateFreq_ = freq; }
void CommissioningTask::updateHistograms ( )

Updates histograms using HistoSet cache.

Definition at line 285 of file CommissioningTask.cc.

References update().

285  {
286  update();
287 }
virtual void update()
void CommissioningTask::updateHistoSet ( HistoSet histo_set,
const uint32_t &  bin,
const float &  value 
)
protected

Updates the vectors of HistoSet.

Definition at line 315 of file CommissioningTask.cc.

References stringResolutionProvider_cfi::bin, CommissioningTask::HistoSet::explicitFill_, CommissioningTask::HistoSet::histo(), CommissioningTask::HistoSet::isProfile_, sistrip::mlDqmSource_, relativeConstraints::value, CommissioningTask::HistoSet::vNumOfEntries_, CommissioningTask::HistoSet::vSumOfContents_, and CommissioningTask::HistoSet::vSumOfSquares_.

Referenced by FastFedCablingTask::fill(), ApvTimingTask::fill(), FedTimingTask::fill(), VpspScanTask::fill(), OptoScanTask::fill(), PedestalsTask::fill(), FineDelayTask::fill(), LatencyTask::fill(), CalibrationTask::fill(), CalibrationScanTask::fill(), DaqScopeModeTask::fill(), FedCablingTask::fill(), PedsFullNoiseTask::fill(), FastFedCablingTask::update(), ApvTimingTask::update(), VpspScanTask::update(), FedTimingTask::update(), PedestalsTask::update(), OptoScanTask::update(), FineDelayTask::update(), CalibrationScanTask::update(), LatencyTask::update(), CalibrationTask::update(), FedCablingTask::update(), NoiseTask::update(), PedsFullNoiseTask::update(), DaqScopeModeTask::update(), and updateHistoSet().

317  {
318 
319  // Check bin number
320  if ( bin >= histo_set.vNumOfEntries_.size() && !histo_set.explicitFill_ ) {
322  << "[CommissioningTask::" << __func__ << "]"
323  << " Unexpected bin number " << bin
324  << " when filling histogram of size " << histo_set.vNumOfEntries_.size();
325  return;
326  }
327 
328  // Check if histo is TProfile or not
329  if ( !histo_set.isProfile_ ) {
330  // Set entries
331  if (histo_set.explicitFill_) {
332  float origVal = histo_set.histo()->getBinContent( bin+1 );
333  histo_set.histo()->setBinContent( bin+1, origVal + value );
334  } else {
335  histo_set.vNumOfEntries_[bin]+=value;
336  }
337  } else {
338  // Set entries
339  histo_set.vNumOfEntries_[bin]++;
340 
341  // Check bin number
342  if ( bin >= histo_set.vSumOfContents_.size() ||
343  bin >= histo_set.vSumOfSquares_.size() ) {
345  << "[CommissioningTask::" << __func__ << "]"
346  << " Unexpected bin when filling histogram: " << bin;
347  return;
348  }
349 
350  // Set sum of contents and squares
351  histo_set.vSumOfContents_[bin] += value;
352  histo_set.vSumOfSquares_[bin] += value*value;
353  }
354 
355 }
static const char mlDqmSource_[]
Definition: value.py:1
bin
set the eta bin as selection string.
void CommissioningTask::updateHistoSet ( CompactHistoSet histo_set,
const uint32_t &  bin,
const short &  value 
)
protected

Definition at line 359 of file CommissioningTask.cc.

References stringResolutionProvider_cfi::bin, CommissioningTask::CompactHistoSet::explicitFill_, CommissioningTask::CompactHistoSet::histo(), sistrip::mlDqmSource_, relativeConstraints::value, and CommissioningTask::CompactHistoSet::vNumOfEntries_.

361  {
362 
363  // Check bin number
364  if ( bin >= histo_set.vNumOfEntries_.size() && !histo_set.explicitFill_ ) {
366  << "[CommissioningTask::" << __func__ << "]"
367  << " Unexpected bin number " << bin
368  << " when filling histogram of size " << histo_set.vNumOfEntries_.size();
369  return;
370  }
371 
372  if (histo_set.explicitFill_) {
373  float origVal = histo_set.histo()->getBinContent( bin+1 );
374  histo_set.histo()->setBinContent( bin+1, origVal + value );
375  } else {
376  // Set entries
377  histo_set.vNumOfEntries_[bin] += value;
378  }
379 
380 }
static const char mlDqmSource_[]
Definition: value.py:1
bin
set the eta bin as selection string.
void CommissioningTask::updateHistoSet ( HistoSet histo_set,
const uint32_t &  bin 
)
protected

Updates the vectors of HistoSet.

Definition at line 291 of file CommissioningTask.cc.

References updateHistoSet().

292  {
293  float value = 1.;
294  updateHistoSet( histo_set, bin, value );
295 }
void updateHistoSet(HistoSet &, const uint32_t &bin, const float &value)
Definition: value.py:1
bin
set the eta bin as selection string.
void CommissioningTask::updateHistoSet ( CompactHistoSet histo_set,
const uint32_t &  bin 
)
protected

Definition at line 299 of file CommissioningTask.cc.

References updateHistoSet().

300  {
301  short value = 1;
302  updateHistoSet( histo_set, bin, value );
303 }
void updateHistoSet(HistoSet &, const uint32_t &bin, const float &value)
Definition: value.py:1
bin
set the eta bin as selection string.
void CommissioningTask::updateHistoSet ( HistoSet histo_set,
const float &  value 
)
protected

Updates the vectors of HistoSet.

Definition at line 307 of file CommissioningTask.cc.

References CommissioningTask::HistoSet::bin(), updateHistoSet(), and mps_merge::weight.

308  {
309  float weight = 1.;
310  updateHistoSet( histo_set, histo_set.bin(value), weight );
311 }
Definition: weight.py:1
void updateHistoSet(HistoSet &, const uint32_t &bin, const float &value)
Definition: value.py:1
void CommissioningTask::updateHistoSet ( CompactHistoSet histo_set)
protected

Definition at line 423 of file CommissioningTask.cc.

References CommissioningTask::CompactHistoSet::explicitFill_, CommissioningTask::CompactHistoSet::histo(), sistrip::mlDqmSource_, and CommissioningTask::CompactHistoSet::vNumOfEntries_.

423  {
424 
425  // Check if histo exists
426  if ( !histo_set.histo() ) {
428  << "[CommissioningTask::" << __func__ << "]"
429  << " NULL pointer to MonitorElement!";
430  return;
431  }
432 
433  if (!histo_set.explicitFill_) {
434  for ( uint32_t ibin = 0; ibin < histo_set.vNumOfEntries_.size(); ibin++ ) {
435  histo_set.histo()->setBinContent( ibin+1, histo_set.vNumOfEntries_[ibin] );
436  }
437  }
438 
439 }
static const char mlDqmSource_[]
void CommissioningTask::updateHistoSet ( HistoSet histo_set)
protected

Updates the MonitorElements of HistoSet.

Definition at line 384 of file CommissioningTask.cc.

References CommissioningTask::HistoSet::explicitFill_, extract(), CommissioningTask::HistoSet::histo(), CommissioningTask::HistoSet::isProfile_, sistrip::mlDqmSource_, PostProcessor_cff::profile, CommissioningTask::HistoSet::vNumOfEntries_, CommissioningTask::HistoSet::vSumOfContents_, and CommissioningTask::HistoSet::vSumOfSquares_.

384  {
385 
386  // Check if histo exists
387  if ( !histo_set.histo() ) {
389  << "[CommissioningTask::" << __func__ << "]"
390  << " NULL pointer to MonitorElement!";
391  return;
392  }
393 
394  if (!histo_set.explicitFill_) {
395 
396  if ( histo_set.isProfile_ ) {
397 
398  TProfile* prof = ExtractTObject<TProfile>().extract( histo_set.histo() );
399  // if ( prof ) { prof->SetErrorOption("s"); } //@@ necessary?
400  const static UpdateTProfile profile;
401  for ( uint32_t ibin = 0; ibin < histo_set.vNumOfEntries_.size(); ibin++ ) {
402  profile.setBinContents( prof,
403  ibin+1,
404  histo_set.vNumOfEntries_[ibin],
405  histo_set.vSumOfContents_[ibin],
406  histo_set.vSumOfSquares_[ibin] );
407  }
408 
409  } else {
410 
411  for ( uint32_t ibin = 0; ibin < histo_set.vNumOfEntries_.size(); ibin++ ) {
412  histo_set.histo()->setBinContent( ibin+1, histo_set.vNumOfEntries_[ibin] );
413  }
414 
415  }
416 
417  }
418 
419 }
static const char mlDqmSource_[]
int extract(std::vector< int > *output, const std::string &dati)

Member Data Documentation

bool CommissioningTask::booked_
private

Definition at line 184 of file CommissioningTask.h.

Referenced by bookHistograms(), and fillHistograms().

FedChannelConnection CommissioningTask::connection_
private

Definition at line 178 of file CommissioningTask.h.

Referenced by CommissioningTask(), and ~CommissioningTask().

DQMStore* CommissioningTask::dqm_
private

Definition at line 172 of file CommissioningTask.h.

const edm::EventSetup* CommissioningTask::eventSetup_
private

Definition at line 188 of file CommissioningTask.h.

uint32_t CommissioningTask::fecKey_
private

Definition at line 182 of file CommissioningTask.h.

Referenced by CommissioningTask(), and ~CommissioningTask().

uint32_t CommissioningTask::fedKey_
private

Definition at line 180 of file CommissioningTask.h.

Referenced by CommissioningTask(), and ~CommissioningTask().

uint32_t CommissioningTask::fillCntr_
private

Definition at line 176 of file CommissioningTask.h.

Referenced by fillHistograms().

std::string CommissioningTask::myName_
private

Definition at line 186 of file CommissioningTask.h.

Referenced by CommissioningTask(), and ~CommissioningTask().

uint32_t CommissioningTask::updateFreq_
private

Definition at line 174 of file CommissioningTask.h.

Referenced by fillHistograms().