CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
DTVDriftCalibration::cellInfo Class Reference

Public Member Functions

void add (const std::vector< const TMax * > &tMaxes)
 
 cellInfo (const TString &name)
 
hTMaxCellgetHists ()
 
void update ()
 
 ~cellInfo ()
 

Private Member Functions

 cellInfo ()
 
 cellInfo (const cellInfo &)
 

Private Attributes

std::vector< dttmaxenums::TMaxCellsaddedCells
 
hTMaxCellhistos
 

Detailed Description

Definition at line 55 of file DTVDriftCalibration.h.

Constructor & Destructor Documentation

DTVDriftCalibration::cellInfo::cellInfo ( const TString &  name)
inline

Definition at line 57 of file DTVDriftCalibration.h.

References combine::histos.

DTVDriftCalibration::cellInfo::~cellInfo ( )
inline

Definition at line 59 of file DTVDriftCalibration.h.

References PVValHelper::add(), and combine::histos.

59 { delete histos; }
DTVDriftCalibration::cellInfo::cellInfo ( )
inlineprivate

Definition at line 66 of file DTVDriftCalibration.h.

66 {};
DTVDriftCalibration::cellInfo::cellInfo ( const cellInfo )
inlineprivate

Definition at line 67 of file DTVDriftCalibration.h.

67 {};

Member Function Documentation

void DTVDriftCalibration::cellInfo::add ( const std::vector< const TMax * > &  tMaxes)

Definition at line 395 of file DTVDriftCalibration.cc.

References dttmaxenums::c123, dttmaxenums::c124, dttmaxenums::c134, dttmaxenums::c234, postprocess-scan-build::cells, gather_cfg::cout, spr::find(), combine::histos, dttmaxenums::noR, dttmaxenums::notInit, and OrderedSet::t.

Referenced by DTVDriftCalibration::analyze(), counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().

395  {
396  vector<const TMax*> tMaxes = _tMaxes;
397  float tmax123 = -1.;
398  float tmax124 = -1.;
399  float tmax134 = -1.;
400  float tmax234 = -1.;
401  SigmaFactor s124 = noR;
402  SigmaFactor s134 = noR;
403  unsigned t0_123 = 0;
404  unsigned t0_124 = 0;
405  unsigned t0_134 = 0;
406  unsigned t0_234 = 0;
407  unsigned hSubGroup = 0;
408  for (vector<const TMax*>::const_iterator it = tMaxes.begin(); it != tMaxes.end(); ++it) {
409  if (*it == nullptr) {
410  continue;
411  } else {
412  //FIXME check cached,
413  if (addedCells.size() == 4 || find(addedCells.begin(), addedCells.end(), (*it)->cells) != addedCells.end()) {
414  continue;
415  }
416  addedCells.push_back((*it)->cells);
417  SigmaFactor sigma = (*it)->sigma;
418  float t = (*it)->t;
419  TMaxCells cells = (*it)->cells;
420  unsigned t0Factor = (*it)->t0Factor;
421  hSubGroup = (*it)->hSubGroup;
422  if (t < 0.)
423  continue;
424  switch (cells) {
425  case notInit:
426  cout << "Error: no cell type assigned to TMax" << endl;
427  break;
428  case c123:
429  tmax123 = t;
430  t0_123 = t0Factor;
431  break;
432  case c124:
433  tmax124 = t;
434  s124 = sigma;
435  t0_124 = t0Factor;
436  break;
437  case c134:
438  tmax134 = t;
439  s134 = sigma;
440  t0_134 = t0Factor;
441  break;
442  case c234:
443  tmax234 = t;
444  t0_234 = t0Factor;
445  break;
446  }
447  }
448  }
449  //add entries to the TMax histograms
450  histos->Fill(tmax123, tmax124, tmax134, tmax234, s124, s134, t0_123, t0_124, t0_134, t0_234, hSubGroup);
451 }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
void Fill(float tmax123, float tmax124, float tmax134, float tmax234, dttmaxenums::SigmaFactor s124, dttmaxenums::SigmaFactor s134, unsigned t0_123, unsigned t0_124, unsigned t0_134, unsigned t0_234, unsigned hSubGroup)
Definition: vDriftHistos.h:209
std::vector< dttmaxenums::TMaxCells > addedCells
hTMaxCell* DTVDriftCalibration::cellInfo::getHists ( )
inline

Definition at line 63 of file DTVDriftCalibration.h.

References combine::histos.

Referenced by DTVDriftCalibration::endJob().

63 { return histos; }
void DTVDriftCalibration::cellInfo::update ( )
inline

Definition at line 62 of file DTVDriftCalibration.h.

Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), DTVDriftCalibration::analyze(), 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(), 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(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().

62 { addedCells.clear(); }
std::vector< dttmaxenums::TMaxCells > addedCells

Member Data Documentation

std::vector<dttmaxenums::TMaxCells> DTVDriftCalibration::cellInfo::addedCells
private

Definition at line 67 of file DTVDriftCalibration.h.

hTMaxCell* DTVDriftCalibration::cellInfo::histos
private

Definition at line 70 of file DTVDriftCalibration.h.

Referenced by DisplayManager.DisplayManager::Draw().