CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes | Friends
PxMeasurementDetSet Class Reference

#include <TkMeasurementDetSet.h>

Public Types

typedef edmNew::DetSet
< SiPixelCluster
PixelDetSet
 
typedef edm::Ref
< edmNew::DetSetVector
< SiPixelCluster >
, SiPixelCluster
SiPixelClusterRef
 

Public Member Functions

const PxMeasurementConditionSetconditions () const
 
const PixelDetSetdetSet (int i) const
 
bool empty (int i) const
 
int find (unsigned int jd, int i=0) 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_
 
const PxMeasurementConditionSetconditionSet_
 
std::vector< PixelDetSetdetSet_
 
std::vector< bool > empty_
 
edm::Handle
< edmNew::DetSetVector
< SiPixelCluster > > 
handle_
 

Friends

class MeasurementTrackerImpl
 

Detailed Description

Definition at line 329 of file TkMeasurementDetSet.h.

Member Typedef Documentation

Definition at line 332 of file TkMeasurementDetSet.h.

Definition at line 331 of file TkMeasurementDetSet.h.

Constructor & Destructor Documentation

PxMeasurementDetSet::PxMeasurementDetSet ( const PxMeasurementConditionSet cond)
inline

Definition at line 334 of file TkMeasurementDetSet.h.

334  :
335  conditionSet_(&cond),
336  detSet_(cond.nDet()),
337  empty_(cond.nDet(), true),
338  activeThisEvent_(cond.nDet(), true) {}
const PxMeasurementConditionSet * conditionSet_
std::vector< bool > empty_
std::vector< bool > activeThisEvent_
std::vector< PixelDetSet > detSet_

Member Function Documentation

const PxMeasurementConditionSet& PxMeasurementDetSet::conditions ( ) const
inline

Definition at line 340 of file TkMeasurementDetSet.h.

References conditionSet_.

Referenced by find(), id(), isActive(), and size().

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

Definition at line 372 of file TkMeasurementDetSet.h.

References detSet_, and i.

Referenced by TkPixelMeasurementDet::recHits(), and update().

372 { return detSet_[i];}
int i
Definition: DBlmapReader.cc:9
std::vector< PixelDetSet > detSet_
bool PxMeasurementDetSet::empty ( int  i) const
inline

Definition at line 354 of file TkMeasurementDetSet.h.

References empty_, and i.

Referenced by TkPixelMeasurementDet::isEmpty().

354 { return empty_[i];}
int i
Definition: DBlmapReader.cc:9
std::vector< bool > empty_
int PxMeasurementDetSet::find ( unsigned int  jd,
int  i = 0 
) const
inline

Definition at line 345 of file TkMeasurementDetSet.h.

References conditions(), PxMeasurementConditionSet::find(), and i.

Referenced by MeasurementTrackerEventProducer::updatePixels().

345  {
346  return conditions().find(jd,i);
347  }
int i
Definition: DBlmapReader.cc:9
int find(unsigned int jd, int i=0) const
const PxMeasurementConditionSet & conditions() const
const edm::Handle<edmNew::DetSetVector<SiPixelCluster> >& PxMeasurementDetSet::handle ( ) const
inline

Definition at line 370 of file TkMeasurementDetSet.h.

References handle_.

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

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

Definition at line 371 of file TkMeasurementDetSet.h.

References handle_.

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

Definition at line 344 of file TkMeasurementDetSet.h.

References conditions(), and PxMeasurementConditionSet::id().

Referenced by MeasurementTrackerEventProducer::updatePixels().

344 { return conditions().id(i); }
int i
Definition: DBlmapReader.cc:9
unsigned int id(int i) const
const PxMeasurementConditionSet & conditions() const
bool PxMeasurementDetSet::isActive ( int  i) const
inline

Definition at line 355 of file TkMeasurementDetSet.h.

References activeThisEvent_, conditions(), i, and PxMeasurementConditionSet::isActiveThisPeriod().

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

int i
Definition: DBlmapReader.cc:9
std::vector< bool > activeThisEvent_
bool isActiveThisPeriod(int i) const
const PxMeasurementConditionSet & conditions() const
int PxMeasurementDetSet::nDet ( ) const
inline

Definition at line 343 of file TkMeasurementDetSet.h.

References size().

343 { 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 369 of file TkMeasurementDetSet.h.

References activeThisEvent_, empty_, and i.

369 { activeThisEvent_[i] = active; if (!active) empty_[i] = true; }
int i
Definition: DBlmapReader.cc:9
std::vector< bool > empty_
std::vector< bool > activeThisEvent_
void PxMeasurementDetSet::setEmpty ( int  i)
inline

Definition at line 357 of file TkMeasurementDetSet.h.

References activeThisEvent_, empty_, and i.

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

357 {empty_[i] = true; activeThisEvent_[i] = true; }
int i
Definition: DBlmapReader.cc:9
std::vector< bool > empty_
std::vector< bool > activeThisEvent_
void PxMeasurementDetSet::setEmpty ( )
inline

Definition at line 359 of file TkMeasurementDetSet.h.

References activeThisEvent_, empty_, and lumiContext::fill.

359  {
360  std::fill(empty_.begin(),empty_.end(),true);
361  std::fill(activeThisEvent_.begin(), activeThisEvent_.end(),true);
362  }
string fill
Definition: lumiContext.py:319
std::vector< bool > empty_
std::vector< bool > activeThisEvent_
int PxMeasurementDetSet::size ( void  ) const
inline

Definition at line 342 of file TkMeasurementDetSet.h.

References conditions(), and PxMeasurementConditionSet::nDet().

Referenced by nDet(), and MeasurementTrackerEventProducer::updatePixels().

342 { return conditions().nDet(); }
const PxMeasurementConditionSet & conditions() const
void PxMeasurementDetSet::update ( int  i,
const PixelDetSet detSet 
)
inline

Definition at line 349 of file TkMeasurementDetSet.h.

References detSet(), detSet_, empty_, and i.

Referenced by progressbar.ProgressBar::__next__(), relval_steps.Matrix::__setitem__(), relval_steps.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(), relval_steps.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().

349  {
350  detSet_[i] = detSet;
351  empty_[i] = false;
352  }
int i
Definition: DBlmapReader.cc:9
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 374 of file TkMeasurementDetSet.h.

Member Data Documentation

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

Definition at line 384 of file TkMeasurementDetSet.h.

Referenced by isActive(), setActiveThisEvent(), and setEmpty().

const PxMeasurementConditionSet* PxMeasurementDetSet::conditionSet_
private

Definition at line 376 of file TkMeasurementDetSet.h.

Referenced by conditions().

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

Definition at line 382 of file TkMeasurementDetSet.h.

Referenced by detSet(), and update().

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

Definition at line 383 of file TkMeasurementDetSet.h.

Referenced by empty(), setActiveThisEvent(), setEmpty(), and update().

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

Definition at line 379 of file TkMeasurementDetSet.h.

Referenced by handle().