CMS 3D CMS Logo

KFSwitchingUpdator Class Reference

A Kalman Updator that uses a KFUpdator for pixel and matched hits, and a KFStripUpdator for simple strip hits. More...

#include <TrackingTools/KalmanUpdators/interface/KFSwitchingUpdator.h>

Inheritance diagram for KFSwitchingUpdator:

TrajectoryStateUpdator

List of all members.

Public Member Functions

virtual KFSwitchingUpdatorclone () const
 KFSwitchingUpdator ()
virtual TSOS update (const TSOS &aTsos, const TransientTrackingRecHit &aHit) const
 update with a hit
 ~KFSwitchingUpdator ()

Private Types

typedef TrajectoryStateOnSurface TSOS

Private Member Functions

const KFUpdatorlocalUpdator () const
 updator for 2D hits (matched or pixel)
const KFStripUpdatorstripUpdator () const
 updator for non-matched strip hits

Private Attributes

DeepCopyPointer< const KFUpdatortheLocalUpdator
DeepCopyPointer< const
KFStripUpdator
theStripUpdator


Detailed Description

A Kalman Updator that uses a KFUpdator for pixel and matched hits, and a KFStripUpdator for simple strip hits.

Ported from ORCA.

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

Definition at line 18 of file KFSwitchingUpdator.h.


Member Typedef Documentation

typedef TrajectoryStateOnSurface KFSwitchingUpdator::TSOS [private]

Definition at line 21 of file KFSwitchingUpdator.h.


Constructor & Destructor Documentation

KFSwitchingUpdator::KFSwitchingUpdator (  )  [inline]

Definition at line 25 of file KFSwitchingUpdator.h.

Referenced by clone().

00025                        : theLocalUpdator(new KFUpdator()),
00026                          theStripUpdator(new KFStripUpdator()) {}

KFSwitchingUpdator::~KFSwitchingUpdator (  )  [inline]

Definition at line 28 of file KFSwitchingUpdator.h.

00028 {}


Member Function Documentation

virtual KFSwitchingUpdator* KFSwitchingUpdator::clone ( void   )  const [inline, virtual]

Implements TrajectoryStateUpdator.

Definition at line 33 of file KFSwitchingUpdator.h.

References KFSwitchingUpdator().

00034   {
00035     return new KFSwitchingUpdator(*this);
00036   }

const KFUpdator& KFSwitchingUpdator::localUpdator (  )  const [inline, private]

updator for 2D hits (matched or pixel)

Definition at line 40 of file KFSwitchingUpdator.h.

References theLocalUpdator.

Referenced by update().

00040 {return *theLocalUpdator;}

const KFStripUpdator& KFSwitchingUpdator::stripUpdator (  )  const [inline, private]

updator for non-matched strip hits

Definition at line 42 of file KFSwitchingUpdator.h.

References theStripUpdator.

Referenced by update().

00042 {return *theStripUpdator;}

TrajectoryStateOnSurface KFSwitchingUpdator::update ( const TSOS aTsos,
const TransientTrackingRecHit aHit 
) const [virtual]

update with a hit

Implements TrajectoryStateUpdator.

Definition at line 7 of file KFSwitchingUpdator.cc.

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

00007                                                                                        {
00008   if(//aHit.isMatched() || 
00009      aHit.detUnit()->type().isTrackerPixel()) {
00010     return localUpdator().update(aTsos, aHit);
00011   } else {
00012     return stripUpdator().update(aTsos, aHit);
00013   }
00014 }


Member Data Documentation

DeepCopyPointer<const KFUpdator> KFSwitchingUpdator::theLocalUpdator [private]

Definition at line 45 of file KFSwitchingUpdator.h.

Referenced by localUpdator().

DeepCopyPointer<const KFStripUpdator> KFSwitchingUpdator::theStripUpdator [private]

Definition at line 46 of file KFSwitchingUpdator.h.

Referenced by stripUpdator().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:26:17 2009 for CMSSW by  doxygen 1.5.4