20 #include "cetlib_except/exception.h" 32 throw cet::exception(
"AuxDetSensitiveGeo") <<
"cannot find AuxDetSensitive volume\n";
43 TGeoHMatrix
const& rotation)
56 TGeoHMatrix&& rotation)
105 if( volName.find(
"Trap") != std::string::npos ) {
double fLength
length of volume, along z direction in local
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double >, ROOT::Math::GlobalCoordinateSystemTag > Vector_t
Type for representation of momenta in 3D space.
double Length_t
Type used for coordinates and distances. They are measured in centimeters.
Encapsulate the geometry of the sensitive portion of an auxiliary detector.
geo::Vector_t GetNormalVector() const
Returns the unit normal vector to the detector.
double fHalfWidth1
1st half width of volume, at -z/2 in local coordinates
double fHalfHeight
half height of volume
AuxDetSensitiveGeo(std::vector< const TGeoNode * > const &path, int depth)
void InitShapeSize()
Extracts the size of the detector from the geometry information.
const TGeoVolume * fTotalVolume
Total volume of AuxDet, called vol*.
Utilities to extend the interface of geometry vectors.
geo::Length_t DistanceToPoint(geo::Point_t const &point) const
Returns the distance of point from the center of the detector.
geo::Point3DBase_t< AuxDetSensitiveGeoCoordinatesTag > LocalPoint_t
Type of points in the local GDML auxiliary detector frame.
double fHalfWidth2
2nd half width (width1==width2 for boxes), at +z/2
LocalTransformation_t fTrans
Auxiliary detector-to-world transformation.
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< double >, ROOT::Math::GlobalCoordinateSystemTag > Point_t
Type for representation of position in physical 3D space.
GENVECTOR_CONSTEXPR::geo::Point_t makePointFromCoords(Coords &&coords)
Creates a geo::Point_t from its coordinates (see makeFromCoords()).
Namespace collecting geometry-related classes utilities.
void GetCenter(double *xyz, double localz=0.0) const
Return the center position of an AuxDet.
cet::coded_exception< error, detail::translate > exception
geo::Point_t toWorldCoords(LocalPoint_t const &local) const
Transform point from local auxiliary detector frame to world frame.