IdealZDCTrapezoid

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
#ifndef Geometry_ForwardGeometry_IdealZDCTrapezoid_H
#define Geometry_ForwardGeometry_IdealZDCTrapezoid_H 1

#include "Geometry/CaloGeometry/interface/CaloCellGeometry.h"

/** \class IdealZDCTrapezoid
    
  Trapezoid class used for ZDC volumes.  
  
  Required parameters for an ideal zdc trapezoid:
  
  - dz, dx, dy 
  - locaton x, y and z of faceCenter
  - tilt angle of z faces
  
  Total: 7 parameters 
  
  $Revision: 1.9 $
  \author E. Garcia - UIC
  */

class IdealZDCTrapezoid : public CaloCellGeometry {
public:
  typedef CaloCellGeometry::CCGFloat CCGFloat;
  typedef CaloCellGeometry::Pt3D Pt3D;
  typedef CaloCellGeometry::Pt3DVec Pt3DVec;
  typedef CaloCellGeometry::Tr3D Tr3D;

  IdealZDCTrapezoid();

  IdealZDCTrapezoid(const IdealZDCTrapezoid& idzt);

  IdealZDCTrapezoid& operator=(const IdealZDCTrapezoid& idzt);

  IdealZDCTrapezoid(const GlobalPoint& faceCenter, CornersMgr* mgr, const CCGFloat* parm);

  ~IdealZDCTrapezoid() override;

  CCGFloat an() const;
  CCGFloat dx() const;
  CCGFloat dy() const;
  CCGFloat dz() const;
  CCGFloat ta() const;
  CCGFloat dt() const;

  void vocalCorners(Pt3DVec& vec, const CCGFloat* pv, Pt3D& ref) const override;

  static void localCorners(Pt3DVec& vec, const CCGFloat* pv, Pt3D& ref);

private:
  void initCorners(CaloCellGeometry::CornersVec&) override;
};

std::ostream& operator<<(std::ostream& s, const IdealZDCTrapezoid& cell);

#endif