CMS 3D CMS Logo

Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes

InvalidTransientRecHit Class Reference

#include <InvalidTransientRecHit.h>

Inheritance diagram for InvalidTransientRecHit:
TransientTrackingRecHitByValue< InvalidTrackingRecHit > TransientTrackingRecHit TrackingRecHit ReferenceCountedPoolAllocated BlockWipedPoolAllocated

List of all members.

Public Types

typedef
TransientTrackingRecHitByValue
< InvalidTrackingRecHit
Base
typedef TrackingRecHit::Type Type

Public Member Functions

const Surfacesurface () const

Static Public Member Functions

static RecHitPointer build (const GeomDet *geom, Type type=TrackingRecHit::missing, const DetLayer *layer=0)

Private Member Functions

virtual InvalidTransientRecHitclone () const
 InvalidTransientRecHit (const GeomDet *geom, const DetLayer *layer, Type type)
 invalid RecHit - has only GeomDet and Type

Private Attributes

const DetLayerlayer_

Detailed Description

Definition at line 9 of file InvalidTransientRecHit.h.


Member Typedef Documentation

Definition at line 11 of file InvalidTransientRecHit.h.

Type of hits: valid = valid hit missing = detector is good, but no rec hit found inactive = detector is off, so there was no hope bad = there were many bad strips within the ellipse (in Tracker) = hit is compatible with the trajectory, but chi2 is too large (in Muon System)

Reimplemented from TransientTrackingRecHitByValue< InvalidTrackingRecHit >.

Definition at line 12 of file InvalidTransientRecHit.h.


Constructor & Destructor Documentation

InvalidTransientRecHit::InvalidTransientRecHit ( const GeomDet geom,
const DetLayer layer,
Type  type 
) [explicit, private]

invalid RecHit - has only GeomDet and Type

Definition at line 5 of file InvalidTransientRecHit.cc.

Referenced by build(), and clone().

                                                                                                       :
  Base( geom, InvalidTrackingRecHit( geom == 0 ? DetId(0) : geom->geographicalId(), type)), 
  layer_(layer)
{
}

Member Function Documentation

static RecHitPointer InvalidTransientRecHit::build ( const GeomDet geom,
Type  type = TrackingRecHit::missing,
const DetLayer layer = 0 
) [inline, static]
virtual InvalidTransientRecHit* InvalidTransientRecHit::clone ( void  ) const [inline, private, virtual]

Reimplemented from TransientTrackingRecHitByValue< InvalidTrackingRecHit >.

Definition at line 27 of file InvalidTransientRecHit.h.

References InvalidTransientRecHit().

{return new InvalidTransientRecHit(*this);}
const Surface * InvalidTransientRecHit::surface ( ) const [virtual]

Reimplemented from TransientTrackingRecHit.

Definition at line 11 of file InvalidTransientRecHit.cc.

References TransientTrackingRecHit::det(), layer_, GeometricSearchDet::surface(), and GeomDet::surface().

                                                     {
  if (det() != 0 )  return &(det()->surface()); 
  else if (layer_ != 0)  return &(layer_->surface()); 
  else return 0;
}

Member Data Documentation

Definition at line 21 of file InvalidTransientRecHit.h.

Referenced by surface().