CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes | Friends
PxMeasurementDetSet Class Reference

#include <TkMeasurementDetSet.h>

Public Types

typedef std::vector< std::pair< LocalPoint, LocalPoint > > BadFEDChannelPositions
 
typedef edmNew::DetSet< SiPixelClusterPixelDetSet
 
typedef edm::Ref< edmNew::DetSetVector< SiPixelCluster >, SiPixelClusterSiPixelClusterRef
 

Public Member Functions

void addBadFEDChannelPositions (int i, BadFEDChannelPositions &positions)
 
const PxMeasurementConditionSetconditions () const
 
const PixelDetSetdetSet (int i) const
 
bool empty (int i) const
 
int find (unsigned int jd, int i=0) const
 
const BadFEDChannelPositionsgetBadFEDChannelPositions (int i) const
 
const edm::Handle< edmNew::DetSetVector< SiPixelCluster > > & handle () const
 
edm::Handle< edmNew::DetSetVector< SiPixelCluster > > & handle ()
 
unsigned int id (int i) const
 
bool isActive (int i) const
 
int nDet () const
 
 PxMeasurementDetSet (const PxMeasurementConditionSet &cond)
 
void setActiveThisEvent (bool active)
 
void setActiveThisEvent (int i, bool active)
 Turn on/off the module for reconstruction for one events. This per-event flag is cleared by any call to 'update' or 'setEmpty'. More...
 
void setEmpty (int i)
 
void setEmpty ()
 
int size () const
 
void update (int i, const PixelDetSet &detSet)
 

Private Attributes

std::vector< bool > activeThisEvent_
 
std::unordered_map< int, BadFEDChannelPositionsbadFEDChannelPositionsSet_
 
const PxMeasurementConditionSetconditionSet_
 
std::vector< PixelDetSetdetSet_
 
std::vector< bool > empty_
 
edm::Handle< edmNew::DetSetVector< SiPixelCluster > > handle_
 

Friends

class MeasurementTrackerImpl
 

Detailed Description

Definition at line 338 of file TkMeasurementDetSet.h.

Member Typedef Documentation

Definition at line 342 of file TkMeasurementDetSet.h.

Definition at line 341 of file TkMeasurementDetSet.h.

Definition at line 340 of file TkMeasurementDetSet.h.

Constructor & Destructor Documentation

PxMeasurementDetSet::PxMeasurementDetSet ( const PxMeasurementConditionSet cond)
inline

Definition at line 344 of file TkMeasurementDetSet.h.

344  :
345  conditionSet_(&cond),
346  detSet_(cond.nDet()),
347  empty_(cond.nDet(), true),
348  activeThisEvent_(cond.nDet(), true) {}
const PxMeasurementConditionSet * conditionSet_
std::vector< bool > empty_
std::vector< bool > activeThisEvent_
std::vector< PixelDetSet > detSet_

Member Function Documentation

void PxMeasurementDetSet::addBadFEDChannelPositions ( int  i,
BadFEDChannelPositions positions 
)
inline

Definition at line 391 of file TkMeasurementDetSet.h.

References runEdmFileComparison::found.

Referenced by MeasurementTrackerEventProducer::updatePixels().

391  {
392  auto found = badFEDChannelPositionsSet_.find(i);
393  if(found == badFEDChannelPositionsSet_.end()) {
394  badFEDChannelPositionsSet_.emplace(i, positions);
395  }
396  else {
397  found->second.insert(found->second.end(), positions.begin(), positions.end());
398  }
399  }
std::unordered_map< int, BadFEDChannelPositions > badFEDChannelPositionsSet_
const PxMeasurementConditionSet& PxMeasurementDetSet::conditions ( ) const
inline

Definition at line 350 of file TkMeasurementDetSet.h.

350 { return *conditionSet_; }
const PxMeasurementConditionSet * conditionSet_
const PixelDetSet& PxMeasurementDetSet::detSet ( int  i) const
inline

Definition at line 406 of file TkMeasurementDetSet.h.

References mps_fire::i.

Referenced by TkPixelMeasurementDet::compHits().

406 { return detSet_[i];}
std::vector< PixelDetSet > detSet_
bool PxMeasurementDetSet::empty ( int  i) const
inline

Definition at line 364 of file TkMeasurementDetSet.h.

References mps_fire::i.

Referenced by TkPixelMeasurementDet::isEmpty().

364 { return empty_[i];}
std::vector< bool > empty_
int PxMeasurementDetSet::find ( unsigned int  jd,
int  i = 0 
) const
inline

Definition at line 355 of file TkMeasurementDetSet.h.

References mps_fire::i.

Referenced by MeasurementTrackerEventProducer::updatePixels().

355  {
356  return conditions().find(jd,i);
357  }
int find(unsigned int jd, int i=0) const
const PxMeasurementConditionSet & conditions() const
const BadFEDChannelPositions* PxMeasurementDetSet::getBadFEDChannelPositions ( int  i) const
inline

Definition at line 385 of file TkMeasurementDetSet.h.

References runEdmFileComparison::found.

Referenced by TkPixelMeasurementDet::getBadFEDChannelPositions().

385  {
386  auto found = badFEDChannelPositionsSet_.find(i);
387  if(found == badFEDChannelPositionsSet_.end())
388  return nullptr;
389  return &(found->second);
390  }
std::unordered_map< int, BadFEDChannelPositions > badFEDChannelPositionsSet_
const edm::Handle<edmNew::DetSetVector<SiPixelCluster> >& PxMeasurementDetSet::handle ( ) const
inline

Definition at line 404 of file TkMeasurementDetSet.h.

Referenced by TkPixelMeasurementDet::compHits(), MeasurementTrackerEvent::MeasurementTrackerEvent(), and MeasurementTrackerEventProducer::updatePixels().

404 { return handle_;}
edm::Handle< edmNew::DetSetVector< SiPixelCluster > > handle_
edm::Handle<edmNew::DetSetVector<SiPixelCluster> >& PxMeasurementDetSet::handle ( )
inline

Definition at line 405 of file TkMeasurementDetSet.h.

405 { return handle_;}
edm::Handle< edmNew::DetSetVector< SiPixelCluster > > handle_
unsigned int PxMeasurementDetSet::id ( int  i) const
inline

Definition at line 354 of file TkMeasurementDetSet.h.

Referenced by MeasurementTrackerEventProducer::updatePixels().

354 { return conditions().id(i); }
unsigned int id(int i) const
const PxMeasurementConditionSet & conditions() const
bool PxMeasurementDetSet::isActive ( int  i) const
inline

Definition at line 365 of file TkMeasurementDetSet.h.

References mps_fire::i.

Referenced by TkPixelMeasurementDet::isActive(), and MeasurementTrackerEventProducer::updatePixels().

std::vector< bool > activeThisEvent_
bool isActiveThisPeriod(int i) const
const PxMeasurementConditionSet & conditions() const
int PxMeasurementDetSet::nDet ( ) const
inline

Definition at line 353 of file TkMeasurementDetSet.h.

References findQualityFiles::size.

353 { return size();}
void PxMeasurementDetSet::setActiveThisEvent ( bool  active)
inline
void PxMeasurementDetSet::setActiveThisEvent ( int  i,
bool  active 
)
inline

Turn on/off the module for reconstruction for one events. This per-event flag is cleared by any call to 'update' or 'setEmpty'.

Definition at line 403 of file TkMeasurementDetSet.h.

References mps_fire::i.

403 { activeThisEvent_[i] = active; if (!active) empty_[i] = true; }
std::vector< bool > empty_
std::vector< bool > activeThisEvent_
void PxMeasurementDetSet::setEmpty ( int  i)
inline

Definition at line 367 of file TkMeasurementDetSet.h.

References runEdmFileComparison::found, and mps_fire::i.

Referenced by TkPixelMeasurementDet::setEmpty(), and MeasurementTrackerEventProducer::updatePixels().

367  {
368  empty_[i] = true;
369  activeThisEvent_[i] = true;
370  auto found = badFEDChannelPositionsSet_.find(i);
371  if(found != badFEDChannelPositionsSet_.end()) {
373  }
374  }
std::vector< bool > empty_
std::vector< bool > activeThisEvent_
std::unordered_map< int, BadFEDChannelPositions > badFEDChannelPositionsSet_
void PxMeasurementDetSet::setEmpty ( )
inline

Definition at line 376 of file TkMeasurementDetSet.h.

References lumiContext::fill.

376  {
377  std::fill(empty_.begin(),empty_.end(),true);
378  std::fill(activeThisEvent_.begin(), activeThisEvent_.end(),true);
380  }
std::vector< bool > empty_
std::vector< bool > activeThisEvent_
std::unordered_map< int, BadFEDChannelPositions > badFEDChannelPositionsSet_
int PxMeasurementDetSet::size ( void  ) const
inline
void PxMeasurementDetSet::update ( int  i,
const PixelDetSet detSet 
)
inline

Definition at line 359 of file TkMeasurementDetSet.h.

References mps_fire::i.

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(), 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(), TkPixelMeasurementDet::update(), Vispa.Gui.PortConnection.PointToPointConnection::updateConnection(), and MeasurementTrackerEventProducer::updatePixels().

359  {
360  detSet_[i] = detSet;
361  empty_[i] = false;
362  }
std::vector< bool > empty_
const PixelDetSet & detSet(int i) const
std::vector< PixelDetSet > detSet_

Friends And Related Function Documentation

friend class MeasurementTrackerImpl
friend

Definition at line 408 of file TkMeasurementDetSet.h.

Member Data Documentation

std::vector<bool> PxMeasurementDetSet::activeThisEvent_
private

Definition at line 418 of file TkMeasurementDetSet.h.

std::unordered_map<int, BadFEDChannelPositions> PxMeasurementDetSet::badFEDChannelPositionsSet_
private

Definition at line 419 of file TkMeasurementDetSet.h.

const PxMeasurementConditionSet* PxMeasurementDetSet::conditionSet_
private

Definition at line 410 of file TkMeasurementDetSet.h.

std::vector<PixelDetSet> PxMeasurementDetSet::detSet_
private

Definition at line 416 of file TkMeasurementDetSet.h.

std::vector<bool> PxMeasurementDetSet::empty_
private

Definition at line 417 of file TkMeasurementDetSet.h.

edm::Handle<edmNew::DetSetVector<SiPixelCluster> > PxMeasurementDetSet::handle_
private

Definition at line 413 of file TkMeasurementDetSet.h.