CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
OuterEstimator< Algo > Class Template Referencefinal

#include <OuterEstimator.h>

Inheritance diagram for OuterEstimator< Algo >:
MeasurementEstimator

Public Types

using OuterHitCompat = OuterHitCompatibility< Algo >
 
- Public Types inherited from MeasurementEstimator
using HitReturnType = std::pair< bool, double >
 
using Local2DVector = Vector2DBase< float, LocalTag >
 
using SurfaceReturnType = bool
 

Public Member Functions

GlobalPoint center ()
 
OuterEstimatorclone () const override
 
const OuterDetCompatibilitydetCompatibility () const
 
std::pair< bool, double > estimate (const TrajectoryStateOnSurface &ts, const TrackingRecHit &hit) const override
 
bool estimate (const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const override
 
const OuterHitCompathitCompatibility () const
 
MeasurementEstimator::Local2DVector maximalLocalDisplacement (const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const override
 
 OuterEstimator (const OuterDetCompatibility &detCompatibility, const OuterHitCompat &hitCompatibility, const edm::EventSetup &iSetup)
 
 ~OuterEstimator () override
 
- Public Member Functions inherited from MeasurementEstimator
virtual SurfaceReturnType estimate (const TrajectoryStateOnSurface &ts, const Plane &plane) const =0
 
virtual Local2DVector maximalLocalDisplacement (const TrajectoryStateOnSurface &ts, const Plane &plane) const =0
 
float maxSagitta () const
 
 MeasurementEstimator ()
 
 MeasurementEstimator (float maxSag, float minToll, float mpt)
 
float minPt2ForHitRecoveryInGluedDet () const
 
float minTolerance2 () const
 
virtual bool preFilter (const TrajectoryStateOnSurface &, OpaquePayload const &) const
 
virtual ~MeasurementEstimator ()
 

Private Attributes

OuterDetCompatibility theDetCompatibility
 
OuterHitCompat theHitCompatibility
 

Detailed Description

template<typename Algo>
class OuterEstimator< Algo >

It is a MeasurementEstimator used by TrackingRegions for finding (OUTER) compatible hits and det units by testing the hit compatibility by OuterHitCompatibility and det compatibility by OuterDetCompatibility

Definition at line 25 of file OuterEstimator.h.

Member Typedef Documentation

template<typename Algo >
using OuterEstimator< Algo >::OuterHitCompat = OuterHitCompatibility<Algo>

Definition at line 29 of file OuterEstimator.h.

Constructor & Destructor Documentation

template<typename Algo >
OuterEstimator< Algo >::OuterEstimator ( const OuterDetCompatibility detCompatibility,
const OuterHitCompat hitCompatibility,
const edm::EventSetup iSetup 
)
inline

Definition at line 31 of file OuterEstimator.h.

35  : theDetCompatibility(detCompatibility),
OuterDetCompatibility theDetCompatibility
OuterHitCompat theHitCompatibility
const OuterHitCompat & hitCompatibility() const
template<typename Algo >
OuterEstimator< Algo >::~OuterEstimator ( )
inlineoverride

Definition at line 38 of file OuterEstimator.h.

38 {}

Member Function Documentation

template<typename Algo >
GlobalPoint OuterEstimator< Algo >::center ( )
inline

Definition at line 54 of file OuterEstimator.h.

54 { return theDetCompatibility.center(); }
GlobalPoint center() const
OuterDetCompatibility theDetCompatibility
template<typename Algo >
OuterEstimator* OuterEstimator< Algo >::clone ( void  ) const
inlineoverridevirtual

Implements MeasurementEstimator.

Definition at line 56 of file OuterEstimator.h.

56  {
57  return new OuterEstimator(*this);
58  }
OuterEstimator(const OuterDetCompatibility &detCompatibility, const OuterHitCompat &hitCompatibility, const edm::EventSetup &iSetup)
template<typename Algo >
const OuterDetCompatibility& OuterEstimator< Algo >::detCompatibility ( ) const
inline

Definition at line 66 of file OuterEstimator.h.

67  {return theDetCompatibility; }
OuterDetCompatibility theDetCompatibility
template<typename Algo >
std::pair<bool,double> OuterEstimator< Algo >::estimate ( const TrajectoryStateOnSurface ts,
const TrackingRecHit hit 
) const
inlineoverridevirtual

Returns pair( true, value) if the TrajectoryStateOnSurface is compatible with the RecHit, and pair( false, value) if it is not compatible. The TrajectoryStateOnSurface must be on the same Surface as the RecHit. For an estimator where there is no value computed, e.g. fixed window estimator, only the first(bool) part is of interest.

Implements MeasurementEstimator.

Definition at line 40 of file OuterEstimator.h.

43  {
44  return theHitCompatibility(hit) ? std::make_pair(true,1.) : std::make_pair(false,0.) ;
45  }
OuterHitCompat theHitCompatibility
template<typename Algo >
bool OuterEstimator< Algo >::estimate ( const TrajectoryStateOnSurface ts,
const BoundPlane plane 
) const
inlineoverride

Definition at line 47 of file OuterEstimator.h.

50  {
51  return theDetCompatibility(plane);
52  }
OuterDetCompatibility theDetCompatibility
template<typename Algo >
const OuterHitCompat& OuterEstimator< Algo >::hitCompatibility ( ) const
inline

Definition at line 68 of file OuterEstimator.h.

69  {return theHitCompatibility; }
OuterHitCompat theHitCompatibility
template<typename Algo >
MeasurementEstimator::Local2DVector OuterEstimator< Algo >::maximalLocalDisplacement ( const TrajectoryStateOnSurface ts,
const BoundPlane plane 
) const
inlineoverride

Definition at line 60 of file OuterEstimator.h.

References TrajectoryStateOnSurface::globalPosition().

61  {
63  ts.globalPosition(),plane);
64  }
MeasurementEstimator::Local2DVector maximalLocalDisplacement(const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const
OuterDetCompatibility theDetCompatibility
GlobalPoint globalPosition() const

Member Data Documentation

template<typename Algo >
OuterDetCompatibility OuterEstimator< Algo >::theDetCompatibility
private

Definition at line 72 of file OuterEstimator.h.

template<typename Algo >
OuterHitCompat OuterEstimator< Algo >::theHitCompatibility
private

Definition at line 73 of file OuterEstimator.h.