CMS 3D CMS Logo

Public Member Functions | Private Types | Private Member Functions | Private Attributes

KFSwitchingUpdator Class Reference

#include <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

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().

KFSwitchingUpdator::~KFSwitchingUpdator ( ) [inline]

Definition at line 28 of file KFSwitchingUpdator.h.

{}

Member Function Documentation

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

Implements TrajectoryStateUpdator.

Definition at line 33 of file KFSwitchingUpdator.h.

References KFSwitchingUpdator().

  {
    return new KFSwitchingUpdator(*this);
  }
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().

{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().

{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().

                                                                                       {
  if(//aHit.isMatched() || 
     aHit.detUnit()->type().isTrackerPixel()) {
    return localUpdator().update(aTsos, aHit);
  } else {
    return stripUpdator().update(aTsos, aHit);
  }
}

Member Data Documentation

Definition at line 45 of file KFSwitchingUpdator.h.

Referenced by localUpdator().

Definition at line 46 of file KFSwitchingUpdator.h.

Referenced by stripUpdator().