CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/Geometry/CommonDetUnit/src/GeomDetUnit.cc

Go to the documentation of this file.
00001 #include "Utilities/General/interface/CMSexception.h"
00002 
00003 #include "Geometry/CommonDetUnit/interface/GeomDetUnit.h"
00004 #include "Geometry/CommonDetUnit/interface/GeomDetType.h"
00005 
00006 GeomDetUnit::GeomDetUnit( BoundPlane* sp) : GeomDet(sp)
00007 {}
00008 
00009 GeomDetUnit::GeomDetUnit( const ReferenceCountingPointer<BoundPlane>& plane) :
00010   GeomDet(plane) {}
00011 
00012 GeomDetUnit::~GeomDetUnit()
00013 {}
00014 
00015 GeomDet::SubDetector GeomDetUnit::subDetector() const {
00016   return type().subDetector();
00017 }
00018 
00019 void GeomDetUnit::setSurfaceDeformation(const SurfaceDeformation * /*deformation*/)
00020 {
00021   throw cms::Exception("Geometry") 
00022     << "setting SurfaceDeformation not implemented for DetId "
00023     << geographicalId().rawId() << " det="
00024     << geographicalId().det() << " subdetId="
00025     << geographicalId().subdetId();
00026 }