#include <KFSwitching1DUpdator.h>
Public Member Functions | |
virtual KFSwitching1DUpdator * | clone () const |
KFSwitching1DUpdator (const edm::ParameterSet *pset=0) | |
virtual TSOS | update (const TSOS &aTsos, const TransientTrackingRecHit &aHit) const |
update with a hit | |
~KFSwitching1DUpdator () | |
Private Types | |
typedef TrajectoryStateOnSurface | TSOS |
Private Member Functions | |
const KFUpdator & | localUpdator () const |
updator for 2D hits (matched or pixel) | |
const KFStrip1DUpdator & | stripUpdator () const |
updator for non-matched strip hits | |
Private Attributes | |
bool | theDoEndCap |
DeepCopyPointerByClone< const KFUpdator > | theLocalUpdator |
DeepCopyPointerByClone< const KFStrip1DUpdator > | theStripUpdator |
A Kalman Updator that uses a KFUpdator for pixel and matched hits, and a KFStrip1DUpdator for simple strip hits. Ported from ORCA.
Definition at line 20 of file KFSwitching1DUpdator.h.
typedef TrajectoryStateOnSurface KFSwitching1DUpdator::TSOS [private] |
Definition at line 23 of file KFSwitching1DUpdator.h.
KFSwitching1DUpdator::KFSwitching1DUpdator | ( | const edm::ParameterSet * | pset = 0 | ) | [inline] |
Definition at line 27 of file KFSwitching1DUpdator.h.
References theDoEndCap.
Referenced by clone().
: theLocalUpdator(new KFUpdator()), theStripUpdator(new KFStrip1DUpdator()) { if (pset){ theDoEndCap=pset->getParameter<bool>("doEndCap"); } else { theDoEndCap=false; } }
KFSwitching1DUpdator::~KFSwitching1DUpdator | ( | ) | [inline] |
Definition at line 38 of file KFSwitching1DUpdator.h.
{}
virtual KFSwitching1DUpdator* KFSwitching1DUpdator::clone | ( | void | ) | const [inline, virtual] |
Implements TrajectoryStateUpdator.
Definition at line 43 of file KFSwitching1DUpdator.h.
References KFSwitching1DUpdator().
{ return new KFSwitching1DUpdator(*this); }
const KFUpdator& KFSwitching1DUpdator::localUpdator | ( | ) | const [inline, private] |
updator for 2D hits (matched or pixel)
Definition at line 50 of file KFSwitching1DUpdator.h.
References theLocalUpdator.
Referenced by update().
{return *theLocalUpdator;}
const KFStrip1DUpdator& KFSwitching1DUpdator::stripUpdator | ( | ) | const [inline, private] |
updator for non-matched strip hits
Definition at line 52 of file KFSwitching1DUpdator.h.
References theStripUpdator.
Referenced by update().
{return *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(), KFUpdator::update(), and KFStrip1DUpdator::update().
{ if( !aHit.detUnit() || aHit.detUnit()->type().isTrackerPixel() || (!theDoEndCap && aHit.detUnit()->type().isEndcap())) { return localUpdator().update(aTsos, aHit); } else { return stripUpdator().update(aTsos, aHit); } }
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().