CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

ThirdHitRZPrediction< Propagator > Class Template Reference

#include <ThirdHitRZPrediction.h>

Inheritance diagram for ThirdHitRZPrediction< Propagator >:
ThirdHitRZPredictionBase

List of all members.

Public Types

typedef
helper::ThirdHitRZPredictionTraits
< Propagator
traits

Public Member Functions

void initPropagator (const Propagator *propagator)
Range operator() (float rORz) const
Range operator() (float rORz, const Propagator &propagator) const
Range operator() (const DetLayer *layer=0)
 ThirdHitRZPrediction (const Propagator *propagator, float tolerance, const DetLayer *layer=0)
 ThirdHitRZPrediction ()

Private Attributes

const PropagatorthePropagator

Detailed Description

template<class Propagator>
class ThirdHitRZPrediction< Propagator >

Definition at line 32 of file ThirdHitRZPrediction.h.


Member Typedef Documentation

Definition at line 34 of file ThirdHitRZPrediction.h.


Constructor & Destructor Documentation

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

Definition at line 36 of file ThirdHitRZPrediction.h.

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

Definition at line 37 of file ThirdHitRZPrediction.h.

                                                                                                 :
      ThirdHitRZPredictionBase(tolerance, layer), thePropagator(propagator) {}

Member Function Documentation

template<class Propagator >
void ThirdHitRZPrediction< Propagator >::initPropagator ( const Propagator propagator) [inline]
template<class Propagator >
Range ThirdHitRZPrediction< Propagator >::operator() ( float  rORz) const [inline]

Definition at line 41 of file ThirdHitRZPrediction.h.

References ThirdHitRZPrediction< Propagator >::thePropagator.

{ return (*this)(rORz, *thePropagator); }
template<class Propagator >
ThirdHitRZPrediction< Propagator >::Range ThirdHitRZPrediction< Propagator >::operator() ( float  rORz,
const Propagator propagator 
) const

Definition at line 64 of file ThirdHitRZPrediction.h.

References v.

{
  float v = traits::transform(propagator, theBarrel, rOrZ);
  return Range(v - theTolerance.left(), v + theTolerance.right());
}
template<class Propagator >
ThirdHitRZPrediction< Propagator >::Range ThirdHitRZPrediction< Propagator >::operator() ( const DetLayer layer = 0)

Definition at line 52 of file ThirdHitRZPrediction.h.

References std::swap().

{
  if (layer) initLayer(layer);
  if (!theBarrel && !theForward) return Range(0., 0.);
  float v1 = traits::transform(*thePropagator, theBarrel, theDetRange.min());
  float v2 = traits::transform(*thePropagator, theBarrel, theDetRange.max());
  if (v1 > v2) std::swap(v1, v2);
  return Range(v1 - theTolerance.left(), v2 + theTolerance.right());
}

Member Data Documentation

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