#include <TrackingTools/KalmanUpdators/interface/KFSwitchingUpdator.h>
Public Member Functions | |
virtual KFSwitchingUpdator * | clone () 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 KFUpdator & | localUpdator () const |
updator for 2D hits (matched or pixel) | |
const KFStripUpdator & | stripUpdator () const |
updator for non-matched strip hits | |
Private Attributes | |
DeepCopyPointer< const KFUpdator > | theLocalUpdator |
DeepCopyPointer< const KFStripUpdator > | theStripUpdator |
Ported from ORCA.
Definition at line 18 of file KFSwitchingUpdator.h.
typedef TrajectoryStateOnSurface KFSwitchingUpdator::TSOS [private] |
Definition at line 21 of file KFSwitchingUpdator.h.
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] |
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 }
DeepCopyPointer<const KFUpdator> KFSwitchingUpdator::theLocalUpdator [private] |
DeepCopyPointer<const KFStripUpdator> KFSwitchingUpdator::theStripUpdator [private] |