00001 #include "TrackingTools/TransientTrackingRecHit/interface/InvalidTransientRecHit.h" 00002 #include "DataFormats/GeometrySurface/interface/Surface.h" 00003 00004 00005 InvalidTransientRecHit::InvalidTransientRecHit( const GeomDet* geom, const DetLayer * layer, Type type ) : 00006 Base( geom, InvalidTrackingRecHit( geom == 0 ? DetId(0) : geom->geographicalId(), type)), 00007 layer_(layer) 00008 { 00009 } 00010 00011 const Surface* InvalidTransientRecHit::surface() const { 00012 if (det() != 0 ) return &(det()->surface()); 00013 else if (layer_ != 0) return &(layer_->surface()); 00014 else return 0; 00015 } 00016