CMS 3D CMS Logo

List of all members | Public Member Functions | Private Types | Private Member Functions | Private Attributes
KFSwitching1DUpdator Class Referencefinal

#include <KFSwitching1DUpdator.h>

Inheritance diagram for KFSwitching1DUpdator:
TrajectoryStateUpdator

Public Member Functions

KFSwitching1DUpdatorclone () const override
 
 KFSwitching1DUpdator (const edm::ParameterSet *pset=0)
 
TSOS update (const TSOS &aTsos, const TrackingRecHit &aHit) const override
 update with a hit More...
 
 ~KFSwitching1DUpdator () override
 
- Public Member Functions inherited from TrajectoryStateUpdator
 TrajectoryStateUpdator ()
 
virtual ~TrajectoryStateUpdator ()
 

Private Types

typedef TrajectoryStateOnSurface TSOS
 

Private Member Functions

const KFUpdatorlocalUpdator () const
 updator for 2D hits (matched or pixel) More...
 
const KFStrip1DUpdatorstripUpdator () const
 updator for non-matched strip hits More...
 

Private Attributes

bool theDoEndCap
 
const KFUpdator theLocalUpdator
 
const KFStrip1DUpdator theStripUpdator
 

Detailed Description

A Kalman Updator that uses a KFUpdator for pixel and matched hits, and a KFStrip1DUpdator for simple strip hits. Ported from ORCA.

Author
todorov, cerati

Definition at line 18 of file KFSwitching1DUpdator.h.

Member Typedef Documentation

Definition at line 21 of file KFSwitching1DUpdator.h.

Constructor & Destructor Documentation

KFSwitching1DUpdator::KFSwitching1DUpdator ( const edm::ParameterSet pset = 0)
inline

Definition at line 25 of file KFSwitching1DUpdator.h.

References muonDTDigis_cfi::pset, and theDoEndCap.

Referenced by clone().

25  : theDoEndCap(false) {
26  if (pset){
27  theDoEndCap=pset->getParameter<bool>("doEndCap");
28  }
29  }
T getParameter(std::string const &) const
KFSwitching1DUpdator::~KFSwitching1DUpdator ( )
inlineoverride

Definition at line 30 of file KFSwitching1DUpdator.h.

References update().

30 {}

Member Function Documentation

KFSwitching1DUpdator* KFSwitching1DUpdator::clone ( void  ) const
inlineoverridevirtual

Implements TrajectoryStateUpdator.

Definition at line 35 of file KFSwitching1DUpdator.h.

References KFSwitching1DUpdator().

36  {
37  return new KFSwitching1DUpdator(*this);
38  }
KFSwitching1DUpdator(const edm::ParameterSet *pset=0)
const KFUpdator& KFSwitching1DUpdator::localUpdator ( ) const
inlineprivate

updator for 2D hits (matched or pixel)

Definition at line 42 of file KFSwitching1DUpdator.h.

References theLocalUpdator.

Referenced by update().

42 {return theLocalUpdator;}
const KFUpdator theLocalUpdator
const KFStrip1DUpdator& KFSwitching1DUpdator::stripUpdator ( ) const
inlineprivate

updator for non-matched strip hits

Definition at line 44 of file KFSwitching1DUpdator.h.

References theStripUpdator.

Referenced by update().

44 {return theStripUpdator;}
const KFStrip1DUpdator theStripUpdator
TrajectoryStateOnSurface KFSwitching1DUpdator::update ( const TSOS aTsos,
const TrackingRecHit aHit 
) const
overridevirtual

update with a hit

Implements TrajectoryStateUpdator.

Definition at line 7 of file KFSwitching1DUpdator.cc.

References TrackingRecHit::detUnit(), GeomDetType::isEndcap(), GeomDetType::isTrackerPixel(), localUpdator(), stripUpdator(), theDoEndCap, GeomDet::type(), KFStrip1DUpdator::update(), and KFUpdator::update().

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(), Vispa.Gui.PortConnection.PointToPointConnection::updateConnection(), and ~KFSwitching1DUpdator().

7  {
8  if( !aHit.detUnit() || aHit.detUnit()->type().isTrackerPixel() || (!theDoEndCap && aHit.detUnit()->type().isEndcap())) {
9  return localUpdator().update(aTsos, aHit);
10  } else {
11  return stripUpdator().update(aTsos, aHit);
12  }
13 }
virtual const GeomDetType & type() const
Definition: GeomDet.cc:85
bool isEndcap() const
Definition: GeomDetType.cc:18
const KFUpdator & localUpdator() const
updator for 2D hits (matched or pixel)
TSOS update(const TSOS &aTsos, const TrackingRecHit &aHit) const override
const KFStrip1DUpdator & stripUpdator() const
updator for non-matched strip hits
TrajectoryStateOnSurface update(const TrajectoryStateOnSurface &, const TrackingRecHit &) const override
Definition: KFUpdator.cc:169
bool isTrackerPixel() const
Definition: GeomDetType.cc:29
virtual const GeomDetUnit * detUnit() const

Member Data Documentation

bool KFSwitching1DUpdator::theDoEndCap
private

Definition at line 50 of file KFSwitching1DUpdator.h.

Referenced by KFSwitching1DUpdator(), and update().

const KFUpdator KFSwitching1DUpdator::theLocalUpdator
private

Definition at line 47 of file KFSwitching1DUpdator.h.

Referenced by localUpdator().

const KFStrip1DUpdator KFSwitching1DUpdator::theStripUpdator
private

Definition at line 48 of file KFSwitching1DUpdator.h.

Referenced by stripUpdator().