Geometry information for a single cryostat. More...
#include <CryostatGeo.h>
Classes | |
struct | CryostatGeoCoordinatesTag |
Tag for vectors in the "local" GDML coordinate frame of the cryostat. More... | |
Public Types | |
using | TPCList_t = std::vector< geo::TPCGeo > |
Type used internally to store the TPCs. More... | |
using | OpDetList_t = std::vector< geo::OpDetGeo > |
Type used internally to store the optical detectors. More... | |
using | GeoNodePath_t = geo::WireGeo::GeoNodePath_t |
using | ElementIteratorBox = TPCList_t const & |
Type returned by IterateElements() . More... | |
Types for geometry-local reference vectors. | |
These types represents points and displacement vectors in the reference frame defined in the cryostat geometry box from the GDML geometry description. No alias is explicitly defined for the LArSoft global vector types, Remember the | |
using | LocalPoint_t = geo::Point3DBase_t< CryostatGeoCoordinatesTag > |
Type of points in the local GDML cryostat frame. More... | |
using | LocalVector_t = geo::Vector3DBase_t< CryostatGeoCoordinatesTag > |
Type of displacement vectors in the local GDML cryostat frame. More... | |
Public Types inherited from geo::BoxBoundedGeo | |
using | Coords_t = geo::Point_t |
Type of the coordinate triplet. More... | |
using | Coord_t = Coords_t::Scalar |
Type of the coordinate. More... | |
Public Member Functions | |
CryostatGeo (TGeoNode const &node, geo::TransformationMatrix &&trans, TPCList_t &&TPCs, OpDetList_t &&OpDets) | |
Construct a representation of a single cryostat of the detector. More... | |
void | SortSubVolumes (geo::GeoObjectSorter const &sorter) |
Method to sort TPCGeo objects. More... | |
void | UpdateAfterSorting (geo::CryostatID cryoid) |
Performs all needed updates after geometry has sorted the cryostats. More... | |
TPC access | |
unsigned int | NTPC () const |
Number of TPCs in this cryostat. More... | |
unsigned int | NElements () const |
Alias for NTPC() . More... | |
bool | HasTPC (unsigned int itpc) const |
Returns whether a TPC with index itpc is present in this cryostat. More... | |
bool | HasElement (unsigned int itpc) const |
Alias for HasTPC() . More... | |
bool | HasTPC (geo::TPCID const &tpcid) const |
Returns whether the TPC in tpcid is present in this cryostat. More... | |
bool | HasElement (geo::TPCID const &tpcid) const |
Alias for HasTPC(geo::TPCID const&) More... | |
const TPCGeo & | TPC (unsigned int itpc) const |
Return the itpc'th TPC in the cryostat. More... | |
const TPCGeo & | TPC (TPCID const &tpcid) const |
Returns the TPC in tpcid from this cryostat. More... | |
const TPCGeo & | GetElement (TPCID const &tpcid) const |
Alias for TPC() . More... | |
ElementIteratorBox | IterateElements () const |
Returns an object suitable for iterating through all TPCs. More... | |
ElementIteratorBox | IterateTPCs () const |
Returns an object suitable for iterating through all TPCs. More... | |
auto const & | TPCs () const |
Returns an object suitable for iterating through all TPCs. More... | |
TPCGeo const * | TPCPtr (unsigned int itpc) const |
Returns the TPC number itpc from this cryostat. More... | |
TPCGeo const * | TPCPtr (TPCID const &tpcid) const |
Returns the TPC in tpcid from this cryostat. More... | |
TPCGeo const * | GetElementPtr (TPCID const &tpcid) const |
Alias for TPCPtr() . More... | |
geo::TPCID::TPCID_t | FindTPCAtPosition (double const worldLoc[3], double const wiggle) const |
Returns the index of the TPC at specified location. More... | |
geo::TPCID | PositionToTPCID (geo::Point_t const &point, double wiggle) const |
Returns the ID of the TPC at specified location. More... | |
TPCGeo const & | PositionToTPC (geo::Point_t const &point, double wiggle) const |
Returns the ID of the TPC at specified location. More... | |
TPCGeo const & | PositionToTPC (double const worldLoc[3], double wiggle) const |
Returns the ID of the TPC at specified location. More... | |
geo::TPCGeo const * | PositionToTPCptr (geo::Point_t const &point, double wiggle) const |
Returns a pointer to the TPC at specified location. More... | |
unsigned int | MaxPlanes () const |
Returns the largest number of planes among the TPCs in this cryostat. More... | |
unsigned int | MaxWires () const |
Returns the largest number of wires among the TPCs in this cryostat. More... | |
Optical detector access | |
unsigned int | NOpDet () const |
Number of optical detectors in this TPC. More... | |
const OpDetGeo & | OpDet (unsigned int iopdet) const |
Return the iopdet'th optical detector in the cryostat. More... | |
unsigned int | GetClosestOpDet (geo::Point_t const &point) const |
unsigned int | GetClosestOpDet (double const *point) const |
geo::OpDetGeo const * | GetClosestOpDetPtr (geo::Point_t const &point) const |
std::string | OpDetGeoName () const |
Get name of opdet geometry element. More... | |
Coordinate transformation | |
void | LocalToWorld (const double *cryo, double *world) const |
Transform point from local cryostat frame to world frame. More... | |
template<typename Point > | |
Point | LocalToWorld (Point const &local) const |
geo::Point_t | toWorldCoords (LocalPoint_t const &local) const |
Transform point from local cryostat frame to world frame. More... | |
void | LocalToWorldVect (const double *cryo, double *world) const |
Transform direction vector from local to world. More... | |
geo::Vector_t | toWorldCoords (LocalVector_t const &local) const |
Transform direction vector from local to world. More... | |
void | WorldToLocal (const double *world, double *cryo) const |
Transform point from world frame to local cryostat frame. More... | |
template<typename Point > | |
Point | WorldToLocal (Point const &world) const |
LocalPoint_t | toLocalCoords (geo::Point_t const &world) const |
Transform point from world frame to local cryostat frame. More... | |
void | WorldToLocalVect (const double *world, double *cryo) const |
Transform direction vector from world to local. More... | |
LocalVector_t | toLocalCoords (geo::Vector_t const &world) const |
Transform direction vector from world to local. More... | |
Public Member Functions inherited from geo::BoxBoundedGeo | |
BoxBoundedGeo ()=default | |
Default constructor: sets an empty volume. More... | |
BoxBoundedGeo (Coord_t x_min, Coord_t x_max, Coord_t y_min, Coord_t y_max, Coord_t z_min, Coord_t z_max) | |
Constructor: sets the boundaries in world coordinates as specified. More... | |
BoxBoundedGeo (Coords_t lower, Coords_t upper) | |
Constructor: sets the boundaries in world coordinates as specified. More... | |
double | MinX () const |
Returns the world x coordinate of the start of the box. More... | |
double | MaxX () const |
Returns the world x coordinate of the end of the box. More... | |
double | CenterX () const |
Returns the world x coordinate of the center of the box. More... | |
double | SizeX () const |
Returns the full size in the X dimension. More... | |
double | HalfSizeX () const |
Returns the size from the center to the border on X dimension. More... | |
double | MinY () const |
Returns the world y coordinate of the start of the box. More... | |
double | MaxY () const |
Returns the world y coordinate of the end of the box. More... | |
double | CenterY () const |
Returns the world y coordinate of the center of the box. More... | |
double | SizeY () const |
Returns the full size in the Y dimension. More... | |
double | HalfSizeY () const |
Returns the size from the center to the border on Y dimension. More... | |
double | MinZ () const |
Returns the world z coordinate of the start of the box. More... | |
double | MaxZ () const |
Returns the world z coordinate of the end of the box. More... | |
double | CenterZ () const |
Returns the world z coordinate of the center of the box. More... | |
double | SizeZ () const |
Returns the full size in the Z dimension. More... | |
double | HalfSizeZ () const |
Returns the size from the center to the border on Z dimension. More... | |
geo::Point_t | Min () const |
Returns the corner point with the smallest coordinates. More... | |
geo::Point_t | Max () const |
Returns the corner point with the largest coordinates. More... | |
geo::Point_t | Center () const |
Returns the center point of the box. More... | |
bool | ContainsX (double x, double const wiggle=1) const |
Returns whether this TPC contains the specified world x coordinate. More... | |
bool | ContainsY (double y, double const wiggle=1) const |
Returns whether this TPC contains the specified world y coordinate. More... | |
bool | ContainsZ (double z, double const wiggle=1) const |
Returns whether this TPC contains the specified world z coordinate. More... | |
bool | ContainsYZ (double y, double z, double const wiggle=1) const |
Returns if TPC contains the specified world y and z coordinates. More... | |
bool | ContainsPosition (geo::Point_t const &point, double wiggle=1.0) const |
Returns whether this volume contains the specified point. More... | |
bool | ContainsPosition (TVector3 const &point, double wiggle=1.0) const |
bool | ContainsPosition (double const *point, double wiggle=1.0) const |
bool | InFiducialX (double x, double neg_margin, double pos_margin) const |
Returns whether TPC fiducial volume contains world x coordinate. More... | |
bool | InFiducialX (double x, double margin) const |
Returns whether TPC fiducial volume contains world x coordinate. More... | |
bool | InFiducialY (double y, double neg_margin, double pos_margin) const |
Returns whether TPC fiducial volume contains world y coordinate. More... | |
bool | InFiducialY (double y, double margin) const |
Returns whether TPC fiducial volume contains world y coordinate. More... | |
bool | InFiducialZ (double z, double neg_margin, double pos_margin) const |
Returns whether TPC fiducial volume contains world z coordinate. More... | |
bool | InFiducialZ (double z, double margin) const |
Returns whether TPC fiducial volume contains world z coordinate. More... | |
bool | OverlapsX (geo::BoxBoundedGeo const &other) const |
Returns if the x coordinates covered by this and other box overlap. More... | |
bool | OverlapsY (geo::BoxBoundedGeo const &other) const |
Returns if the y coordinates covered by this and other box overlap. More... | |
bool | OverlapsZ (geo::BoxBoundedGeo const &other) const |
Returns if the z coordinates covered by this and other box overlap. More... | |
bool | Overlaps (geo::BoxBoundedGeo const &other) const |
Returns if this and other box overlap. More... | |
void | SetBoundaries (Coord_t x_min, Coord_t x_max, Coord_t y_min, Coord_t y_max, Coord_t z_min, Coord_t z_max) |
Sets the boundaries in world coordinates as specified. More... | |
void | SetBoundaries (Coords_t lower, Coords_t upper) |
Sets the boundaries in world coordinates as specified. More... | |
void | ExtendToInclude (Coord_t x, Coord_t y, Coord_t z) |
Extends the current box to also include the specified point. More... | |
void | ExtendToInclude (geo::Point_t const &point) |
Extends the current box to also include the specified point. More... | |
void | ExtendToInclude (BoxBoundedGeo const &box) |
Extends the current box to also include the specified one. More... | |
std::vector< TVector3 > | GetIntersections (TVector3 const &TrajectoryStart, TVector3 const &TrajectoryDirect) const |
Calculates the entry and exit points of a trajectory on the box surface. More... | |
std::vector< geo::Point_t > | GetIntersections (geo::Point_t const &TrajectoryStart, geo::Vector_t const &TrajectoryDirect) const |
Private Types | |
using | LocalTransformation_t = geo::LocalTransformationGeo< ROOT::Math::Transform3D, LocalPoint_t, LocalVector_t > |
Private Member Functions | |
void | FindTPC (std::vector< const TGeoNode * > &path, unsigned int depth) |
void | MakeTPC (std::vector< const TGeoNode * > &path, int depth) |
void | FindOpDet (std::vector< const TGeoNode * > &path, unsigned int depth) |
void | MakeOpDet (std::vector< const TGeoNode * > &path, int depth) |
void | InitCryoBoundaries () |
Fill the boundary information of the cryostat. More... | |
Private Attributes | |
LocalTransformation_t | fTrans |
Cryostat-to-world transformation. More... | |
TPCList_t | fTPCs |
List of tpcs in this cryostat. More... | |
OpDetList_t | fOpDets |
List of opdets in this cryostat. More... | |
TGeoVolume * | fVolume |
Total volume of cryostat, called volCryostat in GDML file. More... | |
std::string | fOpDetGeoName |
Name of opdet geometry elements in gdml. More... | |
geo::CryostatID | fID |
ID of this cryostat. More... | |
Cryostat geometry information | |
static constexpr unsigned int | MaxVerbosity = 3 |
Maximum verbosity supported by PrintCryostatInfo() . More... | |
double | HalfWidth () const |
Half width of the cryostat [cm]. More... | |
double | HalfHeight () const |
Half height of the cryostat [cm]. More... | |
double | HalfLength () const |
Half height of the cryostat [cm]. More... | |
double | Width () const |
Full width of the cryostat [cm]. More... | |
double | Height () const |
Full height of the cryostat [cm]. More... | |
double | Length () const |
Length of the cryostat [cm]. More... | |
double | Mass () const |
Mass of the cryostat. More... | |
const TGeoVolume * | Volume () const |
Pointer to ROOT's volume descriptor. More... | |
geo::BoxBoundedGeo const & | Boundaries () const |
Returns boundaries of the cryostat (in centimetres). More... | |
void | Boundaries (double *boundaries) const |
Fills boundaries of the cryostat (in centimetres). More... | |
geo::Point_t | GetCenter () const |
Returns the geometrical center of the cryostat. More... | |
geo::BoxBoundedGeo const & | BoundingBox () const |
Returns the bounding box of this cryostat. More... | |
geo::CryostatID const & | ID () const |
Returns the identifier of this cryostat. More... | |
template<typename Stream > | |
void | PrintCryostatInfo (Stream &&out, std::string indent="", unsigned int verbosity=1) const |
Prints information about this cryostat. More... | |
std::string | CryostatInfo (std::string indent="", unsigned int verbosity=1) const |
Returns a string with cryostat information. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from geo::BoxBoundedGeo | |
static bool | CoordinateContained (double c, double min, double max, double wiggle=1.) |
Returns whether the specified coordinate is in a range. More... | |
static bool | CoordinateContained (double c, double const *range, double wiggle=1.) |
Returns whether the specified coordinate is in a range. More... | |
static void | set_min (Coord_t &var, Coord_t value) |
Sets var to value if value is smaller than the current var value. More... | |
static void | set_max (Coord_t &var, Coord_t value) |
Sets var to value if value is larger than the current var value. More... | |
static void | set_min (Coords_t &var, geo::Point_t const &value) |
Sets each coordinate of var to the one in value if the latter is smaller. More... | |
static void | set_max (Coords_t &var, geo::Point_t const &value) |
Sets each coordinate of var to the one in value if the latter is larger. More... | |
Geometry information for a single cryostat.
Definition at line 43 of file CryostatGeo.h.
using geo::CryostatGeo::ElementIteratorBox = TPCList_t const& |
Type returned by IterateElements()
.
Definition at line 56 of file CryostatGeo.h.
Definition at line 53 of file CryostatGeo.h.
Type of points in the local GDML cryostat frame.
Definition at line 78 of file CryostatGeo.h.
|
private |
Definition at line 472 of file CryostatGeo.h.
Type of displacement vectors in the local GDML cryostat frame.
Definition at line 81 of file CryostatGeo.h.
using geo::CryostatGeo::OpDetList_t = std::vector<geo::OpDetGeo> |
Type used internally to store the optical detectors.
Definition at line 51 of file CryostatGeo.h.
using geo::CryostatGeo::TPCList_t = std::vector<geo::TPCGeo> |
Type used internally to store the TPCs.
Definition at line 48 of file CryostatGeo.h.
geo::CryostatGeo::CryostatGeo | ( | TGeoNode const & | node, |
geo::TransformationMatrix && | trans, | ||
TPCList_t && | TPCs, | ||
OpDetList_t && | OpDets | ||
) |
Construct a representation of a single cryostat of the detector.
Definition at line 33 of file CryostatGeo.cxx.
|
inline |
Returns boundaries of the cryostat (in centimetres).
Definition at line 115 of file CryostatGeo.h.
void geo::CryostatGeo::Boundaries | ( | double * | boundaries | ) | const |
Fills boundaries of the cryostat (in centimetres).
boundaries | filled as: [0] -x [1] +x [2] -y [3] +y [4] -z [5] +z |
Definition at line 208 of file CryostatGeo.cxx.
|
inline |
Returns the bounding box of this cryostat.
Definition at line 128 of file CryostatGeo.h.
std::string geo::CryostatGeo::CryostatInfo | ( | std::string | indent = "" , |
unsigned int | verbosity = 1 |
||
) | const |
Returns a string with cryostat information.
PrintCryostatInfo()
The arguments and provided information are the same as in PrintCryostatInfo()
.
Definition at line 220 of file CryostatGeo.cxx.
|
private |
|
private |
geo::TPCID::TPCID_t geo::CryostatGeo::FindTPCAtPosition | ( | double const | worldLoc[3], |
double const | wiggle | ||
) | const |
Returns the index of the TPC at specified location.
worldLoc | 3D coordinates of the point (world reference frame) |
wiggle | a small factor (like 1+epsilon) to avoid rounding errors |
geo::TPCID::InvalidID
if no TPC is there PositionToTPCID()
instead Definition at line 127 of file CryostatGeo.cxx.
|
inline |
Returns the geometrical center of the cryostat.
Definition at line 124 of file CryostatGeo.h.
unsigned int geo::CryostatGeo::GetClosestOpDet | ( | geo::Point_t const & | point | ) | const |
Returns the index of the optical detector in this cryostat closest to point
.
Definition at line 239 of file CryostatGeo.cxx.
unsigned int geo::CryostatGeo::GetClosestOpDet | ( | double const * | point | ) | const |
Definition at line 254 of file CryostatGeo.cxx.
geo::OpDetGeo const * geo::CryostatGeo::GetClosestOpDetPtr | ( | geo::Point_t const & | point | ) | const |
Returns the optical detector det in this cryostat nearest to point
. If there are no optical detectors, nullptr
is returned.
Definition at line 231 of file CryostatGeo.cxx.
Alias for TPC()
.
Definition at line 223 of file CryostatGeo.h.
Alias for TPCPtr()
.
Definition at line 297 of file CryostatGeo.h.
double geo::CryostatGeo::HalfHeight | ( | ) | const |
Half height of the cryostat [cm].
Definition at line 196 of file CryostatGeo.cxx.
double geo::CryostatGeo::HalfLength | ( | ) | const |
Half height of the cryostat [cm].
Definition at line 202 of file CryostatGeo.cxx.
double geo::CryostatGeo::HalfWidth | ( | ) | const |
Half width of the cryostat [cm].
Definition at line 190 of file CryostatGeo.cxx.
|
inline |
Alias for HasTPC()
.
Definition at line 193 of file CryostatGeo.h.
|
inline |
Alias for HasTPC(geo::TPCID const&)
Definition at line 205 of file CryostatGeo.h.
|
inline |
Returns whether a TPC with index itpc is present in this cryostat.
itpc | index of TPC in this cryostat |
Definition at line 190 of file CryostatGeo.h.
|
inline |
Returns whether the TPC in tpcid is present in this cryostat.
tpcid | full TPC ID |
The cryostat number in tpcid is ignored, as it is ignored whether tpcid is invalid.
Definition at line 203 of file CryostatGeo.h.
|
inline |
Full height of the cryostat [cm].
Definition at line 105 of file CryostatGeo.h.
|
inline |
|
private |
Fill the boundary information of the cryostat.
Definition at line 258 of file CryostatGeo.cxx.
auto geo::CryostatGeo::IterateElements | ( | ) | const |
Returns an object suitable for iterating through all TPCs.
IterateTPCs()
The returned value can be used in a range-for loop like:
The resulting sequence exposes the TPCs within the cryostat in their ID order, from TPC 0
to NTPC() - 1
.
This method is designed for templated code, where the object obj.IterateElements()
may be a geo::CryostatGeo
or some other one. For non-template code, prefer IterateTPCs()
for clarity.
Definition at line 119 of file CryostatGeo.cxx.
|
inline |
Returns an object suitable for iterating through all TPCs.
IterateElements()
The returned value can be used in a range-for loop like:
The resulting sequence exposes the TPCs within the cryostat in their ID order, from TPC 0
to NTPC() - 1
.
A version of this functionality designed for template code is provided under the generic name IterateElements()
.
Definition at line 258 of file CryostatGeo.h.
|
inline |
Length of the cryostat [cm].
Definition at line 107 of file CryostatGeo.h.
|
inline |
Transform point from local cryostat frame to world frame.
Definition at line 387 of file CryostatGeo.h.
|
inline |
Transform point from local cryostat frame to world frame.
geo::Point_t
, geo::CryostatGeo::LocalPoint_t
, geo::Vector_t
and geo::CryostatGeo::LocalVector_t
, and then use the method geo::CryostatGeo::toWorldCoords()
instead. Definition at line 399 of file CryostatGeo.h.
|
inline |
Transform direction vector from local to world.
Definition at line 407 of file CryostatGeo.h.
|
private |
|
private |
|
inline |
Mass of the cryostat.
Definition at line 109 of file CryostatGeo.h.
unsigned int geo::CryostatGeo::MaxPlanes | ( | ) | const |
Returns the largest number of planes among the TPCs in this cryostat.
Definition at line 170 of file CryostatGeo.cxx.
unsigned int geo::CryostatGeo::MaxWires | ( | ) | const |
Returns the largest number of wires among the TPCs in this cryostat.
Definition at line 180 of file CryostatGeo.cxx.
|
inline |
|
inline |
Number of optical detectors in this TPC.
Definition at line 361 of file CryostatGeo.h.
|
inline |
const OpDetGeo & geo::CryostatGeo::OpDet | ( | unsigned int | iopdet | ) | const |
Return the iopdet'th optical detector in the cryostat.
Definition at line 107 of file CryostatGeo.cxx.
|
inline |
Get name of opdet geometry element.
Definition at line 377 of file CryostatGeo.h.
TPCGeo const & geo::CryostatGeo::PositionToTPC | ( | geo::Point_t const & | point, |
double | wiggle | ||
) | const |
Returns the ID of the TPC at specified location.
point | the location (world reference frame) |
wiggle | a small factor (like 1+epsilon) to avoid rounding errors |
Definition at line 148 of file CryostatGeo.cxx.
|
inline |
Returns the ID of the TPC at specified location.
worldLoc | 3D coordinates of the point (world reference frame) |
wiggle | a small factor (like 1+epsilon) to avoid rounding errors |
Definition at line 334 of file CryostatGeo.h.
geo::TPCID geo::CryostatGeo::PositionToTPCID | ( | geo::Point_t const & | point, |
double | wiggle | ||
) | const |
Returns the ID of the TPC at specified location.
point | 3D coordinates of the point (world reference frame) |
wiggle | a small factor (like 1+epsilon) to avoid rounding errors |
Definition at line 138 of file CryostatGeo.cxx.
geo::TPCGeo const * geo::CryostatGeo::PositionToTPCptr | ( | geo::Point_t const & | point, |
double | wiggle | ||
) | const |
Returns a pointer to the TPC at specified location.
point | position in space [cm] |
wiggle | a small factor (like 1+ε) to avoid rounding errors |
geo::TPCGeo
at point
(nullptr
if none) Definition at line 161 of file CryostatGeo.cxx.
void geo::CryostatGeo::PrintCryostatInfo | ( | Stream && | out, |
std::string | indent = "" , |
||
unsigned int | verbosity = 1 |
||
) | const |
Prints information about this cryostat.
Stream | type of output stream to use |
out | stream to send the information to |
indent | prepend each line with this string |
verbosity | amount of information printed |
Note that the first line out the output is not indented.
The constant MaxVerbosity
is set to the highest supported verbosity level.
Definition at line 489 of file CryostatGeo.h.
void geo::CryostatGeo::SortSubVolumes | ( | geo::GeoObjectSorter const & | sorter | ) |
Method to sort TPCGeo objects.
Definition at line 63 of file CryostatGeo.cxx.
|
inline |
Transform point from world frame to local cryostat frame.
Definition at line 431 of file CryostatGeo.h.
|
inline |
Transform direction vector from world to local.
Definition at line 439 of file CryostatGeo.h.
|
inline |
Transform point from local cryostat frame to world frame.
Definition at line 403 of file CryostatGeo.h.
|
inline |
Transform direction vector from local to world.
Definition at line 411 of file CryostatGeo.h.
const TPCGeo & geo::CryostatGeo::TPC | ( | unsigned int | itpc | ) | const |
Return the itpc'th TPC in the cryostat.
cet::exception | (category "TPCOutOfRange") if no such TPC |
Definition at line 93 of file CryostatGeo.cxx.
Returns the TPC in tpcid from this cryostat.
tpcid | full TPC ID |
cet::exception | (category "TPCOutOfRange") if no such TPC |
The cryostat number in tpcid is ignored, as it is ignored whether tpcid is invalid.
Definition at line 220 of file CryostatGeo.h.
|
inline |
Returns the TPC number itpc from this cryostat.
itpc | the number of local TPC |
Definition at line 283 of file CryostatGeo.h.
Returns the TPC in tpcid from this cryostat.
tpcid | full TPC ID |
The cryostat number in tpcid is ignored, as it is ignored whether tpcid is invalid.
Definition at line 294 of file CryostatGeo.h.
|
inline |
Returns an object suitable for iterating through all TPCs.
IterateTPCs()
, IterateElements()
The returned value can be used in a range-for loop like:
The resulting sequence exposes the TPCs within the cryostat in their ID order, from TPC 0
to NTPC() - 1
.
TPCs()
is informally deprecated because it used to return a collection of geo::TPCGeo
and it might soon be unable to do so. For iterations, IterateTPCs()
is just as good. Definition at line 275 of file CryostatGeo.h.
void geo::CryostatGeo::UpdateAfterSorting | ( | geo::CryostatID | cryoid | ) |
Performs all needed updates after geometry has sorted the cryostats.
Definition at line 76 of file CryostatGeo.cxx.
|
inline |
Pointer to ROOT's volume descriptor.
Definition at line 111 of file CryostatGeo.h.
|
inline |
Full width of the cryostat [cm].
Definition at line 103 of file CryostatGeo.h.
|
inline |
Transform point from world frame to local cryostat frame.
Definition at line 415 of file CryostatGeo.h.
|
inline |
Transform point from world frame to local cryostat frame.
geo::Point_t
, geo::CryostatGeo::LocalPoint_t
, geo::Vector_t
and geo::CryostatGeo::LocalVector_t
, and then use the method geo::CryostatGeo::toLocalCoords()
instead. Definition at line 427 of file CryostatGeo.h.
|
inline |
Transform direction vector from world to local.
Definition at line 435 of file CryostatGeo.h.
|
private |
ID of this cryostat.
Definition at line 479 of file CryostatGeo.h.
|
private |
Name of opdet geometry elements in gdml.
Definition at line 478 of file CryostatGeo.h.
|
private |
List of opdets in this cryostat.
Definition at line 476 of file CryostatGeo.h.
|
private |
List of tpcs in this cryostat.
Definition at line 475 of file CryostatGeo.h.
|
private |
Cryostat-to-world transformation.
Definition at line 474 of file CryostatGeo.h.
|
private |
Total volume of cryostat, called volCryostat in GDML file.
Definition at line 477 of file CryostatGeo.h.
|
static |
Maximum verbosity supported by PrintCryostatInfo()
.
Definition at line 171 of file CryostatGeo.h.