LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Exception thrown on invalid wire number. More...
#include "Exceptions.h"
Public Member Functions | |
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 39 of file Exceptions.h.
|
inline |
Constructor with the complete information.
Definition at line 45 of file Exceptions.h.
|
inline |
Constructor: no wire suggestions.
Definition at line 50 of file Exceptions.h.
|
inline |
Constructor: no plane information.
Definition at line 55 of file Exceptions.h.
|
inline |
Constructor: no plane information and no suggestion.
Definition at line 60 of file Exceptions.h.
|
inline |
Returns the bad wire number.
Definition at line 70 of file Exceptions.h.
References fWireNumber.
|
inline |
Returns the bad wire ID.
Definition at line 73 of file Exceptions.h.
References fWireNumber, and makeWireID().
|
inline |
Returns whether we known the bad wire number.
Definition at line 67 of file Exceptions.h.
References fWireNumber, and InvalidWireNo.
|
inline |
Return whether a plane is recorded with the exception.
Definition at line 95 of file Exceptions.h.
References fPlaneID, and geo::CryostatID::isValid.
|
inline |
Returns whether we known a better wire number.
Definition at line 81 of file Exceptions.h.
References fBetterWireNo, and InvalidWireNo.
Referenced by hit::DisambigCheater::InitHitToWids().
|
inlineprivate |
Transform a wire number into wire ID.
Definition at line 112 of file Exceptions.h.
References fPlaneID.
Referenced by badWireID(), and suggestedWireID().
|
inline |
Return the plane ID recorded with the exception.
Definition at line 98 of file Exceptions.h.
References fPlaneID.
|
inline |
Returns a better wire number.
Definition at line 84 of file Exceptions.h.
References fBetterWireNo.
|
inline |
Returns a better wire ID.
Definition at line 87 of file Exceptions.h.
References fBetterWireNo, and makeWireID().
Referenced by cluster::ClusterCrawlerAlg::FindHammerClusters(), hit::DisambigCheater::InitHitToWids(), evd::RecoBaseDrawer::OpFlash2D(), shower::EMShowerAlg::Project3DPointOntoPlane_(), and cluster::ClusterCrawlerAlg::VtxMatch().
|
private |
a suggestion for a good wire number
Definition at line 109 of file Exceptions.h.
Referenced by hasSuggestedWire(), suggestedWire(), and suggestedWireID().
|
private |
plane the wire belongs to
Definition at line 103 of file Exceptions.h.
Referenced by hasPlane(), makeWireID(), and planeID().
|
private |
the invalid wire number
Definition at line 106 of file Exceptions.h.
Referenced by badWire(), badWireID(), and hasBadWire().
|
static |
Value used to represent an invalid wire number.
Definition at line 42 of file Exceptions.h.
Referenced by hasBadWire(), and hasSuggestedWire().