CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Friends

GeomDetUnit Class Reference

#include <GeomDetUnit.h>

Inheritance diagram for GeomDetUnit:
GeomDet CSCLayer DTLayer PixelGeomDetUnit RPCRoll StripGeomDetUnit

List of all members.

Public Member Functions

virtual const GeomDetcomponent (DetId id) const
 Returns a component GeomDet given its DetId, if existing.
virtual std::vector< const
GeomDet * > 
components () const
 DetUnit does not have components.
 GeomDetUnit (const ReferenceCountingPointer< BoundPlane > &plane)
 GeomDetUnit (BoundPlane *sp)
virtual SubDetector subDetector () const
 Which subdetector.
virtual const SurfaceDeformationsurfaceDeformation () const
virtual const Topologytopology () const =0
virtual const GeomDetTypetype () const =0
virtual ~GeomDetUnit ()

Private Member Functions

virtual void setSurfaceDeformation (const SurfaceDeformation *deformation)

Friends

class DetPositioner
 Alignment part of interface, available only to friend.

Detailed Description

Definition at line 13 of file GeomDetUnit.h.


Constructor & Destructor Documentation

GeomDetUnit::GeomDetUnit ( BoundPlane sp) [explicit]

Definition at line 6 of file GeomDetUnit.cc.

                                        : GeomDet(sp)
{}
GeomDetUnit::GeomDetUnit ( const ReferenceCountingPointer< BoundPlane > &  plane) [explicit]

Definition at line 9 of file GeomDetUnit.cc.

                                                                           :
  GeomDet(plane) {}
GeomDetUnit::~GeomDetUnit ( ) [virtual]

Definition at line 12 of file GeomDetUnit.cc.

{}

Member Function Documentation

virtual const GeomDet* GeomDetUnit::component ( DetId  id) const [inline, virtual]

Returns a component GeomDet given its DetId, if existing.

Reimplemented from GeomDet.

Definition at line 30 of file GeomDetUnit.h.

{return 0;}
virtual std::vector< const GeomDet*> GeomDetUnit::components ( ) const [inline, virtual]

DetUnit does not have components.

Implements GeomDet.

Reimplemented in DTLayer.

Definition at line 26 of file GeomDetUnit.h.

                                                        {
    return std::vector< const GeomDet*>();
  }
void GeomDetUnit::setSurfaceDeformation ( const SurfaceDeformation deformation) [private, virtual]

set the SurfaceDeformation for this GeomDetUnit. Does not affect the SurfaceDeformation of components (if any). Throws if not implemented in derived class.

Reimplemented in PixelGeomDetUnit, and StripGeomDetUnit.

Definition at line 19 of file GeomDetUnit.cc.

References DetId::det(), Exception, GeomDet::geographicalId(), DetId::rawId(), and DetId::subdetId().

Referenced by DetPositioner::setSurfaceDeformation().

{
  throw cms::Exception("Geometry") 
    << "setting SurfaceDeformation not implemented for DetId "
    << geographicalId().rawId() << " det="
    << geographicalId().det() << " subdetId="
    << geographicalId().subdetId();
}
GeomDet::SubDetector GeomDetUnit::subDetector ( ) const [virtual]

Which subdetector.

Implements GeomDet.

Definition at line 15 of file GeomDetUnit.cc.

References GeomDetType::subDetector(), and type().

Referenced by SiStripMonitorMuonHLT::GeometryFromTrackGeom(), SiStripMonitorMuonHLT::Normalizer(), and GluedGeomDet::subDetector().

                                                  {
  return type().subDetector();
}
virtual const SurfaceDeformation* GeomDetUnit::surfaceDeformation ( ) const [inline, virtual]

Return pointer to surface deformation. Defaults to "null" if not reimplemented in the derived classes.

Reimplemented in PixelGeomDetUnit, and StripGeomDetUnit.

Definition at line 37 of file GeomDetUnit.h.

Referenced by AlignableDetUnit::AlignableDetUnit().

{ return 0; }
virtual const Topology& GeomDetUnit::topology ( ) const [pure virtual]
virtual const GeomDetType& GeomDetUnit::type ( ) const [pure virtual]

Friends And Related Function Documentation

friend class DetPositioner [friend]

Alignment part of interface, available only to friend.

Reimplemented from GeomDet.

Definition at line 42 of file GeomDetUnit.h.