CMS 3D CMS Logo

CaloShapes.h
Go to the documentation of this file.
1 #ifndef CaloSimAlgos_CaloShapes_h
2 #define CaloSimAlgos_CaloShapes_h
3 
7 class CaloVShape;
8 
9 class CaloShapes
10 {
11 public:
13  // doesn't take ownership of the pointer
14  CaloShapes(const CaloVShape * shape) : theShape(shape) {}
15  virtual const CaloVShape * shape(const DetId & detId, bool precise=false) const {return theShape;}
16  virtual ~CaloShapes() = default;
17 private:
19 };
20 
21 #endif
22 
virtual const CaloVShape * shape(const DetId &detId, bool precise=false) const
Definition: CaloShapes.h:15
virtual ~CaloShapes()=default
Electronic response of the preamp.
Definition: CaloVShape.h:11
#define nullptr
CaloShapes(const CaloVShape *shape)
Definition: CaloShapes.h:14
Definition: DetId.h:18
const CaloVShape * theShape
Definition: CaloShapes.h:18