Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:15:28

0001 #ifndef Geometry_TrackerNumberingBuilder_TrackerShapeToBounds_H
0002 #define Geometry_TrackerNumberingBuilder_TrackerShapeToBounds_H
0003 
0004 #include "DataFormats/GeometrySurface/interface/Bounds.h"
0005 #include "DetectorDescription/DDCMS/interface/DDSolidShapes.h"
0006 #include <vector>
0007 #include <algorithm>
0008 /**
0009  * Converts DDSolid volumes to Bounds
0010  */
0011 class TrackerShapeToBounds {
0012 public:
0013   /**
0014    *buildBounds() return the Bounds.
0015    */
0016   Bounds* buildBounds(const cms::DDSolidShape&, const std::vector<double>&) const;
0017 
0018 private:
0019   Bounds* buildBox(const std::vector<double>&) const;
0020   Bounds* buildTrap(const std::vector<double>&) const;
0021   Bounds* buildOpen() const;
0022 };
0023 
0024 #endif