ATLAS Offline Software
|
#include <DiscBounds.h>
Public Types | |
enum | BoundValues { bv_rMin = 0, bv_rMax = 1, bv_averagePhi = 2, bv_halfPhiSector = 3, bv_length = 4 } |
enumeration for 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 | |
DiscBounds () | |
Default Constructor. More... | |
DiscBounds (const DiscBounds &)=default | |
Default copy constructor. More... | |
DiscBounds & | operator= (const DiscBounds &discbo)=default |
Default assignment operator. More... | |
DiscBounds (DiscBounds &&discbo) noexcept=default | |
Default move constructor. More... | |
DiscBounds & | operator= (DiscBounds &&discbo) noexcept=default |
Default move assignment operator. More... | |
virtual | ~DiscBounds ()=default |
Destructor. More... | |
DiscBounds (double minrad, double maxrad, double hphisec=M_PI) | |
Constructor for full disc of symmetric disc around phi=0. More... | |
DiscBounds (double minrad, double maxrad, double avephi, double hphisec) | |
Constructor for a symmetric disc around phi != 0. More... | |
virtual bool | operator== (const SurfaceBounds &sbo) const override |
Equality operator. More... | |
virtual DiscBounds * | clone () const override final |
Virtual constructor. More... | |
virtual SurfaceBounds::BoundsType | type () const override final |
Return the type - mainly for persistency. More... | |
virtual bool | inside (const Amg::Vector2D &locpo, double tol1=0., double tol2=0.) const override final |
This method cheks if the radius given in the LocalPosition is inside [rMin,rMax] if only tol1 is given and additional in the phi sector is tol2 is given. 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... | |
double | rMin () const |
This method returns inner radius. More... | |
double | rMax () const |
This method returns outer radius. More... | |
virtual double | r () const override final |
This method returns the maximum expansion on the plane (=rMax) More... | |
double | averagePhi () const |
This method returns the average phi. More... | |
double | halfPhiSector () const |
This method returns the halfPhiSector which is covered by the disc. More... | |
virtual MsgStream & | dump (MsgStream &sl) const override |
Output Method for MsgStream. More... | |
virtual std::ostream & | dump (std::ostream &sl) const override |
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... | |
virtual void | initCache () |
virtual initCache method for object persistency More... | |
Private Attributes | |
std::vector< TDD_real_t > | m_boundValues |
Internal members of the bounds (float/double) More... | |
Class to describe the bounds for a planar DiscSurface. By providing an argument for hphisec, the bounds can be restricted to a phirange around the center position.
Definition at line 43 of file DiscBounds.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.
enumeration for readability
Enumerator | |
---|---|
bv_rMin | |
bv_rMax | |
bv_averagePhi | |
bv_halfPhiSector | |
bv_length |
Definition at line 48 of file DiscBounds.h.
Trk::DiscBounds::DiscBounds | ( | ) |
|
default |
Default copy constructor.
|
defaultnoexcept |
Default move constructor.
|
virtualdefault |
Destructor.
Trk::DiscBounds::DiscBounds | ( | double | minrad, |
double | maxrad, | ||
double | hphisec = M_PI |
||
) |
Constructor for full disc of symmetric disc around phi=0.
Definition at line 21 of file DiscBounds.cxx.
Trk::DiscBounds::DiscBounds | ( | double | minrad, |
double | maxrad, | ||
double | avephi, | ||
double | hphisec | ||
) |
double Trk::DiscBounds::averagePhi | ( | ) | const |
This method returns the average phi.
|
finaloverridevirtual |
Virtual constructor.
Implements Trk::SurfaceBounds.
|
overridevirtual |
Output Method for MsgStream.
Implements Trk::SurfaceBounds.
Definition at line 310 of file DiscBounds.cxx.
|
overridevirtual |
Output Method for std::ostream.
Implements Trk::SurfaceBounds.
Definition at line 322 of file DiscBounds.cxx.
double Trk::DiscBounds::halfPhiSector | ( | ) | const |
This method returns the halfPhiSector which is covered by the disc.
|
inlineprotectedvirtualinherited |
virtual initCache method for object persistency
Reimplemented in Trk::RotatedTrapezoidBounds, Trk::ConeBounds, Trk::RotatedDiamondBounds, and Trk::DiamondBounds.
Definition at line 129 of file SurfaceBounds.h.
|
finaloverridevirtual |
|
finaloverridevirtual |
This method cheks if the radius given in the LocalPosition is inside [rMin,rMax] if only tol1 is given and additional in the phi sector is tol2 is given.
Implements Trk::SurfaceBounds.
Definition at line 55 of file DiscBounds.cxx.
|
finaloverridevirtual |
This method checks inside bounds in loc1.
Implements Trk::SurfaceBounds.
|
finaloverridevirtual |
This method checks inside bounds in loc2.
Implements Trk::SurfaceBounds.
|
finaloverridevirtual |
Minimal distance to boundary ( > 0 if outside and <=0 if inside)
Implements Trk::SurfaceBounds.
Definition at line 259 of file DiscBounds.cxx.
|
inlinevirtualinherited |
Non-Equality operator.
Reimplemented in Trk::InvalidBounds.
Definition at line 141 of file SurfaceBounds.h.
|
default |
Default assignment operator.
|
defaultnoexcept |
Default move assignment operator.
|
overridevirtual |
|
finaloverridevirtual |
This method returns the maximum expansion on the plane (=rMax)
Implements Trk::SurfaceBounds.
double Trk::DiscBounds::rMax | ( | ) | const |
This method returns outer radius.
double Trk::DiscBounds::rMin | ( | ) | const |
This method returns inner radius.
|
inlineprotectedinherited |
Swap method to be called from DiscBounds or TrapezoidalBounds.
Definition at line 133 of file SurfaceBounds.h.
|
inlinefinaloverridevirtual |
Return the type - mainly for persistency.
Implements Trk::SurfaceBounds.
Definition at line 87 of file DiscBounds.h.
|
private |
Internal members of the bounds (float/double)
Definition at line 128 of file DiscBounds.h.