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 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 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 21 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 139 of file CommissioningTask.h.

References lumiContext::fill, and update.

139 {;}

Member Function Documentation

void CommissioningTask::book ( )
privatevirtual

Reimplemented in PedsFullNoiseTask, NoiseTask, PedsOnlyTask, FedCablingTask, CalibrationScanTask, CalibrationTask, FineDelayTask, LatencyTask, DaqScopeModeTask, 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 189 of file CommissioningTask.cc.

References book(), and booked_.

189  {
190  book();
191  booked_ = true;
192 }
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 191 of file CommissioningTask.h.

References GeneralSetup::setup().

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

Access to the EventSetup.

Definition at line 192 of file CommissioningTask.h.

Referenced by NoiseTask::book().

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

Returns FEC key.

Definition at line 188 of file CommissioningTask.h.

References sistrip::fecKey_.

Referenced by VpspScanTask::fill().

188 { 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, CalibrationScanTask, CalibrationTask, FineDelayTask, LatencyTask, DaqScopeModeTask, 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 uint16_t &  fed_id,
const std::map< uint16_t, float > &  fed_ch 
)
privatevirtual

Reimplemented in FedCablingTask.

Definition at line 171 of file CommissioningTask.cc.

References sistrip::mlDqmSource_.

173  {
175  << "[CommissioningTask::" << __func__ << "]"
176  << " No derived implementation exists!";
177 }
static const char mlDqmSource_[]
const uint32_t & CommissioningTask::fillCntr ( ) const
inline

Get histogram filled counter.

Definition at line 180 of file CommissioningTask.h.

Referenced by DaqScopeModeTask::fill().

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

Fills HistoSet cache.

Definition at line 196 of file CommissioningTask.cc.

References booked_, sistrip::CALIBRATION, sistrip::CALIBRATION_DECO, sistrip::CALIBRATION_SCAN, sistrip::CALIBRATION_SCAN_DECO, fill(), fillCntr_, sistrip::mlDqmSource_, SiStripEventSummary::runType(), update(), and updateFreq_.

197  {
198  if(summary.runType() != sistrip::CALIBRATION_SCAN and
199  summary.runType() != sistrip::CALIBRATION_SCAN_DECO and
200  summary.runType() != sistrip::CALIBRATION and
201  summary.runType() != sistrip::CALIBRATION_DECO){
202  if ( !booked_ ) {
204  << "[CommissioningTask::" << __func__ << "]"
205  << " Attempting to fill histos that haven't been booked yet!";
206  return;
207  }
208  }
209  fillCntr_++;
210  fill( summary, digis );
211  if ( updateFreq_ && !(fillCntr_%updateFreq_) ) {
212  update();
213  }
214 }
static const char mlDqmSource_[]
const sistrip::RunType & runType() const
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 218 of file CommissioningTask.cc.

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

221  {
222  if ( !booked_ ) {
224  << "[CommissioningTask::" << __func__ << "]"
225  << " Attempting to fill histos that haven't been booked yet!";
226  return;
227  }
228  fillCntr_++;
229  fill( summary, digis, digisAlt );
230  if ( updateFreq_ && !(fillCntr_%updateFreq_) ) {
231  update();
232  }
233 }
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 237 of file CommissioningTask.cc.

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

239  {
240  if ( !booked_ ) {
242  << "[CommissioningTask::" << __func__ << "]"
243  << " Attempting to fill histos that haven't been booked yet!";
244  return;
245  }
246  fillCntr_++;
247  fill( summary, fed_id, fed_ch );
248  if ( updateFreq_ && !(fillCntr_%updateFreq_) ) {
249  update();
250  }
251 
252 }
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 183 of file CommissioningTask.h.

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

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

Definition at line 181 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().

181  {
183  << "[CommissioningTask::" << __func__ << "]"
184  << " No derived implementation exists!";
185 }
static const char mlDqmSource_[]
const uint32_t & CommissioningTask::updateFreq ( ) const
inline

Get histogram update frequency.

Definition at line 181 of file CommissioningTask.h.

Referenced by DaqScopeModeTask::fill().

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

Set histogram update frequency.

Definition at line 182 of file CommissioningTask.h.

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

Updates histograms using HistoSet cache.

Definition at line 256 of file CommissioningTask.cc.

References update().

256  {
257  update();
258 }
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 286 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(), DaqScopeModeTask::fill(), OptoScanTask::fill(), PedestalsTask::fill(), FineDelayTask::fill(), LatencyTask::fill(), CalibrationTask::fill(), CalibrationScanTask::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(), DaqScopeModeTask::update(), NoiseTask::update(), PedsFullNoiseTask::update(), and updateHistoSet().

288  {
289 
290  // Check bin number
291  if ( bin >= histo_set.vNumOfEntries_.size() && !histo_set.explicitFill_ ) {
293  << "[CommissioningTask::" << __func__ << "]"
294  << " Unexpected bin number " << bin
295  << " when filling histogram of size " << histo_set.vNumOfEntries_.size();
296  return;
297  }
298 
299  // Check if histo is TProfile or not
300  if ( !histo_set.isProfile_ ) {
301  // Set entries
302  if (histo_set.explicitFill_) {
303  float origVal = histo_set.histo()->getBinContent( bin+1 );
304  histo_set.histo()->setBinContent( bin+1, origVal + value );
305  } else {
306  histo_set.vNumOfEntries_[bin]+=value;
307  }
308  } else {
309  // Set entries
310  histo_set.vNumOfEntries_[bin]++;
311 
312  // Check bin number
313  if ( bin >= histo_set.vSumOfContents_.size() ||
314  bin >= histo_set.vSumOfSquares_.size() ) {
316  << "[CommissioningTask::" << __func__ << "]"
317  << " Unexpected bin when filling histogram: " << bin;
318  return;
319  }
320 
321  // Set sum of contents and squares
322  histo_set.vSumOfContents_[bin] += value;
323  histo_set.vSumOfSquares_[bin] += value*value;
324  }
325 
326 }
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 330 of file CommissioningTask.cc.

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

332  {
333 
334  // Check bin number
335  if ( bin >= histo_set.vNumOfEntries_.size() && !histo_set.explicitFill_ ) {
337  << "[CommissioningTask::" << __func__ << "]"
338  << " Unexpected bin number " << bin
339  << " when filling histogram of size " << histo_set.vNumOfEntries_.size();
340  return;
341  }
342 
343  if (histo_set.explicitFill_) {
344  float origVal = histo_set.histo()->getBinContent( bin+1 );
345  histo_set.histo()->setBinContent( bin+1, origVal + value );
346  } else {
347  // Set entries
348  histo_set.vNumOfEntries_[bin] += value;
349  }
350 
351 }
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 262 of file CommissioningTask.cc.

References updateHistoSet().

263  {
264  float value = 1.;
265  updateHistoSet( histo_set, bin, value );
266 }
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 270 of file CommissioningTask.cc.

References updateHistoSet().

271  {
272  short value = 1;
273  updateHistoSet( histo_set, bin, value );
274 }
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 278 of file CommissioningTask.cc.

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

279  {
280  float weight = 1.;
281  updateHistoSet( histo_set, histo_set.bin(value), weight );
282 }
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 394 of file CommissioningTask.cc.

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

394  {
395 
396  // Check if histo exists
397  if ( !histo_set.histo() ) {
399  << "[CommissioningTask::" << __func__ << "]"
400  << " NULL pointer to MonitorElement!";
401  return;
402  }
403 
404  if (!histo_set.explicitFill_) {
405  for ( uint32_t ibin = 0; ibin < histo_set.vNumOfEntries_.size(); ibin++ ) {
406  histo_set.histo()->setBinContent( ibin+1, histo_set.vNumOfEntries_[ibin] );
407  }
408  }
409 
410 }
static const char mlDqmSource_[]
void CommissioningTask::updateHistoSet ( HistoSet histo_set)
protected

Updates the MonitorElements of HistoSet.

Definition at line 355 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_.

355  {
356 
357  // Check if histo exists
358  if ( !histo_set.histo() ) {
360  << "[CommissioningTask::" << __func__ << "]"
361  << " NULL pointer to MonitorElement!";
362  return;
363  }
364 
365  if (!histo_set.explicitFill_) {
366 
367  if ( histo_set.isProfile_ ) {
368 
369  TProfile* prof = ExtractTObject<TProfile>().extract( histo_set.histo() );
370  // if ( prof ) { prof->SetErrorOption("s"); } //@@ necessary?
371  const static UpdateTProfile profile;
372  for ( uint32_t ibin = 0; ibin < histo_set.vNumOfEntries_.size(); ibin++ ) {
373  profile.setBinContents( prof,
374  ibin+1,
375  histo_set.vNumOfEntries_[ibin],
376  histo_set.vSumOfContents_[ibin],
377  histo_set.vSumOfSquares_[ibin] );
378  }
379 
380  } else {
381 
382  for ( uint32_t ibin = 0; ibin < histo_set.vNumOfEntries_.size(); ibin++ ) {
383  histo_set.histo()->setBinContent( ibin+1, histo_set.vNumOfEntries_[ibin] );
384  }
385 
386  }
387 
388  }
389 
390 }
static const char mlDqmSource_[]
int extract(std::vector< int > *output, const std::string &dati)

Member Data Documentation

bool CommissioningTask::booked_
private

Definition at line 170 of file CommissioningTask.h.

Referenced by bookHistograms(), and fillHistograms().

FedChannelConnection CommissioningTask::connection_
private

Definition at line 164 of file CommissioningTask.h.

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

DQMStore* CommissioningTask::dqm_
private

Definition at line 158 of file CommissioningTask.h.

const edm::EventSetup* CommissioningTask::eventSetup_
private

Definition at line 174 of file CommissioningTask.h.

uint32_t CommissioningTask::fecKey_
private

Definition at line 168 of file CommissioningTask.h.

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

uint32_t CommissioningTask::fedKey_
private

Definition at line 166 of file CommissioningTask.h.

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

uint32_t CommissioningTask::fillCntr_
private

Definition at line 162 of file CommissioningTask.h.

Referenced by fillHistograms().

std::string CommissioningTask::myName_
private

Definition at line 172 of file CommissioningTask.h.

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

uint32_t CommissioningTask::updateFreq_
private

Definition at line 160 of file CommissioningTask.h.

Referenced by fillHistograms().