CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
ThirdHitRZPrediction< Propagator > Class Template Reference

#include <ThirdHitRZPrediction.h>

Inheritance diagram for ThirdHitRZPrediction< Propagator >:
ThirdHitRZPredictionBase

Public Member Functions

void initPropagator (const Propagator *propagator)
 
Range operator() (const DetLayer *layer=nullptr)
 
Range operator() (float rORz) const
 
Range operator() (float rORz, const Propagator &propagator) const
 
 ThirdHitRZPrediction ()
 
 ThirdHitRZPrediction (const Propagator *propagator, float tolerance, const DetLayer *layer=nullptr)
 
- Public Member Functions inherited from ThirdHitRZPredictionBase
const RangedetRange () const
 
const RangedetSize () const
 
void initLayer (const DetLayer *layer)
 
void initTolerance (float tolerance)
 
 ThirdHitRZPredictionBase ()
 
 ThirdHitRZPredictionBase (float tolerance, const DetLayer *layer=nullptr)
 

Private Member Functions

float transform (const Propagator &propagator, float rOrZ) const
 

Private Attributes

const PropagatorthePropagator
 

Additional Inherited Members

- Public Types inherited from ThirdHitRZPredictionBase
typedef TkTrackingRegionsMargin< float > Margin
 
typedef PixelRecoRange< float > Range
 
- Protected Attributes inherited from ThirdHitRZPredictionBase
bool theBarrel
 
Range theDetRange
 
Range theDetSize
 
bool theForward
 
Margin theTolerance
 

Detailed Description

template<class Propagator>
class ThirdHitRZPrediction< Propagator >

predicts a range in r-z for the position of third hit. the predicted reange is defined by the template argument, which is a straight line extrapolation/interpolation if PixelRecoLineRZ is used.

Definition at line 14 of file ThirdHitRZPrediction.h.

Constructor & Destructor Documentation

template<class Propagator>
ThirdHitRZPrediction< Propagator >::ThirdHitRZPrediction ( )
inline

Definition at line 17 of file ThirdHitRZPrediction.h.

template<class Propagator>
ThirdHitRZPrediction< Propagator >::ThirdHitRZPrediction ( const Propagator propagator,
float  tolerance,
const DetLayer layer = nullptr 
)
inline

Member Function Documentation

template<class Propagator>
void ThirdHitRZPrediction< Propagator >::initPropagator ( const Propagator propagator)
inline
template<class Propagator >
ThirdHitRZPrediction< Propagator >::Range ThirdHitRZPrediction< Propagator >::operator() ( const DetLayer layer = nullptr)
inline

Definition at line 36 of file ThirdHitRZPrediction.h.

References ThirdHitRZPredictionBase::initLayer(), TkTrackingRegionsMargin< T >::left(), PixelRecoRange< T >::max(), PixelRecoRange< T >::min(), TkTrackingRegionsMargin< T >::right(), std::swap(), ThirdHitRZPredictionBase::theBarrel, ThirdHitRZPredictionBase::theDetRange, ThirdHitRZPredictionBase::theForward, ThirdHitRZPrediction< Propagator >::thePropagator, ThirdHitRZPredictionBase::theTolerance, and ThirdHitRZPrediction< Propagator >::transform().

Referenced by ThirdHitRZPrediction< Propagator >::operator()(), and ThirdHitRZPrediction< Propagator >::ThirdHitRZPrediction().

37 {
38  if (layer) initLayer(layer);
39  if (!theBarrel && !theForward) return Range(0., 0.);
40  float v1 = transform(*thePropagator, theDetRange.min());
41  float v2 = transform(*thePropagator, theDetRange.max());
42  if (v1 > v2) std::swap(v1, v2);
43  return Range(v1 - theTolerance.left(), v2 + theTolerance.right());
44 }
T max() const
void initLayer(const DetLayer *layer)
PixelRecoRange< float > Range
T min() const
float transform(const Propagator &propagator, float rOrZ) const
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
const Propagator * thePropagator
template<class Propagator>
Range ThirdHitRZPrediction< Propagator >::operator() ( float  rORz) const
inline
template<class Propagator >
ThirdHitRZPrediction< Propagator >::Range ThirdHitRZPrediction< Propagator >::operator() ( float  rORz,
const Propagator propagator 
) const
inline
template<class Propagator>
float ThirdHitRZPrediction< Propagator >::transform ( const Propagator propagator,
float  rOrZ 
) const
inlineprivate

Definition at line 28 of file ThirdHitRZPrediction.h.

References ThirdHitRZPredictionBase::theBarrel.

Referenced by ThirdHitRZPrediction< Propagator >::operator()().

29  { return theBarrel ? propagator.zAtR(rOrZ) : propagator.rAtZ(rOrZ); }

Member Data Documentation

template<class Propagator>
const Propagator* ThirdHitRZPrediction< Propagator >::thePropagator
private