16 #include "TGeoVolume.h" 28 : fTrans(
std::move(trans)), fTotalVolume(node->GetVolume())
58 unsigned int verbosity )
const 60 std::ostringstream sstr;
70 if (volName.find(
"Trap") != std::string::npos) {
double fLength
length of volume, along z direction in local
double Length_t
Type used for coordinates and distances. They are measured in centimeters.
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double >, ROOT::Math::GlobalCoordinateSystemTag > Vector_t
Type for representation of momenta in 3D space.
Encapsulate the geometry of the sensitive portion of an auxiliary detector .
GENVECTOR_CONSTEXPR Point_t makePointFromCoords(Coords &&coords)
Creates a geo::Point_t from its coordinates (see makeFromCoords()).
Vector_t GetNormalVector() const
Returns the unit normal vector to the detector.
Point3DBase_t< AuxDetSensitiveGeoCoordinatesTag > LocalPoint_t
Type of points in the local GDML auxiliary detector frame.
double fHalfWidth1
1st half width of volume, at -z/2 in local coordinates
double fHalfHeight
half height of volume
Point_t GetCenter(double localz=0.0) const
Returns the geometric center of the sensitive volume.
AuxDetSensitiveGeo(TGeoNode const *node, TransformationMatrix &&trans)
void InitShapeSize()
Extracts the size of the detector from the geometry information.
const TGeoVolume * fTotalVolume
Total volume of AuxDet, called vol*.
std::string indent(std::size_t const i)
Utilities to extend the interface of geometry vectors.This library provides facilities that can be us...
Point_t toWorldCoords(LocalPoint_t const &local) const
Transform point from local auxiliary detector frame to world frame.
void PrintAuxDetInfo(Stream &&out, std::string indent="", unsigned int verbosity=0) const
Prints information about this auxiliary sensitive detector.
Length_t DistanceToPoint(Point_t const &point) const
Returns the distance of point from the center of the detector.
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< double >, ROOT::Math::GlobalCoordinateSystemTag > Point_t
Type for representation of position in physical 3D space.
std::string AuxDetInfo(std::string indent="", unsigned int verbosity=1) const
Returns a string with auxiliary sensitive detector information.
double fHalfWidth2
2nd half width (width1==width2 for boxes), at +z/2
ROOT::Math::Transform3D TransformationMatrix
Type of transformation matrix used in geometry.