Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:14:38

0001 #ifndef Geometry_ForwardGeometry_IdealCastorTrapezoid_H
0002 #define Geometry_ForwardGeometry_IdealCastorTrapezoid_H 1
0003 
0004 #include "Geometry/CaloGeometry/interface/CaloCellGeometry.h"
0005 
0006 /** \class IdealCastorTrapezoid
0007     
0008   Trapezoid class used for CASTOR volumes.  
0009   
0010   Required parameters for an ideal trapezoid:
0011   
0012   - dxl, dxh, dh, dz, z-face tilt-angle, dR
0013     dxl is the HALFlength of the side at smaller y
0014     dxh is the HALFlength of the side at larger y
0015     dxl and dxh are both either positive or negative;
0016         positive means a "right-handed" trapezoid cross section
0017         negative means a "left-handed" trapezoid cross section
0018     dh is the HALFheight of the actual side, not its projection
0019     dz is the HALFlength in z of each long side
0020     an is the angle of tilt in the z direction 
0021     dR is the length of the line in the xy plane from the origin
0022         to the perpendicular intersection with the extended edge
0023         at the lower-y side of the trapezoid
0024 
0025   - locaton x, y and z of faceCenter
0026   
0027   Total: 6+3 parameters 
0028   
0029   $Revision: 1.12 $
0030   \author P. Katsas - UoA
0031   */
0032 class IdealCastorTrapezoid : public CaloCellGeometry {
0033 public:
0034   typedef CaloCellGeometry::CCGFloat CCGFloat;
0035   typedef CaloCellGeometry::Pt3D Pt3D;
0036   typedef CaloCellGeometry::Pt3DVec Pt3DVec;
0037   typedef CaloCellGeometry::Tr3D Tr3D;
0038 
0039   IdealCastorTrapezoid();
0040 
0041   IdealCastorTrapezoid(const IdealCastorTrapezoid& idct);
0042 
0043   IdealCastorTrapezoid& operator=(const IdealCastorTrapezoid& idct);
0044 
0045   IdealCastorTrapezoid(const GlobalPoint& faceCenter, CornersMgr* mgr, const CCGFloat* parm);
0046 
0047   ~IdealCastorTrapezoid() override;
0048 
0049   CCGFloat dxl() const;
0050   CCGFloat dxh() const;
0051   CCGFloat dx() const;
0052   CCGFloat dh() const;
0053   CCGFloat dy() const;
0054   CCGFloat dz() const;
0055   CCGFloat dhz() const;
0056   CCGFloat dzb() const;
0057   CCGFloat dzs() const;
0058   CCGFloat an() const;
0059   CCGFloat dR() const;
0060 
0061   using CaloCellGeometry::vocalCorners;
0062   void vocalCorners(Pt3DVec& vec, const CCGFloat* pv, Pt3D& ref) const override;
0063 
0064   static void localCorners(Pt3DVec& vec, const CCGFloat* pv, Pt3D& ref);
0065 
0066 private:
0067   void initCorners(CornersVec&) override;
0068 };
0069 
0070 std::ostream& operator<<(std::ostream& s, const IdealCastorTrapezoid& cell);
0071 
0072 #endif