#include <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 |
A Kalman Updator that uses a KFUpdator for pixel and matched hits, and a KFStripUpdator for simple strip hits. 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().
: theLocalUpdator(new KFUpdator()), theStripUpdator(new KFStripUpdator()) {}
KFSwitchingUpdator::~KFSwitchingUpdator | ( | ) | [inline] |
Definition at line 28 of file KFSwitchingUpdator.h.
{}
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); } }
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().