15 #ifndef LARCOREALG_GEOMETRY_EXCEPTIONS_H
16 #define LARCOREALG_GEOMETRY_EXCEPTIONS_H
23 #include "cetlib_except/exception.h"
164 wire_number(bad_wire), better_wire_number(better_wire)
167 int wire_number = -1;
168 int better_wire_number = -1;
174 #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
InvalidWireIDError(std::string cat, int bad_wire, int better_wire=-1)
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.
Definition of data types for geometry description.
InvalidWireIDError(std::string cat)
geo::WireID badWireID() const
Returns the bad wire ID.
InvalidWireError(std::string cat)
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.
Exception thrown on invalid wire number (e.g. NearestWireID())
geo::WireID suggestedWireID() const
Returns a better wire ID.
bool hasSuggestedWire() const
Returns whether we known a better wire number.
int fWireNumber
the invalid wire number