#include <DDEcalEndcapTrap.h>
Public Member Functions | |
void | calculateCentres () |
void | calculateCorners () |
DDTranslation | centrePos () |
DDTranslation | cornerPos (const int icorner) |
void | cornerPos (const int icorner, const DDTranslation &cc) |
DDEcalEndcapTrap (const int hand, const double front, const double rear, const double length) | |
double | elevationAngle (const DDTranslation &trans) |
double | elevationAngle () |
DDTranslation | fcentrePos () |
void | moveto (const DDTranslation &frontCentre, const DDTranslation &rearCentre) |
double | polarAngle (const DDTranslation &trans) |
double | polarAngle () |
void | print () |
DDTranslation | rcentrePos () |
void | rotate (const DDRotationMatrix &rot) |
void | rotate (const DDTranslation &frontCentre, const DDTranslation &rearCentre) |
void | rotateX (const double angle) |
void | rotateY (const double angle) |
DDRotationMatrix | rotation () |
void | translate (const DDTranslation &trans) |
void | translate () |
Private Member Functions | |
DDEcalEndcapTrap () | |
Private Attributes | |
double | m_centre [4] |
double | m_corners [25] |
double | m_fcentre [4] |
double | m_front |
int | m_hand |
double | m_length |
double | m_rcentre [4] |
double | m_rear |
DDRotationMatrix | m_rotation |
DDTranslation | m_translation |
int | m_update |
Definition at line 25 of file DDEcalEndcapTrap.h.
DDEcalEndcapTrap::DDEcalEndcapTrap | ( | const int | hand, |
const double | front, | ||
const double | rear, | ||
const double | length | ||
) |
Definition at line 5 of file DDEcalEndcapTrap.cc.
References calculateCentres(), m_corners, m_front, m_hand, m_length, m_rear, and translate().
|
private |
void DDEcalEndcapTrap::calculateCentres | ( | ) |
Definition at line 194 of file DDEcalEndcapTrap.cc.
References m_centre, m_corners, m_fcentre, and m_rcentre.
Referenced by DDEcalEndcapTrap(), rotate(), and translate().
void DDEcalEndcapTrap::calculateCorners | ( | ) |
DDTranslation DDEcalEndcapTrap::centrePos | ( | ) |
Definition at line 251 of file DDEcalEndcapTrap.cc.
References m_centre.
Referenced by DDEcalEndcapAlgo::EEPositionCRs(), DDEcalEndcapAlgo::execute(), moveto(), print(), and translate().
DDTranslation DDEcalEndcapTrap::cornerPos | ( | const int | icorner | ) |
Definition at line 225 of file DDEcalEndcapTrap.cc.
References m_corners.
Referenced by print(), rotate(), and translate().
void DDEcalEndcapTrap::cornerPos | ( | const int | icorner, |
const DDTranslation & | cc | ||
) |
double DDEcalEndcapTrap::elevationAngle | ( | const DDTranslation & | trans | ) |
Definition at line 282 of file DDEcalEndcapTrap.cc.
double DDEcalEndcapTrap::elevationAngle | ( | ) |
Definition at line 292 of file DDEcalEndcapTrap.cc.
References fcentrePos(), and rcentrePos().
Referenced by moveto().
DDTranslation DDEcalEndcapTrap::fcentrePos | ( | ) |
Definition at line 260 of file DDEcalEndcapTrap.cc.
References m_fcentre.
Referenced by elevationAngle(), polarAngle(), and print().
void DDEcalEndcapTrap::moveto | ( | const DDTranslation & | frontCentre, |
const DDTranslation & | rearCentre | ||
) |
Definition at line 140 of file DDEcalEndcapTrap.cc.
References centrePos(), elevationAngle(), polarAngle(), rotateX(), rotateY(), and translate().
Referenced by DDEcalEndcapAlgo::EEPositionCRs(), and DDEcalEndcapAlgo::execute().
double DDEcalEndcapTrap::polarAngle | ( | const DDTranslation & | trans | ) |
Definition at line 302 of file DDEcalEndcapTrap.cc.
double DDEcalEndcapTrap::polarAngle | ( | ) |
Definition at line 312 of file DDEcalEndcapTrap.cc.
References fcentrePos(), and rcentrePos().
Referenced by moveto().
void DDEcalEndcapTrap::print | ( | void | ) |
Definition at line 322 of file DDEcalEndcapTrap.cc.
References centrePos(), cornerPos(), fcentrePos(), and rcentrePos().
DDTranslation DDEcalEndcapTrap::rcentrePos | ( | ) |
Definition at line 271 of file DDEcalEndcapTrap.cc.
References m_rcentre.
Referenced by elevationAngle(), polarAngle(), and print().
void DDEcalEndcapTrap::rotate | ( | const DDRotationMatrix & | rot | ) |
Definition at line 95 of file DDEcalEndcapTrap.cc.
References calculateCentres(), cornerPos(), and m_rotation.
Referenced by rotateX(), and rotateY().
void DDEcalEndcapTrap::rotate | ( | const DDTranslation & | frontCentre, |
const DDTranslation & | rearCentre | ||
) |
Definition at line 85 of file DDEcalEndcapTrap.cc.
void DDEcalEndcapTrap::rotateX | ( | const double | angle | ) |
Definition at line 168 of file DDEcalEndcapTrap.cc.
Referenced by moveto().
void DDEcalEndcapTrap::rotateY | ( | const double | angle | ) |
Definition at line 182 of file DDEcalEndcapTrap.cc.
Referenced by moveto().
|
inline |
Definition at line 59 of file DDEcalEndcapTrap.h.
References m_rotation.
Referenced by DDEcalEndcapAlgo::EEPositionCRs(), and DDEcalEndcapAlgo::execute().
void DDEcalEndcapTrap::translate | ( | const DDTranslation & | trans | ) |
Definition at line 123 of file DDEcalEndcapTrap.cc.
References calculateCentres(), cornerPos(), and m_translation.
Referenced by DDEcalEndcapAlgo::execute().
void DDEcalEndcapTrap::translate | ( | ) |
Definition at line 116 of file DDEcalEndcapTrap.cc.
References centrePos().
Referenced by DDEcalEndcapTrap(), and moveto().
|
private |
Definition at line 73 of file DDEcalEndcapTrap.h.
Referenced by calculateCentres(), and centrePos().
|
private |
Definition at line 76 of file DDEcalEndcapTrap.h.
Referenced by calculateCentres(), cornerPos(), and DDEcalEndcapTrap().
|
private |
Definition at line 74 of file DDEcalEndcapTrap.h.
Referenced by calculateCentres(), and fcentrePos().
|
private |
Definition at line 66 of file DDEcalEndcapTrap.h.
Referenced by DDEcalEndcapTrap().
|
private |
Definition at line 69 of file DDEcalEndcapTrap.h.
Referenced by DDEcalEndcapTrap().
|
private |
Definition at line 68 of file DDEcalEndcapTrap.h.
Referenced by DDEcalEndcapTrap().
|
private |
Definition at line 75 of file DDEcalEndcapTrap.h.
Referenced by calculateCentres(), and rcentrePos().
|
private |
Definition at line 67 of file DDEcalEndcapTrap.h.
Referenced by DDEcalEndcapTrap().
|
private |
Definition at line 70 of file DDEcalEndcapTrap.h.
Referenced by rotate(), and rotation().
|
private |
Definition at line 71 of file DDEcalEndcapTrap.h.
Referenced by translate().
|
private |
Definition at line 78 of file DDEcalEndcapTrap.h.