CMS 3D CMS Logo

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

#include <KFSwitching1DUpdator.h>

Inheritance diagram for KFSwitching1DUpdator:
TrajectoryStateUpdator

Public Member Functions

virtual KFSwitching1DUpdatorclone () const
 
 KFSwitching1DUpdator (const edm::ParameterSet *pset=0)
 
virtual TSOS update (const TSOS &aTsos, const TransientTrackingRecHit &aHit) const
 update with a hit More...
 
 ~KFSwitching1DUpdator ()
 
- 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
 
DeepCopyPointerByClone< const
KFUpdator
theLocalUpdator
 
DeepCopyPointerByClone< 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.

Date:
2007/05/09 13:50:25
Revision:
1.4
Author
todorov, cerati

Definition at line 20 of file KFSwitching1DUpdator.h.

Member Typedef Documentation

Definition at line 23 of file KFSwitching1DUpdator.h.

Constructor & Destructor Documentation

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

Definition at line 27 of file KFSwitching1DUpdator.h.

References CrabTask::pset, and theDoEndCap.

Referenced by clone().

27  : theLocalUpdator(new KFUpdator()),
29  if (pset){
30  theDoEndCap=pset->getParameter<bool>("doEndCap");
31  }
32  else
33  {
34  theDoEndCap=false;
35  }
36  }
T getParameter(std::string const &) const
DeepCopyPointerByClone< const KFStrip1DUpdator > theStripUpdator
DeepCopyPointerByClone< const KFUpdator > theLocalUpdator
KFSwitching1DUpdator::~KFSwitching1DUpdator ( )
inline

Definition at line 38 of file KFSwitching1DUpdator.h.

38 {}

Member Function Documentation

virtual KFSwitching1DUpdator* KFSwitching1DUpdator::clone ( void  ) const
inlinevirtual

Implements TrajectoryStateUpdator.

Definition at line 43 of file KFSwitching1DUpdator.h.

References KFSwitching1DUpdator().

44  {
45  return new KFSwitching1DUpdator(*this);
46  }
KFSwitching1DUpdator(const edm::ParameterSet *pset=0)
const KFUpdator& KFSwitching1DUpdator::localUpdator ( ) const
inlineprivate

updator for 2D hits (matched or pixel)

Definition at line 50 of file KFSwitching1DUpdator.h.

References theLocalUpdator.

Referenced by update().

50 {return *theLocalUpdator;}
DeepCopyPointerByClone< const KFUpdator > theLocalUpdator
const KFStrip1DUpdator& KFSwitching1DUpdator::stripUpdator ( ) const
inlineprivate

updator for non-matched strip hits

Definition at line 52 of file KFSwitching1DUpdator.h.

References theStripUpdator.

Referenced by update().

52 {return *theStripUpdator;}
DeepCopyPointerByClone< const KFStrip1DUpdator > theStripUpdator
TrajectoryStateOnSurface KFSwitching1DUpdator::update ( const TSOS aTsos,
const TransientTrackingRecHit aHit 
) const
virtual

update with a hit

Implements TrajectoryStateUpdator.

Definition at line 7 of file KFSwitching1DUpdator.cc.

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

Referenced by python.Vispa.Gui.VispaWidget.VispaWidget::autosize(), python.Vispa.Views.LineDecayView.LineDecayContainer::createObject(), python.Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), python.Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), python.Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), python.Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), python.Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), python.Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), python.Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), python.Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), python.Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), python.Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), python.Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), python.Vispa.Gui.FindDialog.FindDialog::reset(), python.Vispa.Gui.PortConnection.PointToPointConnection::select(), python.Vispa.Gui.VispaWidget.VispaWidget::select(), python.Vispa.Views.LineDecayView.LineDecayContainer::select(), python.Vispa.Gui.VispaWidget.VispaWidget::setText(), python.Vispa.Gui.VispaWidget.VispaWidget::setTitle(), python.Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), python.Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), and python.Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().

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 }
bool isEndcap() const
Definition: GeomDetType.cc:18
virtual TSOS update(const TSOS &aTsos, const TransientTrackingRecHit &aHit) const
const KFUpdator & localUpdator() const
updator for 2D hits (matched or pixel)
const KFStrip1DUpdator & stripUpdator() const
updator for non-matched strip hits
virtual const GeomDetType & type() const =0
bool isTrackerPixel() const
Definition: GeomDetType.cc:30
TrajectoryStateOnSurface update(const TrajectoryStateOnSurface &, const TransientTrackingRecHit &) const
Definition: KFUpdator.cc:10
virtual const GeomDetUnit * detUnit() const

Member Data Documentation

bool KFSwitching1DUpdator::theDoEndCap
private

Definition at line 58 of file KFSwitching1DUpdator.h.

Referenced by KFSwitching1DUpdator(), and update().

DeepCopyPointerByClone<const KFUpdator> KFSwitching1DUpdator::theLocalUpdator
private

Definition at line 55 of file KFSwitching1DUpdator.h.

Referenced by localUpdator().

DeepCopyPointerByClone<const KFStrip1DUpdator> KFSwitching1DUpdator::theStripUpdator
private

Definition at line 56 of file KFSwitching1DUpdator.h.

Referenced by stripUpdator().