![]() |
LArSoft
v10_04_05
Liquid Argon Software toolkit - https://larsoft.org/
|
Exception thrown on invalid wire number. More...
#include "Exceptions.h"
Public Member Functions | |
InvalidWireError (std::string cat, PlaneID const &planeID, int badWireNo, int betterWireNo) | |
Constructor with the complete information. More... | |
InvalidWireError (std::string cat, 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... | |
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... | |
WireID | suggestedWireID () const |
Returns a better wire ID. More... | |
Plane access | |
bool | hasPlane () const |
Return whether a plane is recorded with the exception. More... | |
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 | |
WireID | makeWireID (int wireNo) const |
Transform a wire number into wire ID. More... | |
Private Attributes | |
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 37 of file Exceptions.h.
|
inline |
Constructor with the complete information.
Definition at line 43 of file Exceptions.h.
|
inline |
Constructor: no wire suggestions.
Definition at line 48 of file Exceptions.h.
|
inline |
Constructor: no plane information.
Definition at line 53 of file Exceptions.h.
|
inline |
Constructor: no plane information and no suggestion.
Definition at line 58 of file Exceptions.h.
|
inline |
Returns the bad wire number.
Definition at line 68 of file Exceptions.h.
References fWireNumber.
|
inline |
Returns the bad wire ID.
Definition at line 71 of file Exceptions.h.
References fWireNumber, and makeWireID().
|
inline |
Returns whether we known the bad wire number.
Definition at line 65 of file Exceptions.h.
References fWireNumber, and InvalidWireNo.
|
inline |
Return whether a plane is recorded with the exception.
Definition at line 93 of file Exceptions.h.
References fPlaneID, and geo::CryostatID::isValid.
|
inline |
Returns whether we known a better wire number.
Definition at line 79 of file Exceptions.h.
References fBetterWireNo, and InvalidWireNo.
Referenced by hit::DisambigCheater::InitHitToWids().
|
inlineprivate |
Transform a wire number into wire ID.
Definition at line 110 of file Exceptions.h.
References fPlaneID.
Referenced by badWireID(), and suggestedWireID().
|
inline |
Return the plane ID recorded with the exception.
Definition at line 96 of file Exceptions.h.
References fPlaneID.
|
inline |
Returns a better wire number.
Definition at line 82 of file Exceptions.h.
References fBetterWireNo.
|
inline |
Returns a better wire ID.
Definition at line 85 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 107 of file Exceptions.h.
Referenced by hasSuggestedWire(), suggestedWire(), and suggestedWireID().
|
private |
plane the wire belongs to
Definition at line 101 of file Exceptions.h.
Referenced by hasPlane(), makeWireID(), and planeID().
|
private |
the invalid wire number
Definition at line 104 of file Exceptions.h.
Referenced by badWire(), badWireID(), and hasBadWire().
|
static |
Value used to represent an invalid wire number.
Definition at line 40 of file Exceptions.h.
Referenced by hasBadWire(), and hasSuggestedWire().