CMS 3D CMS Logo

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

#include <TkMeasurementDetSet.h>

Public Types

typedef edmNew::DetSet< Phase2TrackerCluster1DPhase2DetSet
 
typedef edm::Ref< edmNew::DetSetVector< Phase2TrackerCluster1D >, Phase2TrackerCluster1DPhase2TrackerCluster1DRef
 

Public Member Functions

const Phase2OTMeasurementConditionSetconditions () const
 
const Phase2DetSetdetSet (int i) const
 
bool empty (int i) const
 
int find (unsigned int jd, int i=0) const
 
const edm::Handle< edmNew::DetSetVector< Phase2TrackerCluster1D > > & handle () const
 
edm::Handle< edmNew::DetSetVector< Phase2TrackerCluster1D > > & handle ()
 
unsigned int id (int i) const
 
bool isActive (int i) const
 
int nDet () const
 
 Phase2OTMeasurementDetSet (const Phase2OTMeasurementConditionSet &cond)
 
void setActiveThisEvent (bool active)
 
void setActiveThisEvent (int i, bool active)
 
void setEmpty (int i)
 
void setEmpty ()
 
int size () const
 
void update (int i, const Phase2DetSet &detSet)
 

Private Attributes

std::vector< bool > activeThisEvent_
 
const Phase2OTMeasurementConditionSetconditionSet_
 
std::vector< Phase2DetSetdetSet_
 
std::vector< bool > empty_
 
edm::Handle< edmNew::DetSetVector< Phase2TrackerCluster1D > > handle_
 

Friends

class MeasurementTrackerImpl
 

Detailed Description

Definition at line 428 of file TkMeasurementDetSet.h.

Member Typedef Documentation

Definition at line 431 of file TkMeasurementDetSet.h.

Definition at line 430 of file TkMeasurementDetSet.h.

Constructor & Destructor Documentation

Phase2OTMeasurementDetSet::Phase2OTMeasurementDetSet ( const Phase2OTMeasurementConditionSet cond)
inline

Definition at line 433 of file TkMeasurementDetSet.h.

433  :
434  conditionSet_(&cond),
435  detSet_(cond.nDet()),
436  empty_(cond.nDet(), true),
437  activeThisEvent_(cond.nDet(), true) {}
std::vector< Phase2DetSet > detSet_
std::vector< bool > activeThisEvent_
const Phase2OTMeasurementConditionSet * conditionSet_

Member Function Documentation

const Phase2OTMeasurementConditionSet& Phase2OTMeasurementDetSet::conditions ( ) const
inline

Definition at line 439 of file TkMeasurementDetSet.h.

439 { return *conditionSet_; }
const Phase2OTMeasurementConditionSet * conditionSet_
const Phase2DetSet& Phase2OTMeasurementDetSet::detSet ( int  i) const
inline

Definition at line 468 of file TkMeasurementDetSet.h.

References mps_fire::i.

Referenced by TkPhase2OTMeasurementDet::recHits().

468 { return detSet_[i];}
std::vector< Phase2DetSet > detSet_
bool Phase2OTMeasurementDetSet::empty ( int  i) const
inline

Definition at line 453 of file TkMeasurementDetSet.h.

References mps_fire::i.

Referenced by TkPhase2OTMeasurementDet::isEmpty().

453 { return empty_[i];}
int Phase2OTMeasurementDetSet::find ( unsigned int  jd,
int  i = 0 
) const
inline

Definition at line 444 of file TkMeasurementDetSet.h.

References mps_fire::i.

444  {
445  return conditions().find(jd,i);
446  }
int find(unsigned int jd, int i=0) const
const Phase2OTMeasurementConditionSet & conditions() const
const edm::Handle<edmNew::DetSetVector<Phase2TrackerCluster1D> >& Phase2OTMeasurementDetSet::handle ( ) const
inline

Definition at line 466 of file TkMeasurementDetSet.h.

Referenced by MeasurementTrackerEvent::MeasurementTrackerEvent(), TkPhase2OTMeasurementDet::recHits(), and MeasurementTrackerEventProducer::updatePhase2OT().

466 { return handle_;}
edm::Handle< edmNew::DetSetVector< Phase2TrackerCluster1D > > handle_
edm::Handle<edmNew::DetSetVector<Phase2TrackerCluster1D> >& Phase2OTMeasurementDetSet::handle ( )
inline

Definition at line 467 of file TkMeasurementDetSet.h.

467 { return handle_;}
edm::Handle< edmNew::DetSetVector< Phase2TrackerCluster1D > > handle_
unsigned int Phase2OTMeasurementDetSet::id ( int  i) const
inline

Definition at line 443 of file TkMeasurementDetSet.h.

Referenced by MeasurementTrackerEventProducer::updatePhase2OT().

443 { return conditions().id(i); }
unsigned int id(int i) const
const Phase2OTMeasurementConditionSet & conditions() const
bool Phase2OTMeasurementDetSet::isActive ( int  i) const
inline

Definition at line 454 of file TkMeasurementDetSet.h.

References mps_fire::i.

Referenced by TkPhase2OTMeasurementDet::isActive(), and MeasurementTrackerEventProducer::updatePhase2OT().

const Phase2OTMeasurementConditionSet & conditions() const
std::vector< bool > activeThisEvent_
int Phase2OTMeasurementDetSet::nDet ( ) const
inline

Definition at line 442 of file TkMeasurementDetSet.h.

References findQualityFiles::size.

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

Definition at line 465 of file TkMeasurementDetSet.h.

References mps_fire::i.

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

Definition at line 456 of file TkMeasurementDetSet.h.

References mps_fire::i.

Referenced by TkPhase2OTMeasurementDet::setEmpty().

456 {empty_[i] = true; activeThisEvent_[i] = true; }
std::vector< bool > activeThisEvent_
void Phase2OTMeasurementDetSet::setEmpty ( )
inline

Definition at line 458 of file TkMeasurementDetSet.h.

References lumiContext::fill.

458  {
459  std::fill(empty_.begin(),empty_.end(),true);
460  std::fill(activeThisEvent_.begin(), activeThisEvent_.end(),true);
461  }
std::vector< bool > activeThisEvent_
int Phase2OTMeasurementDetSet::size ( void  ) const
inline
void Phase2OTMeasurementDetSet::update ( int  i,
const Phase2DetSet detSet 
)
inline

Definition at line 448 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(), TkPhase2OTMeasurementDet::update(), Vispa.Gui.PortConnection.PointToPointConnection::updateConnection(), and MeasurementTrackerEventProducer::updatePhase2OT().

448  {
449  detSet_[i] = detSet;
450  empty_[i] = false;
451  }
const Phase2DetSet & detSet(int i) const
std::vector< Phase2DetSet > detSet_

Friends And Related Function Documentation

friend class MeasurementTrackerImpl
friend

Definition at line 470 of file TkMeasurementDetSet.h.

Member Data Documentation

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

Definition at line 480 of file TkMeasurementDetSet.h.

const Phase2OTMeasurementConditionSet* Phase2OTMeasurementDetSet::conditionSet_
private

Definition at line 472 of file TkMeasurementDetSet.h.

std::vector<Phase2DetSet> Phase2OTMeasurementDetSet::detSet_
private

Definition at line 478 of file TkMeasurementDetSet.h.

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

Definition at line 479 of file TkMeasurementDetSet.h.

edm::Handle<edmNew::DetSetVector<Phase2TrackerCluster1D> > Phase2OTMeasurementDetSet::handle_
private

Definition at line 475 of file TkMeasurementDetSet.h.