45 auto lp = geo::origin<LocalPoint_t>();
78 if (std::abs(locz) >
fHalfL) {
80 " extends beyond the wire, returning position at end point";
83 const double local[3] = { 0., 0., locz };
89 {
return ((TGeoTube*)
fWireNode->GetVolume()->GetShape())->GetRmax(); }
93 {
return ((TGeoTube*)
fWireNode->GetVolume()->GetShape())->GetRmin(); }
void Flip()
Set to swap the start and end wire.
Geometry description of a TPC wireThe wire is a single straight segment on a wire plane...
Point GetCenter() const
Returns the world coordinate of the center of the wire [cm].
double fThetaZ
angle of the wire with respect to the z direction
geo::Point_t fCenter
Center of the wire in world coordinates.
double DistanceFrom(geo::WireGeo const &wire) const
Returns 3D distance from the specified wire.
geo::Point_t toWorldCoords(LocalPoint_t const &local) const
Transform point from local wire frame to world frame.
double ThetaZ() const
Returns angle of wire with respect to z axis in the Y-Z plane in radians.
double fHalfL
half length of the wire
void UpdateAfterSorting(geo::WireID const &, bool flip)
void LocalToWorld(const double *wire, double *world) const
Transform point from local wire frame to world frame.
double RMax() const
Returns the outer half-size of the wire [cm].
Utilities to extend the interface of geometry vectors.
Vector Direction() const
Returns the wire direction as a norm-one vector.
Encapsulate the geometry of a wire.
double relLength(double local) const
Returns the relative length from center to be used when transforming.
std::vector< TGeoNode const * > GeoNodePath_t
MaybeLogger_< ELseverityLevel::ELsev_warning, false > LogWarning
constexpr T pi()
Returns the constant pi (up to 35 decimal digits of precision)
constexpr T RadiansToDegrees(T angle)
Converts the argument angle from radians into degrees ( )
std::vector< evd::details::RawDigitInfo_t >::const_iterator end(RawDigitCacheDataClass const &cache)
void GetCenter(double *xyz, double localz=0.0) const
Fills the world coordinate of a point on the wire.
Namespace collecting geometry-related classes utilities.
bool isParallelTo(geo::WireGeo const &wire) const
Returns if this wire is parallel to another.
double RMin() const
Returns the inner radius of the wire (usually 0) [cm].
WireGeo(GeoNodePath_t const &path, size_t depth)
const TGeoNode * fWireNode
Pointer to the wire node.
bool flipped
whether start and end are reversed