Exception thrown on invalid wire number. More...
#include <Exceptions.h>
  
 Public Member Functions | |
| InvalidWireError (std::string cat) | |
| InvalidWireError (std::string cat, geo::PlaneID const &planeID, int badWireNo, int betterWireNo) | |
| Constructor with the complete information.  More... | |
| InvalidWireError (std::string cat, geo::PlaneID const &planeID, int badWireNo) | |
| Constructor: no wire suggestions.  More... | |
| InvalidWireError (std::string cat, int badWireNo, int betterWireNo) | |
| Constructor: no plane information.  More... | |
| InvalidWireError (std::string cat, int badWireNo) | |
| Constructor: no plane information and no suggestion.  More... | |
Access to bad wire  | |
| bool | hasBadWire () const | 
| Returns whether we known the bad wire number.  More... | |
| int | badWire () const | 
| Returns the bad wire number.  More... | |
| geo::WireID | badWireID () const | 
| Returns the bad wire ID.  More... | |
Access to suggested wire  | |
| bool | hasSuggestedWire () const | 
| Returns whether we known a better wire number.  More... | |
| int | suggestedWire () const | 
| Returns a better wire number.  More... | |
| geo::WireID | suggestedWireID () const | 
| Returns a better wire ID.  More... | |
Plane access  | |
| bool | hasPlane () const | 
| Return whether a plane is recorded with the exception.  More... | |
| geo::PlaneID const & | planeID () const | 
| Return the plane ID recorded with the exception.  More... | |
Static Public Attributes | |
| static constexpr int | InvalidWireNo = std::numeric_limits<int>::max() | 
| Value used to represent an invalid wire number.  More... | |
Private Member Functions | |
| geo::WireID | makeWireID (int wireNo) const | 
| Transform a wire number into wire ID.  More... | |
Private Attributes | |
| geo::PlaneID | fPlaneID | 
| plane the wire belongs to  More... | |
| int | fWireNumber = InvalidWireNo | 
| the invalid wire number  More... | |
| int | fBetterWireNo = InvalidWireNo | 
| a suggestion for a good wire number  More... | |
Exception thrown on invalid wire number.
This class is thrown, e.g., by Geometry::NearestWireID(). It contains the erroneous wire number, a suggestion of which one might be the right one, and a plane ID.
The wire numbers are signed.
Definition at line 42 of file Exceptions.h.
      
  | 
  inline | 
Constructor: we don't have any information
Definition at line 51 of file Exceptions.h.
      
  | 
  inline | 
Constructor with the complete information.
Definition at line 54 of file Exceptions.h.
      
  | 
  inline | 
Constructor: no wire suggestions.
Definition at line 68 of file Exceptions.h.
      
  | 
  inline | 
Constructor: no plane information.
Definition at line 75 of file Exceptions.h.
      
  | 
  inline | 
Constructor: no plane information and no suggestion.
Definition at line 86 of file Exceptions.h.
      
  | 
  inline | 
Returns the bad wire number.
Definition at line 102 of file Exceptions.h.
      
  | 
  inline | 
Returns the bad wire ID.
Definition at line 105 of file Exceptions.h.
      
  | 
  inline | 
Returns whether we known the bad wire number.
Definition at line 99 of file Exceptions.h.
      
  | 
  inline | 
Return whether a plane is recorded with the exception.
Definition at line 129 of file Exceptions.h.
      
  | 
  inline | 
Returns whether we known a better wire number.
Definition at line 114 of file Exceptions.h.
      
  | 
  inlineprivate | 
Transform a wire number into wire ID.
Definition at line 146 of file Exceptions.h.
      
  | 
  inline | 
Return the plane ID recorded with the exception.
Definition at line 132 of file Exceptions.h.
      
  | 
  inline | 
Returns a better wire number.
Definition at line 117 of file Exceptions.h.
      
  | 
  inline | 
Returns a better wire ID.
Definition at line 120 of file Exceptions.h.
      
  | 
  private | 
a suggestion for a good wire number
Definition at line 143 of file Exceptions.h.
      
  | 
  private | 
plane the wire belongs to
Definition at line 137 of file Exceptions.h.
      
  | 
  private | 
the invalid wire number
Definition at line 140 of file Exceptions.h.
      
  | 
  static | 
Value used to represent an invalid wire number.
Definition at line 46 of file Exceptions.h.
 1.8.5