CMS 3D CMS Logo

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 
19 class TruncatedPyramid final : public CaloCellGeometry {
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  ~TruncatedPyramid() override ;
43 
44  GlobalPoint getPosition( CCGFloat depth ) const override ;
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  void vocalCorners( Pt3DVec& vec ,
60  const CCGFloat* pv ,
61  Pt3D& ref ) const override;
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  void getTransform( Tr3D& tr, Pt3DVec* lptr ) const override;
76 
77 private:
78  void initCorners(CornersVec&) override;
79 
80  GlobalVector makeAxis( void );
81 
82  const GlobalPoint backCtr( void ) const;
84  Pt3D m_corOne;
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)
CaloCellGeometry::Tr3D Tr3D
virtual const GlobalPoint & getPosition() const
Returns the position of reference for this cell.
CaloCellGeometry::Pt3D Pt3D
HepGeom::Transform3D Tr3D
std::vector< Pt3D > Pt3DVec
CCGFloat getPhiAxis() const
std::ostream & operator<<(std::ostream &s, const TruncatedPyramid &cell)
static void localCornersSwap(Pt3DVec &vec, const CCGFloat *pv, Pt3D &ref)
CaloCellGeometry::Pt3DVec Pt3DVec
def pv(vc)
Definition: MetAnalyzer.py:7
CCGFloat getThetaAxis() const
TruncatedPyramid & operator=(const TruncatedPyramid &tr)
GlobalVector makeAxis(void)
CaloCellGeometry::CCGFloat CCGFloat
void initCorners(CornersVec &) override
void getTransform(Tr3D &tr, Pt3DVec *lptr) const override
--------— only needed by specific utility; overloaded when needed -—
HepGeom::Point3D< CCGFloat > Pt3D
Definition: EZMgrFL.h:8
void vocalCorners(Pt3DVec &vec, const CCGFloat *pv, Pt3D &ref) const override
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)
~TruncatedPyramid() override
const GlobalPoint backCtr(void) const
static void localCornersReflection(Pt3DVec &vec, const CCGFloat *pv, Pt3D &ref)