Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 10:49:56

0001 #ifndef Geom_BoundSpan_H
0002 #define Geom_BoundSpan_H
0003 
0004 /**
0005  *  compute the span of a bound surface in the global space
0006  *
0007  *
0008  */
0009 
0010 #include <utility>
0011 class Surface;
0012 
0013 class BoundSpan {
0014 public:
0015   void compute(Surface const& plane);
0016 
0017   BoundSpan() : m_phiSpan(0., 0.), m_zSpan(0., 0.), m_rSpan(0., 0.) {}
0018 
0019   std::pair<float, float> const& phiSpan() const { return m_phiSpan; }
0020   std::pair<float, float> const& zSpan() const { return m_zSpan; }
0021   std::pair<float, float> const& rSpan() const { return m_rSpan; }
0022 
0023 private:
0024   std::pair<float, float> m_phiSpan;
0025   std::pair<float, float> m_zSpan;
0026   std::pair<float, float> m_rSpan;
0027 };
0028 
0029 #endif