#include <ZetaPixel.h>
Public Member Functions | |
| double | CalculateInsideArcLength (const double circleX, const double circleY, const double circleRadius) const |
| calculate arc length of a circle inside hexagon in units of r*2*pi More... | |
| std::vector< double > | CircleIntersections (const double circleX, const double circleY, const double circleRadius) const |
| get vector of intersections (phi angle) with a circle with More... | |
| const utl::TabulatedFunction & | GetArcLengthFunction () const |
| double | GetCenterX () const |
| double | GetCenterY () const |
| const std::vector< double > & | GetXCoordinates () const |
| get x coordinates of corner points (0-6, see sketch below) More... | |
| const std::vector< double > & | GetYCoordinates () const |
| get y coordinates of corner points (0-6, see sketch below) More... | |
| bool | IsInside (const double x, double y) const |
| check if point (x,y) is inside the hexagon More... | |
| ZetaPixel (const unsigned int pixelId, const double xPos, const double yPos, const double sideLength, const double tiltAngle=0.) | |
| initialize at center position (xPos,yPos) with length sideLength More... | |
Public Attributes | |
| utl::TabulatedFunction | fArcLengthFunction |
| double | fLightFraction |
| unsigned int | fPixelId |
Private Member Functions | |
| void | CalculateCoordinates () |
| ZetaPixel () | |
Private Attributes | |
| double | fCenterX |
| double | fCenterY |
| double | fCosTiltAngle |
| double | fSideLength |
| double | fSinTiltAngle |
| double | fTiltAngle |
| std::vector< double > | fXCoordinates |
| std::vector< double > | fYCoordinates |
Definition at line 8 of file ZetaPixel.h.
| ZetaPixel::ZetaPixel | ( | const unsigned int | pixelId, |
| const double | xPos, | ||
| const double | yPos, | ||
| const double | sideLength, | ||
| const double | tiltAngle = 0. |
||
| ) |
initialize at center position (xPos,yPos) with length sideLength
Definition at line 15 of file ZetaPixel.cc.
References CalculateCoordinates().
|
private |
|
private |
Definition at line 144 of file ZetaPixel.cc.
References degree, fCenterX, fCenterY, fSideLength, fTiltAngle, fXCoordinates, and fYCoordinates.
Referenced by ZetaPixel().
| double ZetaPixel::CalculateInsideArcLength | ( | const double | circleX, |
| const double | circleY, | ||
| const double | circleRadius | ||
| ) | const |
calculate arc length of a circle inside hexagon in units of r*2*pi
Definition at line 33 of file ZetaPixel.cc.
References CircleIntersections(), IsInside(), and utl::kPi.
| vector< double > ZetaPixel::CircleIntersections | ( | const double | circleX, |
| const double | circleY, | ||
| const double | circleRadius | ||
| ) | const |
get vector of intersections (phi angle) with a circle with
Definition at line 62 of file ZetaPixel.cc.
References fXCoordinates, fYCoordinates, IsInside(), utl::kPi, and sqrt().
Referenced by CalculateInsideArcLength().
|
inline |
Definition at line 48 of file ZetaPixel.h.
References fArcLengthFunction.
|
inline |
Definition at line 45 of file ZetaPixel.h.
References fCenterX.
|
inline |
Definition at line 46 of file ZetaPixel.h.
References fCenterY.
|
inline |
get x coordinates of corner points (0-6, see sketch below)
Definition at line 39 of file ZetaPixel.h.
References fXCoordinates.
Referenced by FdEnergyDepositFinderKG::TelescopeDataBin::AddZetaPixel().
|
inline |
get y coordinates of corner points (0-6, see sketch below)
Definition at line 42 of file ZetaPixel.h.
References fYCoordinates.
Referenced by FdEnergyDepositFinderKG::TelescopeDataBin::AddZetaPixel().
| bool ZetaPixel::IsInside | ( | const double | x, |
| double | y | ||
| ) | const |
check if point (x,y) is inside the hexagon
Definition at line 123 of file ZetaPixel.cc.
References fCenterX, fCenterY, fCosTiltAngle, fSideLength, fSinTiltAngle, and utl::kSqrt3.
Referenced by CalculateInsideArcLength(), and CircleIntersections().
|
mutable |
Definition at line 49 of file ZetaPixel.h.
Referenced by GetArcLengthFunction().
|
private |
Definition at line 56 of file ZetaPixel.h.
Referenced by CalculateCoordinates(), GetCenterX(), and IsInside().
|
private |
Definition at line 57 of file ZetaPixel.h.
Referenced by CalculateCoordinates(), GetCenterY(), and IsInside().
|
private |
Definition at line 60 of file ZetaPixel.h.
Referenced by IsInside().
|
mutable |
Definition at line 50 of file ZetaPixel.h.
| unsigned int FdEnergyDepositFinderKG::ZetaPixel::fPixelId |
Definition at line 51 of file ZetaPixel.h.
|
private |
Definition at line 58 of file ZetaPixel.h.
Referenced by CalculateCoordinates(), and IsInside().
|
private |
Definition at line 61 of file ZetaPixel.h.
Referenced by IsInside().
|
private |
Definition at line 59 of file ZetaPixel.h.
Referenced by CalculateCoordinates().
|
private |
Definition at line 92 of file ZetaPixel.h.
Referenced by CalculateCoordinates(), CircleIntersections(), and GetXCoordinates().
|
private |
Definition at line 93 of file ZetaPixel.h.
Referenced by CalculateCoordinates(), CircleIntersections(), and GetYCoordinates().