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 456 of file TkMeasurementDetSet.h.

Member Typedef Documentation

Definition at line 459 of file TkMeasurementDetSet.h.

Definition at line 458 of file TkMeasurementDetSet.h.

Constructor & Destructor Documentation

Phase2OTMeasurementDetSet::Phase2OTMeasurementDetSet ( const Phase2OTMeasurementConditionSet cond)
inline

Definition at line 461 of file TkMeasurementDetSet.h.

461  :
462  conditionSet_(&cond),
463  detSet_(cond.nDet()),
464  empty_(cond.nDet(), true),
465  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 467 of file TkMeasurementDetSet.h.

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

Definition at line 496 of file TkMeasurementDetSet.h.

References mps_fire::i.

Referenced by TkPhase2OTMeasurementDet::recHits().

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

Definition at line 481 of file TkMeasurementDetSet.h.

References mps_fire::i.

Referenced by TkPhase2OTMeasurementDet::isEmpty().

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

Definition at line 472 of file TkMeasurementDetSet.h.

References mps_fire::i.

472  {
473  return conditions().find(jd,i);
474  }
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 494 of file TkMeasurementDetSet.h.

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

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

Definition at line 495 of file TkMeasurementDetSet.h.

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

Definition at line 471 of file TkMeasurementDetSet.h.

Referenced by MeasurementTrackerEventProducer::updatePhase2OT().

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

Definition at line 482 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 470 of file TkMeasurementDetSet.h.

References findQualityFiles::size.

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

Definition at line 493 of file TkMeasurementDetSet.h.

References mps_fire::i.

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

Definition at line 484 of file TkMeasurementDetSet.h.

References mps_fire::i.

Referenced by TkPhase2OTMeasurementDet::setEmpty().

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

Definition at line 486 of file TkMeasurementDetSet.h.

References lumiContext::fill.

486  {
487  std::fill(empty_.begin(),empty_.end(),true);
488  std::fill(activeThisEvent_.begin(), activeThisEvent_.end(),true);
489  }
std::vector< bool > activeThisEvent_
int Phase2OTMeasurementDetSet::size ( void  ) const
inline
void Phase2OTMeasurementDetSet::update ( int  i,
const Phase2DetSet detSet 
)
inline

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

476  {
477  detSet_[i] = detSet;
478  empty_[i] = false;
479  }
const Phase2DetSet & detSet(int i) const
std::vector< Phase2DetSet > detSet_

Friends And Related Function Documentation

friend class MeasurementTrackerImpl
friend

Definition at line 498 of file TkMeasurementDetSet.h.

Member Data Documentation

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

Definition at line 508 of file TkMeasurementDetSet.h.

const Phase2OTMeasurementConditionSet* Phase2OTMeasurementDetSet::conditionSet_
private

Definition at line 500 of file TkMeasurementDetSet.h.

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

Definition at line 506 of file TkMeasurementDetSet.h.

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

Definition at line 507 of file TkMeasurementDetSet.h.

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

Definition at line 503 of file TkMeasurementDetSet.h.