CMS 3D CMS Logo

DDEcalEndcapTrapX.h
Go to the documentation of this file.
1 #ifndef Geometry_EcalCommonDatao_DDEcalEndcapTrapX_h
2 #define Geometry_EcalCommonDatao_DDEcalEndcapTrapX_h
3 
4 #include <vector>
8 
9 // Define Endcap Supercrystal class
10 
12 public:
13  DDEcalEndcapTrapX(const int hand, const double front, const double rear, const double length);
14  DDEcalEndcapTrapX() = delete;
15 
16  void rotate(const DDRotationMatrix& rot);
17  void translate(const DDTranslation& trans);
18 
19  void rotateX(const double angle);
20  void rotateY(const double angle);
21  void translate();
22  void moveto(const DDTranslation& frontCentre, const DDTranslation& rearCentre);
23  double elevationAngle(const DDTranslation& trans);
24  double polarAngle(const DDTranslation& trans);
25  double elevationAngle();
26  double polarAngle();
27  DDTranslation cornerPos(const int icorner);
28  void cornerPos(const int icorner, const DDTranslation& cc);
32  void calculateCorners();
33  void calculateCentres();
35  void print();
36 
37 private:
40 
41  double m_centre[4];
42  double m_fcentre[4];
43  double m_rcentre[4];
44  double m_corners[25];
45  double m_front;
46  double m_rear;
47  double m_length;
48 
49  int m_hand;
50  int m_update;
51 };
52 
53 #endif
DDEcalEndcapTrapX::calculateCorners
void calculateCorners()
MessageLogger.h
DDEcalEndcapTrapX::m_corners
double m_corners[25]
Definition: DDEcalEndcapTrapX.h:44
DDEcalEndcapTrapX::elevationAngle
double elevationAngle()
Definition: DDEcalEndcapTrapX.cc:243
DDEcalEndcapTrapX::m_rotation
DDRotationMatrix m_rotation
Definition: DDEcalEndcapTrapX.h:38
DDEcalEndcapTrapX::m_update
int m_update
Definition: DDEcalEndcapTrapX.h:50
DDEcalEndcapTrapX::centrePos
DDTranslation centrePos()
Definition: DDEcalEndcapTrapX.cc:214
DDEcalEndcapTrapX::calculateCentres
void calculateCentres()
Definition: DDEcalEndcapTrapX.cc:170
DDTranslation
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Definition: DDTranslation.h:7
DDEcalEndcapTrapX::translate
void translate()
Definition: DDEcalEndcapTrapX.cc:99
DDEcalEndcapTrapX::m_rear
double m_rear
Definition: DDEcalEndcapTrapX.h:46
DDEcalEndcapTrapX::m_centre
double m_centre[4]
Definition: DDEcalEndcapTrapX.h:41
DDEcalEndcapTrapX::polarAngle
double polarAngle()
Definition: DDEcalEndcapTrapX.cc:259
DDEcalEndcapTrapX
Definition: DDEcalEndcapTrapX.h:11
DDEcalEndcapTrapX::print
void print()
Definition: DDEcalEndcapTrapX.cc:267
cc
DDEcalEndcapTrapX::m_fcentre
double m_fcentre[4]
Definition: DDEcalEndcapTrapX.h:42
DDEcalEndcapTrapX::rotateX
void rotateX(const double angle)
Definition: DDEcalEndcapTrapX.cc:151
DDEcalEndcapTrapX::DDEcalEndcapTrapX
DDEcalEndcapTrapX()=delete
DDRotationMatrix
ROOT::Math::Rotation3D DDRotationMatrix
A DDRotationMatrix is currently implemented with a ROOT Rotation3D.
Definition: DDRotationMatrix.h:8
DDEcalEndcapTrapX::rotate
void rotate(const DDRotationMatrix &rot)
Definition: DDEcalEndcapTrapX.cc:74
DDEcalEndcapTrapX::m_front
double m_front
Definition: DDEcalEndcapTrapX.h:45
DDEcalEndcapTrapX::cornerPos
DDTranslation cornerPos(const int icorner)
Definition: DDEcalEndcapTrapX.cc:197
DDEcalEndcapTrapX::fcentrePos
DDTranslation fcentrePos()
Definition: DDEcalEndcapTrapX.cc:221
makeMuonMisalignmentScenario.rot
rot
Definition: makeMuonMisalignmentScenario.py:322
angle
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11
DDEcalEndcapTrapX::m_translation
DDTranslation m_translation
Definition: DDEcalEndcapTrapX.h:39
DDEcalEndcapTrapX::m_length
double m_length
Definition: DDEcalEndcapTrapX.h:47
DDEcalEndcapTrapX::rotation
DDRotationMatrix rotation()
Definition: DDEcalEndcapTrapX.h:34
DDEcalEndcapTrapX::moveto
void moveto(const DDTranslation &frontCentre, const DDTranslation &rearCentre)
Definition: DDEcalEndcapTrapX.cc:120
DDEcalEndcapTrapX::m_rcentre
double m_rcentre[4]
Definition: DDEcalEndcapTrapX.h:43
DDEcalEndcapTrapX::rcentrePos
DDTranslation rcentrePos()
Definition: DDEcalEndcapTrapX.cc:228
DDTranslation.h
DDEcalEndcapTrapX::rotateY
void rotateY(const double angle)
Definition: DDEcalEndcapTrapX.cc:161
DDEcalEndcapTrapX::m_hand
int m_hand
Definition: DDEcalEndcapTrapX.h:49
DDRotationMatrix.h