CMS 3D CMS Logo

List of all members | Public Member Functions | Private Types | Private Member Functions | Private Attributes
KFSwitching1DUpdator Class Referencefinal

#include <KFSwitching1DUpdator.h>

Inheritance diagram for KFSwitching1DUpdator:
TrajectoryStateUpdator

Public Member Functions

KFSwitching1DUpdatorclone () const override
 
 KFSwitching1DUpdator (bool doEndCap=false)
 
TSOS update (const TSOS &aTsos, const TrackingRecHit &aHit) const override
 update with a hit More...
 
 ~KFSwitching1DUpdator () override
 
- Public Member Functions inherited from TrajectoryStateUpdator
 TrajectoryStateUpdator ()
 
virtual ~TrajectoryStateUpdator ()
 

Private Types

typedef TrajectoryStateOnSurface TSOS
 

Private Member Functions

const KFUpdatorlocalUpdator () const
 updator for 2D hits (matched or pixel) More...
 
const KFStrip1DUpdatorstripUpdator () const
 updator for non-matched strip hits More...
 

Private Attributes

bool theDoEndCap
 
const KFUpdator theLocalUpdator
 
const KFStrip1DUpdator theStripUpdator
 

Detailed Description

A Kalman Updator that uses a KFUpdator for pixel and matched hits, and a KFStrip1DUpdator for simple strip hits. Ported from ORCA.

Author
todorov, cerati

Definition at line 16 of file KFSwitching1DUpdator.h.

Member Typedef Documentation

◆ TSOS

Definition at line 18 of file KFSwitching1DUpdator.h.

Constructor & Destructor Documentation

◆ KFSwitching1DUpdator()

KFSwitching1DUpdator::KFSwitching1DUpdator ( bool  doEndCap = false)
inlineexplicit

◆ ~KFSwitching1DUpdator()

KFSwitching1DUpdator::~KFSwitching1DUpdator ( )
inlineoverride

Definition at line 22 of file KFSwitching1DUpdator.h.

22 {}

Member Function Documentation

◆ clone()

KFSwitching1DUpdator* KFSwitching1DUpdator::clone ( void  ) const
inlineoverridevirtual

Implements TrajectoryStateUpdator.

Definition at line 27 of file KFSwitching1DUpdator.h.

References KFSwitching1DUpdator().

27 { return new KFSwitching1DUpdator(*this); }
KFSwitching1DUpdator(bool doEndCap=false)

◆ localUpdator()

const KFUpdator& KFSwitching1DUpdator::localUpdator ( ) const
inlineprivate

updator for 2D hits (matched or pixel)

Definition at line 31 of file KFSwitching1DUpdator.h.

References theLocalUpdator.

Referenced by update().

31 { return theLocalUpdator; }
const KFUpdator theLocalUpdator

◆ stripUpdator()

const KFStrip1DUpdator& KFSwitching1DUpdator::stripUpdator ( ) const
inlineprivate

updator for non-matched strip hits

Definition at line 33 of file KFSwitching1DUpdator.h.

References theStripUpdator.

Referenced by update().

33 { return theStripUpdator; }
const KFStrip1DUpdator theStripUpdator

◆ update()

TrajectoryStateOnSurface KFSwitching1DUpdator::update ( const TSOS aTsos,
const TrackingRecHit aHit 
) const
overridevirtual

update with a hit

Implements TrajectoryStateUpdator.

Definition at line 6 of file KFSwitching1DUpdator.cc.

References TrackingRecHit::detUnit(), GeomDetType::isEndcap(), GeomDetType::isTrackerPixel(), localUpdator(), stripUpdator(), theDoEndCap, GeomDet::type(), KFStrip1DUpdator::update(), and KFUpdator::update().

Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), progressbar.ProgressBar::finish(), and MatrixUtil.Steps::overwrite().

6  {
7  if (!aHit.detUnit() || aHit.detUnit()->type().isTrackerPixel() ||
8  (!theDoEndCap && aHit.detUnit()->type().isEndcap())) {
9  return localUpdator().update(aTsos, aHit);
10  } else {
11  return stripUpdator().update(aTsos, aHit);
12  }
13 }
const KFStrip1DUpdator & stripUpdator() const
updator for non-matched strip hits
virtual const GeomDetType & type() const
Definition: GeomDet.cc:69
bool isTrackerPixel() const
Definition: GeomDetType.cc:15
TSOS update(const TSOS &aTsos, const TrackingRecHit &aHit) const override
TrajectoryStateOnSurface update(const TrajectoryStateOnSurface &, const TrackingRecHit &) const override
Definition: KFUpdator.cc:177
const KFUpdator & localUpdator() const
updator for 2D hits (matched or pixel)
virtual const GeomDetUnit * detUnit() const
bool isEndcap() const
Definition: GeomDetType.cc:11

Member Data Documentation

◆ theDoEndCap

bool KFSwitching1DUpdator::theDoEndCap
private

Definition at line 39 of file KFSwitching1DUpdator.h.

Referenced by update().

◆ theLocalUpdator

const KFUpdator KFSwitching1DUpdator::theLocalUpdator
private

Definition at line 36 of file KFSwitching1DUpdator.h.

Referenced by localUpdator().

◆ theStripUpdator

const KFStrip1DUpdator KFSwitching1DUpdator::theStripUpdator
private

Definition at line 37 of file KFSwitching1DUpdator.h.

Referenced by stripUpdator().