ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::TrapezoidVolumeBounds Class Reference

#include <acts/blob/master/Core/include/Acts/Geometry/TrapezoidVolumeBounds.hpp>

+ Inheritance diagram for Acts::TrapezoidVolumeBounds:
+ Collaboration diagram for Acts::TrapezoidVolumeBounds:

Public Types

enum  BoundValues {
  eHalfLengthXnegY = 0, eHalfLengthXposY = 1, eHalfLengthY = 2, eHalfLengthZ = 3,
  eAlpha = 4, eBeta = 5, eSize = 6
}
 for acces / streaming More...
 
- Public Types inherited from Acts::VolumeBounds
enum  BoundsType : int {
  eCone = 0, eCuboid = 1, eCutoutCylinder = 2, eCylinder = 3,
  eGenericCuboid = 4, eTrapezoid = 5, eOther = 6
}
 

Public Member Functions

 TrapezoidVolumeBounds ()=delete
 
 TrapezoidVolumeBounds (double minhalex, double maxhalex, double haley, double halez) noexcept(false)
 
 TrapezoidVolumeBounds (double minhalex, double haley, double halez, double alpha, double beta) noexcept(false)
 
 TrapezoidVolumeBounds (const std::array< double, eSize > &values) noexcept(false)
 
 TrapezoidVolumeBounds (const TrapezoidVolumeBounds &trabo)=default
 
TrapezoidVolumeBoundsoperator= (const TrapezoidVolumeBounds &trabo)=default
 
 ~TrapezoidVolumeBounds () override=default
 
VolumeBounds::BoundsType type () const final
 
std::vector< double > values () const final
 
bool inside (const Vector3D &pos, double tol=0.) const override
 
std::vector< std::shared_ptr
< const Surface > > 
decomposeToSurfaces (const Transform3D *transformPtr) const override
 
Volume::BoundingBox boundingBox (const Transform3D *trf=nullptr, const Vector3D &envelope={0, 0, 0}, const Volume *entity=nullptr) const final
 
std::ostream & toStream (std::ostream &sl) const override
 Output Method for std::ostream.
 
double get (BoundValues bValue) const
 
- Public Member Functions inherited from Acts::VolumeBounds
 VolumeBounds ()=default
 
virtual ~VolumeBounds ()=default
 
virtual Vector3D binningOffset (BinningValue bValue) const
 Binning offset - overloaded for some R-binning types.
 
virtual double binningBorder (BinningValue bValue) const
 

Private Member Functions

void checkConsistency () noexcept(false)
 
void buildSurfaceBounds ()
 Helper method to create the surface bounds.
 
template<class T >
TdumpT (T &dt) const
 Templated dump methos.
 

Private Attributes

std::array< double, eSizem_values
 The internal version of the bounds can be float/double.
 
std::shared_ptr< const
TrapezoidBounds
m_faceXYTrapezoidBounds = nullptr
 The face PlaneSurface parallel to local xy plane.
 
std::shared_ptr< const
RectangleBounds
m_faceAlphaRectangleBounds = nullptr
 Thhe face PlaneSurface attached to alpha (negative local x)
 
std::shared_ptr< const
RectangleBounds
m_faceBetaRectangleBounds = nullptr
 The face PlaneSurface attached to beta (positive local x)
 
std::shared_ptr< const
RectangleBounds
m_faceZXRectangleBoundsBottom
 The face PlaneSurface parallel to local zx plane, negative local y.
 
std::shared_ptr< const
RectangleBounds
m_faceZXRectangleBoundsTop = nullptr
 The face PlaneSurface parallel to local zx plane, positive local y.
 

Detailed Description

Bounds for a trapezoidal shaped Volume, the decomposeToSurfaces method creates a vector of 6 surfaces:

BoundarySurfaceFace [index]:

  • negativeFaceXY [0] : Trazpezoidal Acts::PlaneSurface, parallel to $ xy $ plane at negative $z$
  • positiveFaceXY [1] : Trazpezoidal Acts::PlaneSurface, parallel to $ xy $ plane at positive $z$
  • trapezoidFaceAlpha [2] : Rectangular Acts::PlaneSurface, attached to [0] and [1] at negative $x$ (associated to alpha)
  • trapezoidFaceBeta [3] : Rectangular Acts::PlaneSurface, attached to [0] and [1] at positive $ x$ (associated to beta)
  • negativeFaceZX [4] : Rectangular Acts::PlaneSurface, parallel to $ zx $ plane at negative $y$
  • positiveFaceZX [5] : Rectangular Acts::PlaneSurface, parallel to $ zx $ plane at positive $y$
TrapezoidVolumeBounds_decomp.gif

Definition at line 53 of file TrapezoidVolumeBounds.hpp.

View newest version in sPHENIX GitHub at line 53 of file TrapezoidVolumeBounds.hpp

Member Enumeration Documentation

for acces / streaming

Enumerator:
eHalfLengthXnegY 

halflength in x at negative y

eHalfLengthXposY 

halflength in x at positive y

eHalfLengthY 

halflength in y

eHalfLengthZ 

halflength in z

eAlpha 

opening angle alpha (in point A)

eBeta 

opening angle beta (in point B)

eSize 

length of the bounds vector

Definition at line 56 of file TrapezoidVolumeBounds.hpp.

View newest version in sPHENIX GitHub at line 56 of file TrapezoidVolumeBounds.hpp

Constructor & Destructor Documentation

Acts::TrapezoidVolumeBounds::TrapezoidVolumeBounds ( )
delete
Acts::TrapezoidVolumeBounds::TrapezoidVolumeBounds ( double  minhalex,
double  maxhalex,
double  haley,
double  halez 
)
noexcept

Constructor - the trapezoid boundaries (symmetric trapezoid)

Parameters
minhalexis the half length in x at minimal y
maxhalexis the half length in x at maximal y
haleyis the half length in y
halezis the half length in z

Definition at line 25 of file TrapezoidVolumeBounds.cpp.

View newest version in sPHENIX GitHub at line 25 of file TrapezoidVolumeBounds.cpp

References buildSurfaceBounds(), checkConsistency(), eAlpha, eBeta, eHalfLengthXnegY, eHalfLengthXposY, eHalfLengthY, eHalfLengthZ, M_PI, and m_values.

+ Here is the call graph for this function:

Acts::TrapezoidVolumeBounds::TrapezoidVolumeBounds ( double  minhalex,
double  haley,
double  halez,
double  alpha,
double  beta 
)
noexcept

Constructor - the trapezoid boundaries (arbitrary trapezoid)

Parameters
minhalexis the half length in x at minimal y
haleyis the half length in y
halezis the half length in z
alphais the openeing angle at -x,-y
betais the openeing angle at +x,-y

Definition at line 42 of file TrapezoidVolumeBounds.cpp.

View newest version in sPHENIX GitHub at line 42 of file TrapezoidVolumeBounds.cpp

References alpha, buildSurfaceBounds(), checkConsistency(), eAlpha, eBeta, eHalfLengthXnegY, eHalfLengthXposY, eHalfLengthY, eHalfLengthZ, M_PI, and m_values.

+ Here is the call graph for this function:

Acts::TrapezoidVolumeBounds::TrapezoidVolumeBounds ( const std::array< double, eSize > &  values)
inlinenoexcept

Constructor - from a fixed size array

Parameters
valuesThe bound values

Definition at line 90 of file TrapezoidVolumeBounds.hpp.

View newest version in sPHENIX GitHub at line 90 of file TrapezoidVolumeBounds.hpp

References buildSurfaceBounds(), and checkConsistency().

+ Here is the call graph for this function:

Acts::TrapezoidVolumeBounds::TrapezoidVolumeBounds ( const TrapezoidVolumeBounds trabo)
default
Acts::TrapezoidVolumeBounds::~TrapezoidVolumeBounds ( )
overridedefault

Member Function Documentation

Acts::Volume::BoundingBox Acts::TrapezoidVolumeBounds::boundingBox ( const Transform3D trf = nullptr,
const Vector3D envelope = {0, 0, 0},
const Volume entity = nullptr 
) const
finalvirtual

Construct bounding box for this shape

Parameters
trfOptional transform
envelopeOptional envelope to add / subtract from min/max
entityEntity to associate this bounding box with
Returns
Constructed bounding box

Implements Acts::VolumeBounds.

Definition at line 189 of file TrapezoidVolumeBounds.cpp.

View newest version in sPHENIX GitHub at line 189 of file TrapezoidVolumeBounds.cpp

References Acts::Test::transform.

void Acts::TrapezoidVolumeBounds::buildSurfaceBounds ( )
private

Helper method to create the surface bounds.

Definition at line 154 of file TrapezoidVolumeBounds.cpp.

View newest version in sPHENIX GitHub at line 154 of file TrapezoidVolumeBounds.cpp

References M_PI.

Referenced by TrapezoidVolumeBounds().

+ Here is the caller graph for this function:

void Acts::TrapezoidVolumeBounds::checkConsistency ( )
inlineprivatenoexcept

Check the input values for consistency, will throw a logic_exception if consistency is not given

Definition at line 191 of file TrapezoidVolumeBounds.hpp.

View newest version in sPHENIX GitHub at line 191 of file TrapezoidVolumeBounds.hpp

References eHalfLengthXnegY, eHalfLengthXposY, eHalfLengthY, and eHalfLengthZ.

Referenced by TrapezoidVolumeBounds().

+ Here is the caller graph for this function:

std::vector< std::shared_ptr< const Acts::Surface > > Acts::TrapezoidVolumeBounds::decomposeToSurfaces ( const Transform3D transformPtr) const
overridevirtual

Method to decompose the Bounds into Surfaces

Parameters
transformPtris the transform to position the surfaces in 3D space
Note
this is a factory method
Returns
vector of surfaces from the decopmosition

Implements Acts::VolumeBounds.

Definition at line 60 of file TrapezoidVolumeBounds.cpp.

View newest version in sPHENIX GitHub at line 60 of file TrapezoidVolumeBounds.cpp

References A(), B(), M_PI, Acts::s_idRotation, and Acts::Test::transform.

+ Here is the call graph for this function:

template<class T >
T & Acts::TrapezoidVolumeBounds::dumpT ( T dt) const
private

Templated dump methos.

Definition at line 174 of file TrapezoidVolumeBounds.hpp.

View newest version in sPHENIX GitHub at line 174 of file TrapezoidVolumeBounds.hpp

References eAlpha, eBeta, eHalfLengthXnegY, eHalfLengthXposY, eHalfLengthY, and eHalfLengthZ.

double Acts::TrapezoidVolumeBounds::get ( BoundValues  bValue) const
inline

Access to the bound values

Parameters
bValuethe class nested enum for the array access

Definition at line 144 of file TrapezoidVolumeBounds.hpp.

View newest version in sPHENIX GitHub at line 144 of file TrapezoidVolumeBounds.hpp

References m_values.

bool Acts::TrapezoidVolumeBounds::inside ( const Vector3D pos,
double  tol = 0. 
) const
overridevirtual

This method checks if position in the 3D volume frame is inside the cylinder

Parameters
posis the global position to be checked
tolis the tolerance applied
Returns
boolean indicator if position is inside

Implements Acts::VolumeBounds.

Definition at line 171 of file TrapezoidVolumeBounds.cpp.

View newest version in sPHENIX GitHub at line 171 of file TrapezoidVolumeBounds.cpp

References kdfinder::abs().

+ Here is the call graph for this function:

TrapezoidVolumeBounds& Acts::TrapezoidVolumeBounds::operator= ( const TrapezoidVolumeBounds trabo)
default
std::ostream & Acts::TrapezoidVolumeBounds::toStream ( std::ostream &  sl) const
overridevirtual

Output Method for std::ostream.

Implements Acts::VolumeBounds.

Definition at line 185 of file TrapezoidVolumeBounds.cpp.

View newest version in sPHENIX GitHub at line 185 of file TrapezoidVolumeBounds.cpp

VolumeBounds::BoundsType Acts::TrapezoidVolumeBounds::type ( ) const
inlinefinalvirtual

Return the bounds type - for persistency optimization

Returns
is a BoundsType enum

Implements Acts::VolumeBounds.

Definition at line 103 of file TrapezoidVolumeBounds.hpp.

View newest version in sPHENIX GitHub at line 103 of file TrapezoidVolumeBounds.hpp

References Acts::VolumeBounds::eTrapezoid.

std::vector< double > Acts::TrapezoidVolumeBounds::values ( ) const
inlinefinalvirtual

Return the bound values as dynamically sized vector

Returns
this returns a copy of the internal values

Implements Acts::VolumeBounds.

Definition at line 185 of file TrapezoidVolumeBounds.hpp.

View newest version in sPHENIX GitHub at line 185 of file TrapezoidVolumeBounds.hpp

References m_values.

Member Data Documentation

std::shared_ptr<const RectangleBounds> Acts::TrapezoidVolumeBounds::m_faceAlphaRectangleBounds = nullptr
private

Thhe face PlaneSurface attached to alpha (negative local x)

Definition at line 152 of file TrapezoidVolumeBounds.hpp.

View newest version in sPHENIX GitHub at line 152 of file TrapezoidVolumeBounds.hpp

std::shared_ptr<const RectangleBounds> Acts::TrapezoidVolumeBounds::m_faceBetaRectangleBounds = nullptr
private

The face PlaneSurface attached to beta (positive local x)

Definition at line 154 of file TrapezoidVolumeBounds.hpp.

View newest version in sPHENIX GitHub at line 154 of file TrapezoidVolumeBounds.hpp

std::shared_ptr<const TrapezoidBounds> Acts::TrapezoidVolumeBounds::m_faceXYTrapezoidBounds = nullptr
private

The face PlaneSurface parallel to local xy plane.

Definition at line 150 of file TrapezoidVolumeBounds.hpp.

View newest version in sPHENIX GitHub at line 150 of file TrapezoidVolumeBounds.hpp

std::shared_ptr<const RectangleBounds> Acts::TrapezoidVolumeBounds::m_faceZXRectangleBoundsBottom
private
Initial value:
=
nullptr

The face PlaneSurface parallel to local zx plane, negative local y.

Definition at line 156 of file TrapezoidVolumeBounds.hpp.

View newest version in sPHENIX GitHub at line 156 of file TrapezoidVolumeBounds.hpp

std::shared_ptr<const RectangleBounds> Acts::TrapezoidVolumeBounds::m_faceZXRectangleBoundsTop = nullptr
private

The face PlaneSurface parallel to local zx plane, positive local y.

Definition at line 159 of file TrapezoidVolumeBounds.hpp.

View newest version in sPHENIX GitHub at line 159 of file TrapezoidVolumeBounds.hpp

std::array<double, eSize> Acts::TrapezoidVolumeBounds::m_values
private

The internal version of the bounds can be float/double.

Definition at line 148 of file TrapezoidVolumeBounds.hpp.

View newest version in sPHENIX GitHub at line 148 of file TrapezoidVolumeBounds.hpp

Referenced by get(), TrapezoidVolumeBounds(), and values().


The documentation for this class was generated from the following files: