Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:28:26

0001 #ifndef CaloSimAlgos_CaloShapes_h
0002 #define CaloSimAlgos_CaloShapes_h
0003 
0004 /** A mechanism to let you pick shapes, based on DetId
0005  */
0006 #include "DataFormats/DetId/interface/DetId.h"
0007 class CaloVShape;
0008 
0009 class CaloShapes {
0010 public:
0011   CaloShapes() : theShape(nullptr) {}
0012   // doesn't take ownership of the pointer
0013   CaloShapes(const CaloVShape *shape) : theShape(shape) {}
0014   virtual const CaloVShape *shape(const DetId &detId, bool precise = false) const { return theShape; }
0015   virtual ~CaloShapes() = default;
0016 
0017 private:
0018   const CaloVShape *theShape;
0019 };
0020 
0021 #endif