-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33600 from bsunanda/Run3-gex73
Run3-gex73 Remove reference of DDD from plugins/dd4hep/DDEcalEndcapAlgo.cc
- Loading branch information
Showing
4 changed files
with
381 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#ifndef Geometry_EcalCommonDatao_DDEcalEndcapTrapX_h | ||
#define Geometry_EcalCommonDatao_DDEcalEndcapTrapX_h | ||
|
||
#include <vector> | ||
#include "FWCore/MessageLogger/interface/MessageLogger.h" | ||
#include "DetectorDescription/DDCMS/interface/DDRotationMatrix.h" | ||
#include "DetectorDescription/DDCMS/interface/DDTranslation.h" | ||
|
||
// Define Endcap Supercrystal class | ||
|
||
class DDEcalEndcapTrapX { | ||
public: | ||
DDEcalEndcapTrapX(const int hand, const double front, const double rear, const double length); | ||
DDEcalEndcapTrapX() = delete; | ||
|
||
void rotate(const DDRotationMatrix& rot); | ||
void translate(const DDTranslation& trans); | ||
|
||
void rotateX(const double angle); | ||
void rotateY(const double angle); | ||
void translate(); | ||
void moveto(const DDTranslation& frontCentre, const DDTranslation& rearCentre); | ||
double elevationAngle(const DDTranslation& trans); | ||
double polarAngle(const DDTranslation& trans); | ||
double elevationAngle(); | ||
double polarAngle(); | ||
DDTranslation cornerPos(const int icorner); | ||
void cornerPos(const int icorner, const DDTranslation& cc); | ||
DDTranslation centrePos(); | ||
DDTranslation fcentrePos(); | ||
DDTranslation rcentrePos(); | ||
void calculateCorners(); | ||
void calculateCentres(); | ||
DDRotationMatrix rotation() { return m_rotation; } | ||
void print(); | ||
|
||
private: | ||
DDRotationMatrix m_rotation; | ||
DDTranslation m_translation; | ||
|
||
double m_centre[4]; | ||
double m_fcentre[4]; | ||
double m_rcentre[4]; | ||
double m_corners[25]; | ||
double m_front; | ||
double m_rear; | ||
double m_length; | ||
|
||
int m_hand; | ||
int m_update; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.