CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC4_patch1/src/SimCalorimetry/CaloSimAlgos/interface/CaloShapes.h

Go to the documentation of this file.
00001 #ifndef CaloSimAlgos_CaloShapes_h
00002 #define CaloSimAlgos_CaloShapes_h
00003 
00006 #include "DataFormats/DetId/interface/DetId.h"
00007 class CaloVShape;
00008 
00009 class CaloShapes
00010 {
00011 public:
00012   CaloShapes(): theShape(0) {}
00013   // doesn't take ownership of the pointer
00014   CaloShapes(const CaloVShape * shape) : theShape(shape) {}
00015   virtual const CaloVShape * shape(const DetId & detId) const {return theShape;}
00016 
00017 private:
00018   const CaloVShape * theShape;
00019 };
00020 
00021 #endif
00022