CMS 3D CMS Logo

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

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