ATLAS Offline Software
|
#include <DiamondBounds.h>
Public Types | |
enum | BoundValues { bv_minHalfX = 0, bv_medHalfX = 1, bv_maxHalfX = 2, bv_halfY1 = 3, bv_halfY2 = 4, bv_length = 5 } |
BoundValues for better readability. More... | |
enum | BoundsType { Cone = 0, Cylinder = 1, Diamond = 2, Disc = 3, Ellipse = 5, Rectangle = 6, RotatedTrapezoid = 7, Trapezoid = 8, Triangle = 9, DiscTrapezoidal = 10, Annulus = 11, Other = 12 } |
Public Member Functions | |
DiamondBounds () | |
Default Constructor, needed for persistency. More... | |
DiamondBounds (const DiamondBounds &diabo)=default | |
Copy constructor. More... | |
DiamondBounds & | operator= (const DiamondBounds &sbo)=default |
Assignment operator. More... | |
DiamondBounds (DiamondBounds &&diabo) noexcept=default | |
Copy constructor. More... | |
DiamondBounds & | operator= (DiamondBounds &&sbo) noexcept=default |
Assignment operator. More... | |
virtual | ~DiamondBounds ()=default |
Destructor. More... | |
DiamondBounds (double minhalex, double medhalex, double maxhalex, double haley1, double haley2) | |
Constructor for symmetric Diamond. More... | |
DiamondBounds * | clone () const override |
Virtual constructor. More... | |
virtual bool | operator== (const SurfaceBounds &diabo) const override |
Equality operator. More... | |
virtual BoundsType | type () const override final |
Return the bounds type. More... | |
double | minHalflengthX () const |
This method returns the halflength in X at minimal Y (first coordinate of local surface frame) More... | |
double | medHalflengthX () const |
This method returns the (maximal) halflength in X (first coordinate of local surface frame) More... | |
double | maxHalflengthX () const |
This method returns the halflength in X at maximal Y (first coordinate of local surface frame) More... | |
double | halflengthY1 () const |
This method returns the halflength in Y of trapezoid at negative/positive Y (second coordinate) More... | |
double | halflengthY2 () const |
virtual double | r () const override final |
This method returns the maximal extension on the local plane. More... | |
double | alpha1 () const |
This method returns the opening angle alpha in point A More... | |
double | alpha2 () const |
This method returns the opening angle alpha in point A' More... | |
virtual bool | inside (const Amg::Vector2D &locpo, double tol1=0., double tol2=0.) const override final |
The orientation of the Diamond is according to the figure. More... | |
virtual bool | inside (const Amg::Vector2D &locpo, const BoundaryCheck &bchk) const override final |
virtual bool | insideLoc1 (const Amg::Vector2D &locpo, double tol1=0.) const override final |
This method checks inside bounds in loc1. More... | |
virtual bool | insideLoc2 (const Amg::Vector2D &locpo, double tol2=0.) const override final |
This method checks inside bounds in loc2. More... | |
virtual double | minDistance (const Amg::Vector2D &pos) const override final |
Minimal distance to boundary ( > 0 if outside and <=0 if inside) More... | |
virtual MsgStream & | dump (MsgStream &sl) const override final |
Output Method for MsgStream. More... | |
virtual std::ostream & | dump (std::ostream &sl) const override final |
Output Method for std::ostream. More... | |
virtual bool | operator!= (const SurfaceBounds &sb) const |
Non-Equality operator. More... | |
Protected Member Functions | |
void | swap (double &b1, double &b2) |
Swap method to be called from DiscBounds or TrapezoidalBounds. More... | |
Private Member Functions | |
bool | insideFull (const Amg::Vector2D &locpo, double tol1=0., double tol2=0.) const |
inside() method for a full symmetric diamond More... | |
virtual void | initCache () override |
initialize the alpha1/2 cache - needed also for object persistency More... | |
Private Attributes | |
std::vector< TDD_real_t > | m_boundValues |
Internal parameters stored in the geometry. More... | |
TDD_real_t | m_alpha1 |
TDD_real_t | m_alpha2 |
Friends | |
class | ::DiamondBoundsCnv_p1 |
Bounds for a double trapezoidal ("diamond"), planar Surface.
Definition at line 36 of file DiamondBounds.h.
|
inherited |
This enumerator simplifies the persistency, by saving a dynamic_cast to happen.
Other is reserved for the GeometrySurfaces implementation.
Enumerator | |
---|---|
Cone | |
Cylinder | |
Diamond | |
Disc | |
Ellipse | |
Rectangle | |
RotatedTrapezoid | |
Trapezoid | |
Triangle | |
DiscTrapezoidal | |
Annulus | |
Other |
Definition at line 58 of file SurfaceBounds.h.
BoundValues for better readability.
Enumerator | |
---|---|
bv_minHalfX | |
bv_medHalfX | |
bv_maxHalfX | |
bv_halfY1 | |
bv_halfY2 | |
bv_length |
Definition at line 41 of file DiamondBounds.h.
Trk::DiamondBounds::DiamondBounds | ( | ) |
Default Constructor, needed for persistency.
Definition at line 19 of file DiamondBounds.cxx.
|
default |
Copy constructor.
|
defaultnoexcept |
Copy constructor.
|
virtualdefault |
Destructor.
Trk::DiamondBounds::DiamondBounds | ( | double | minhalex, |
double | medhalex, | ||
double | maxhalex, | ||
double | haley1, | ||
double | haley2 | ||
) |
double Trk::DiamondBounds::alpha1 | ( | ) | const |
This method returns the opening angle alpha in point A
Definition at line 179 of file DiamondBounds.cxx.
double Trk::DiamondBounds::alpha2 | ( | ) | const |
This method returns the opening angle alpha in point A'
Definition at line 186 of file DiamondBounds.cxx.
|
overridevirtual |
Virtual constructor.
Implements Trk::SurfaceBounds.
|
finaloverridevirtual |
Output Method for MsgStream.
Implements Trk::SurfaceBounds.
Definition at line 243 of file DiamondBounds.cxx.
|
finaloverridevirtual |
Output Method for std::ostream.
Implements Trk::SurfaceBounds.
Definition at line 256 of file DiamondBounds.cxx.
double Trk::DiamondBounds::halflengthY1 | ( | ) | const |
This method returns the halflength in Y of trapezoid at negative/positive Y (second coordinate)
double Trk::DiamondBounds::halflengthY2 | ( | ) | const |
|
overrideprivatevirtual |
initialize the alpha1/2 cache - needed also for object persistency
Reimplemented from Trk::SurfaceBounds.
Definition at line 40 of file DiamondBounds.cxx.
|
finaloverridevirtual |
|
finaloverridevirtual |
The orientation of the Diamond is according to the figure.
Implements Trk::SurfaceBounds.
Definition at line 61 of file DiamondBounds.cxx.
|
private |
inside() method for a full symmetric diamond
use basic calculation of a straight line
Definition at line 150 of file DiamondBounds.cxx.
|
finaloverridevirtual |
This method checks inside bounds in loc1.
Implements Trk::SurfaceBounds.
|
finaloverridevirtual |
This method checks inside bounds in loc2.
Implements Trk::SurfaceBounds.
double Trk::DiamondBounds::maxHalflengthX | ( | ) | const |
This method returns the halflength in X at maximal Y (first coordinate of local surface frame)
double Trk::DiamondBounds::medHalflengthX | ( | ) | const |
This method returns the (maximal) halflength in X (first coordinate of local surface frame)
|
finaloverridevirtual |
Minimal distance to boundary ( > 0 if outside and <=0 if inside)
Implements Trk::SurfaceBounds.
Definition at line 192 of file DiamondBounds.cxx.
double Trk::DiamondBounds::minHalflengthX | ( | ) | const |
This method returns the halflength in X at minimal Y (first coordinate of local surface frame)
|
inlinevirtualinherited |
Non-Equality operator.
Reimplemented in Trk::InvalidBounds.
Definition at line 141 of file SurfaceBounds.h.
|
default |
Assignment operator.
|
defaultnoexcept |
Assignment operator.
|
overridevirtual |
|
finaloverridevirtual |
This method returns the maximal extension on the local plane.
Implements Trk::SurfaceBounds.
|
inlineprotectedinherited |
Swap method to be called from DiscBounds or TrapezoidalBounds.
Definition at line 133 of file SurfaceBounds.h.
|
inlinefinaloverridevirtual |
Return the bounds type.
Implements Trk::SurfaceBounds.
Definition at line 79 of file DiamondBounds.h.
|
friend |
Definition at line 131 of file DiamondBounds.h.
|
private |
Definition at line 141 of file DiamondBounds.h.
|
private |
Definition at line 142 of file DiamondBounds.h.
|
private |
Internal parameters stored in the geometry.
Definition at line 140 of file DiamondBounds.h.