14 #ifndef LARCOREALG_GEOMETRY_EXCEPTIONS_H 15 #define LARCOREALG_GEOMETRY_EXCEPTIONS_H 21 #include "cetlib_except/exception.h" 118 #endif // LARCOREALG_GEOMETRY_EXCEPTIONS_H int suggestedWire() const
Returns a better wire number.
bool hasBadWire() const
Returns whether we known the bad wire number.
The data type to uniquely identify a Plane.
bool isValid
Whether this ID points to a valid element.
int badWire() const
Returns the bad wire number.
InvalidWireError(std::string cat, int badWireNo, int betterWireNo)
Constructor: no plane information.
int fBetterWireNo
a suggestion for a good wire number
InvalidWireError(std::string cat, int badWireNo)
Constructor: no plane information and no suggestion.
InvalidWireError(std::string cat, geo::PlaneID const &planeID, int badWireNo, int betterWireNo)
Constructor with the complete information.
geo::PlaneID fPlaneID
plane the wire belongs to
geo::PlaneID const & planeID() const
Return the plane ID recorded with the exception.
InvalidWireError(std::string cat, geo::PlaneID const &planeID, int badWireNo)
Constructor: no wire suggestions.
Definition of data types for geometry description.
geo::WireID badWireID() const
Returns the bad wire ID.
static constexpr int InvalidWireNo
Value used to represent an invalid wire number.
bool hasPlane() const
Return whether a plane is recorded with the exception.
geo::WireID makeWireID(int wireNo) const
Transform a wire number into wire ID.
Exception thrown on invalid wire number.
unsigned int WireID_t
Type for the ID number.
geo::WireID suggestedWireID() const
Returns a better wire ID.
Namespace collecting geometry-related classes utilities.
bool hasSuggestedWire() const
Returns whether we known a better wire number.
int fWireNumber
the invalid wire number
cet::coded_exception< error, detail::translate > exception