CMS 3D CMS Logo

DDEcalEndcapTrap.h
Go to the documentation of this file.
1 #ifndef EcalAlgo_DDEcalEndcapTrap_h
2 #define EcalAlgo_DDEcalEndcapTrap_h
3 
4 #include <vector>
8 
9 // Define Endcap Supercrystal class
10 
12 public:
13  DDEcalEndcapTrap(const int hand, const double front, const double rear, const double length);
14  DDEcalEndcapTrap() = delete;
15 
16  void rotate(const DDRotationMatrix& rot);
17  void rotate(const DDTranslation& frontCentre, const DDTranslation& rearCentre);
18  void translate(const DDTranslation& trans);
19 
20  void rotateX(const double angle);
21  void rotateY(const double angle);
22  void translate();
23  void moveto(const DDTranslation& frontCentre, const DDTranslation& rearCentre);
24  double elevationAngle(const DDTranslation& trans);
25  double polarAngle(const DDTranslation& trans);
26  double elevationAngle();
27  double polarAngle();
28  DDTranslation cornerPos(const int icorner);
29  void cornerPos(const int icorner, const DDTranslation& cc);
33  void calculateCorners();
34  void calculateCentres();
36  void print();
37 
38 private:
41 
42  double m_centre[4];
43  double m_fcentre[4];
44  double m_rcentre[4];
45  double m_corners[25];
46  double m_front;
47  double m_rear;
48  double m_length;
49 
50  int m_hand;
51  int m_update;
52 };
53 
54 #endif
DDEcalEndcapTrap::rotation
DDRotationMatrix rotation()
Definition: DDEcalEndcapTrap.h:35
DDEcalEndcapTrap::m_corners
double m_corners[25]
Definition: DDEcalEndcapTrap.h:45
DDEcalEndcapTrap::m_length
double m_length
Definition: DDEcalEndcapTrap.h:48
DDEcalEndcapTrap::m_fcentre
double m_fcentre[4]
Definition: DDEcalEndcapTrap.h:43
MessageLogger.h
DDEcalEndcapTrap::m_hand
int m_hand
Definition: DDEcalEndcapTrap.h:50
DDEcalEndcapTrap::calculateCorners
void calculateCorners()
DDEcalEndcapTrap::m_centre
double m_centre[4]
Definition: DDEcalEndcapTrap.h:42
DDEcalEndcapTrap::DDEcalEndcapTrap
DDEcalEndcapTrap()=delete
DDEcalEndcapTrap::calculateCentres
void calculateCentres()
Definition: DDEcalEndcapTrap.cc:176
DDEcalEndcapTrap::m_rcentre
double m_rcentre[4]
Definition: DDEcalEndcapTrap.h:44
DDRotationMatrix
ROOT::Math::Rotation3D DDRotationMatrix
A DDRotationMatrix is currently implemented with a ROOT Rotation3D.
Definition: DDRotationMatrix.h:8
DDEcalEndcapTrap
Definition: DDEcalEndcapTrap.h:11
DDEcalEndcapTrap::m_translation
DDTranslation m_translation
Definition: DDEcalEndcapTrap.h:40
DDTranslation
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Definition: DDTranslation.h:7
DDEcalEndcapTrap::rcentrePos
DDTranslation rcentrePos()
Definition: DDEcalEndcapTrap.cc:234
DDEcalEndcapTrap::rotate
void rotate(const DDRotationMatrix &rot)
Definition: DDEcalEndcapTrap.cc:94
DDEcalEndcapTrap::print
void print()
Definition: DDEcalEndcapTrap.cc:273
DDEcalEndcapTrap::m_rotation
DDRotationMatrix m_rotation
Definition: DDEcalEndcapTrap.h:39
DDEcalEndcapTrap::fcentrePos
DDTranslation fcentrePos()
Definition: DDEcalEndcapTrap.cc:227
DDEcalEndcapTrap::translate
void translate()
Definition: DDEcalEndcapTrap.cc:113
DDEcalEndcapTrap::m_update
int m_update
Definition: DDEcalEndcapTrap.h:51
DDEcalEndcapTrap::elevationAngle
double elevationAngle()
Definition: DDEcalEndcapTrap.cc:249
DDTranslation.h
DDEcalEndcapTrap::m_front
double m_front
Definition: DDEcalEndcapTrap.h:46
DDEcalEndcapTrap::polarAngle
double polarAngle()
Definition: DDEcalEndcapTrap.cc:265
cc
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
DDEcalEndcapTrap::rotateY
void rotateY(const double angle)
Definition: DDEcalEndcapTrap.cc:167
DDEcalEndcapTrap::centrePos
DDTranslation centrePos()
Definition: DDEcalEndcapTrap.cc:220
DDEcalEndcapTrap::moveto
void moveto(const DDTranslation &frontCentre, const DDTranslation &rearCentre)
Definition: DDEcalEndcapTrap.cc:132
DDEcalEndcapTrap::rotateX
void rotateX(const double angle)
Definition: DDEcalEndcapTrap.cc:157
DDEcalEndcapTrap::cornerPos
DDTranslation cornerPos(const int icorner)
Definition: DDEcalEndcapTrap.cc:203
DDEcalEndcapTrap::m_rear
double m_rear
Definition: DDEcalEndcapTrap.h:47
DDRotationMatrix.h