9 #ifndef LARCOREALG_GEOMETRY_AUXDETSENSITIVEGEO_H 10 #define LARCOREALG_GEOMETRY_AUXDETSENSITIVEGEO_H 18 #include "TGeoVolume.h" 19 #include "TGeoMatrix.h" 72 void GetCenter(
double* xyz,
double localz=0.0)
const;
162 template <
typename Stream>
164 (Stream&& out, std::string
indent =
"",
unsigned int verbosity = 0)
const;
192 template <
typename Stream>
196 unsigned int verbosity
200 out <<
"centered at " <<
GetCenter() <<
" cm";
202 if (verbosity-- <= 0)
return;
211 if (verbosity-- <= 0)
return;
225 #endif // LARCOREALG_GEOMETRY_AUXDETSENSITIVEGEO_H 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 HalfWidth2() const
constexpr bool nonEqual(Value_t a, Value_t b) const
Returns whether a and b are farther than the threshold.
void WorldToLocalVect(const double *world, double *auxdet) const
Transform direction vector from world to local.
double Length_t
Type used for coordinates and distances. They are measured in centimeters.
geo::Vector_t GetNormalVector() const
Returns the unit normal vector to the detector.
double HalfCenterWidth() const
Provides simple real number checks.
double fHalfWidth1
1st half width of volume, at -z/2 in local coordinates
double fHalfHeight
half height of volume
geo::Vector_t toWorldCoords(LocalVector_t const &local) const
Transform direction vector from local to world.
double HalfWidth1() const
AuxDetSensitiveGeo(std::vector< const TGeoNode * > const &path, int depth)
Class for approximate comparisons.
void InitShapeSize()
Extracts the size of the detector from the geometry information.
LocalVector_t toLocalCoords(geo::Vector_t const &world) const
Transform direction vector from world to local.
double HalfHeight() const
const TGeoVolume * fTotalVolume
Total volume of AuxDet, called vol*.
std::string indent(std::size_t const i)
const TGeoVolume * TotalVolume() const
void LocalToWorldVect(const double *auxdet, double *world) const
Transform direction vector from local to world.
geo::Length_t DistanceToPoint(geo::Point_t const &point) const
Returns the distance of point from the center of the detector.
Definition of data types for geometry description.
void PrintAuxDetInfo(Stream &&out, std::string indent="", unsigned int verbosity=0) const
Prints information about this auxiliary sensitive detector.
static constexpr unsigned int MaxVerbosity
Maximum verbosity supported by PrintAuxDetInfo().
void WorldToLocal(const double *world, double *auxdet) const
Transform point from world frame to local auxiliary detector frame.
geo::Point3DBase_t< AuxDetSensitiveGeoCoordinatesTag > LocalPoint_t
Type of points in the local GDML auxiliary detector frame.
GenPoint3DBase_t< double, C > Point3DBase_t
Type of 3D point with representation in double precision.
double fHalfWidth2
2nd half width (width1==width2 for boxes), at +z/2
GenVector3DBase_t< double, C > Vector3DBase_t
double HalfLength() const
LocalTransformation_t fTrans
Auxiliary detector-to-world transformation.
void LocalToWorld(const double *auxdet, double *world) const
Transform point from local auxiliary detector frame to world frame.
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< double >, ROOT::Math::GlobalCoordinateSystemTag > Point_t
Type for representation of position in physical 3D space.
Namespace collecting geometry-related classes utilities.
LocalPoint_t toLocalCoords(geo::Point_t const &world) const
Transform point from world frame to local auxiliary detector frame.
void GetCenter(double *xyz, double localz=0.0) const
Return the center position of an AuxDet.
geo::Point_t toWorldCoords(LocalPoint_t const &local) const
Transform point from local auxiliary detector frame to world frame.
geo::Vector3DBase_t< AuxDetSensitiveGeoCoordinatesTag > LocalVector_t
Type of displacement vectors in the local GDML auxiliary detector frame.