12 #ifndef LARCOREALG_GEOMETRY_EXCEPTIONS_H 13 #define LARCOREALG_GEOMETRY_EXCEPTIONS_H 19 #include "cetlib_except/exception.h" 116 #endif // LARCOREALG_GEOMETRY_EXCEPTIONS_H int suggestedWire() const
Returns a better wire number.
PlaneID fPlaneID
plane the wire belongs to
WireID suggestedWireID() const
Returns a better wire ID.
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.
WireID badWireID() const
Returns the bad wire ID.
int fBetterWireNo
a suggestion for a good wire number
PlaneID const & planeID() const
Return the plane ID recorded with the exception.
InvalidWireError(std::string cat, int badWireNo)
Constructor: no plane information and no suggestion.
Definition of data types for geometry description.
InvalidWireError(std::string cat, PlaneID const &planeID, int badWireNo, int betterWireNo)
Constructor with the complete information.
InvalidWireError(std::string cat, PlaneID const &planeID, int badWireNo)
Constructor: no wire suggestions.
static constexpr int InvalidWireNo
Value used to represent an invalid wire number.
bool hasPlane() const
Return whether a plane is recorded with the exception.
Exception thrown on invalid wire number.
unsigned int WireID_t
Type for the ID number.
WireID makeWireID(int wireNo) const
Transform a wire number into wire ID.
bool hasSuggestedWire() const
Returns whether we known a better wire number.
int fWireNumber
the invalid wire number
cet::coded_exception< error, detail::translate > exception