CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
OuterEstimator Class Referencefinal

#include <OuterEstimator.h>

Inheritance diagram for OuterEstimator:
MeasurementEstimator

Public Member Functions

GlobalPoint center ()
 
virtual OuterEstimatorclone () const
 
const OuterDetCompatibilitydetCompatibility () const
 
virtual std::pair< bool, double > estimate (const TrajectoryStateOnSurface &ts, const TrackingRecHit &hit) const
 
virtual bool estimate (const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const
 
const OuterHitCompatibilityhitCompatibility () const
 
virtual
MeasurementEstimator::Local2DVector 
maximalLocalDisplacement (const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const
 
 OuterEstimator (const OuterDetCompatibility &detCompatibility, const OuterHitCompatibility &hitCompatibility, const edm::EventSetup &iSetup)
 
virtual ~OuterEstimator ()
 
- 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 minTolerance2 () const
 
virtual bool preFilter (const TrajectoryStateOnSurface &, OpaquePayload const &) const
 
virtual ~MeasurementEstimator ()
 

Private Attributes

OuterDetCompatibility theDetCompatibility
 
OuterHitCompatibility theHitCompatibility
 

Additional Inherited Members

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

Detailed Description

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 24 of file OuterEstimator.h.

Constructor & Destructor Documentation

OuterEstimator::OuterEstimator ( const OuterDetCompatibility detCompatibility,
const OuterHitCompatibility hitCompatibility,
const edm::EventSetup iSetup 
)
inline

Definition at line 27 of file OuterEstimator.h.

31  : theDetCompatibility(detCompatibility),
32  theHitCompatibility (hitCompatibility) { }
OuterDetCompatibility theDetCompatibility
OuterHitCompatibility theHitCompatibility
virtual OuterEstimator::~OuterEstimator ( )
inlinevirtual

Definition at line 33 of file OuterEstimator.h.

33 {}

Member Function Documentation

GlobalPoint OuterEstimator::center ( )
inline

Definition at line 48 of file OuterEstimator.h.

48 { return theDetCompatibility.center(); }
GlobalPoint center() const
OuterDetCompatibility theDetCompatibility
virtual OuterEstimator* OuterEstimator::clone ( void  ) const
inlinevirtual

Implements MeasurementEstimator.

Definition at line 50 of file OuterEstimator.h.

50  {
51  return new OuterEstimator(*this);
52  }
OuterEstimator(const OuterDetCompatibility &detCompatibility, const OuterHitCompatibility &hitCompatibility, const edm::EventSetup &iSetup)
const OuterDetCompatibility& OuterEstimator::detCompatibility ( ) const
inline

Definition at line 60 of file OuterEstimator.h.

61  {return theDetCompatibility; }
OuterDetCompatibility theDetCompatibility
virtual std::pair<bool,double> OuterEstimator::estimate ( const TrajectoryStateOnSurface ts,
const TrackingRecHit hit 
) const
inlinevirtual

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 34 of file OuterEstimator.h.

37  {
38  return theHitCompatibility(hit) ? std::make_pair(true,1.) : std::make_pair(false,0.) ;
39  }
OuterHitCompatibility theHitCompatibility
volatile std::atomic< bool > shutdown_flag false
virtual bool OuterEstimator::estimate ( const TrajectoryStateOnSurface ts,
const BoundPlane plane 
) const
inlinevirtual

Definition at line 41 of file OuterEstimator.h.

44  {
45  return theDetCompatibility(plane);
46  }
OuterDetCompatibility theDetCompatibility
const OuterHitCompatibility& OuterEstimator::hitCompatibility ( ) const
inline

Definition at line 62 of file OuterEstimator.h.

63  {return theHitCompatibility; }
OuterHitCompatibility theHitCompatibility
virtual MeasurementEstimator::Local2DVector OuterEstimator::maximalLocalDisplacement ( const TrajectoryStateOnSurface ts,
const BoundPlane plane 
) const
inlinevirtual

Definition at line 54 of file OuterEstimator.h.

References TrajectoryStateOnSurface::globalPosition().

55  {
57  ts.globalPosition(),plane);
58  }
MeasurementEstimator::Local2DVector maximalLocalDisplacement(const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const
OuterDetCompatibility theDetCompatibility
GlobalPoint globalPosition() const

Member Data Documentation

OuterDetCompatibility OuterEstimator::theDetCompatibility
private

Definition at line 66 of file OuterEstimator.h.

OuterHitCompatibility OuterEstimator::theHitCompatibility
private

Definition at line 67 of file OuterEstimator.h.