CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TruncatedPyramid.h
Go to the documentation of this file.
1 #ifndef TruncatedPyramid_h
2 #define TruncatedPyramid_h
3 
5 #include <CLHEP/Geometry/Point3D.h>
6 #include <CLHEP/Geometry/Plane3D.h>
7 #include <CLHEP/Geometry/Vector3D.h>
8 #include <CLHEP/Geometry/Transform3D.h>
9 #include <vector>
10 
20 public:
21 
26 
27  TruncatedPyramid( void );
28 
29  TruncatedPyramid( const TruncatedPyramid& tr ) ;
30 
32 
34  const GlobalPoint& fCtr ,
35  const GlobalPoint& bCtr ,
36  const GlobalPoint& cor1 ,
37  const CCGFloat* parV ) ;
38 
39  TruncatedPyramid( const CornersVec& corn ,
40  const CCGFloat* par ) ;
41 
42  virtual ~TruncatedPyramid() ;
43 
44  const GlobalPoint getPosition( CCGFloat depth ) const ;
45 
46  // Return thetaAxis polar angle of axis of the crystal
47  CCGFloat getThetaAxis() const ;
48 
49  // Return phiAxis azimuthal angle of axis of the crystal
50  CCGFloat getPhiAxis() const ;
51 
52  const GlobalVector& axis() const ;
53 
54  // for geometry creation in other classes
55  static void createCorners( const std::vector<CCGFloat>& pv ,
56  const Tr3D& tr ,
57  std::vector<GlobalPoint>& co ) ;
58 
59  virtual void vocalCorners( Pt3DVec& vec ,
60  const CCGFloat* pv ,
61  Pt3D& ref ) const ;
62 
63  static void localCorners( Pt3DVec& vec ,
64  const CCGFloat* pv ,
65  Pt3D& ref ) ;
66 
67  static void localCornersReflection( Pt3DVec& vec ,
68  const CCGFloat* pv ,
69  Pt3D& ref ) ;
70 
71  static void localCornersSwap( Pt3DVec& vec ,
72  const CCGFloat* pv ,
73  Pt3D& ref ) ;
74 
75  virtual void getTransform( Tr3D& tr, Pt3DVec* lptr ) const ;
76 
77 private:
78  virtual void initCorners(CornersVec&) override;
79 
80  GlobalVector makeAxis( void );
81 
82  const GlobalPoint backCtr( void ) const;
85 };
86 
87 std::ostream& operator<<( std::ostream& s, const TruncatedPyramid& cell ) ;
88 
89 #endif
static void localCorners(Pt3DVec &vec, const CCGFloat *pv, Pt3D &ref)
#define GCC11_FINAL
CaloCellGeometry::Tr3D Tr3D
virtual void getTransform(Tr3D &tr, Pt3DVec *lptr) const
--------— only needed by specific utility; overloaded when needed -—
CaloCellGeometry::Pt3D Pt3D
HepGeom::Transform3D Tr3D
std::vector< Pt3D > Pt3DVec
CCGFloat getPhiAxis() const
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
virtual ~TruncatedPyramid()
static void localCornersSwap(Pt3DVec &vec, const CCGFloat *pv, Pt3D &ref)
virtual void vocalCorners(Pt3DVec &vec, const CCGFloat *pv, Pt3D &ref) const
CaloCellGeometry::Pt3DVec Pt3DVec
CCGFloat getThetaAxis() const
TruncatedPyramid & operator=(const TruncatedPyramid &tr)
GlobalVector makeAxis(void)
CaloCellGeometry::CCGFloat CCGFloat
virtual void initCorners(CornersVec &) override
HepGeom::Point3D< CCGFloat > Pt3D
Definition: EZMgrFL.h:8
A base class to handle the particular shape of Ecal Xtals. Taken from ORCA Calorimetry Code...
GlobalVector m_axis
const GlobalVector & axis() const
static void createCorners(const std::vector< CCGFloat > &pv, const Tr3D &tr, std::vector< GlobalPoint > &co)
const GlobalPoint backCtr(void) const
const GlobalPoint & getPosition() const
Returns the position of reference for this cell.
static void localCornersReflection(Pt3DVec &vec, const CCGFloat *pv, Pt3D &ref)