#include <geo_types.h>
Public Types | |
using | WireID_t = unsigned int |
Type for the ID number. More... | |
using | ThisID_t = WireID |
Type of this ID. More... | |
using | ParentID_t = PlaneID |
Type of the parent ID. More... | |
template<std::size_t L> | |
using | ID_t = details::AbsIDtype< L, ThisID_t > |
Type of the ID with the specified level L . More... | |
template<std::size_t A> | |
using | UpperID_t = details::RelIDtype< A, ThisID_t > |
Type of the ID A levels above this one. More... | |
Public Types inherited from geo::PlaneID | |
using | PlaneID_t = unsigned int |
Type for the ID number. More... | |
using | ThisID_t = PlaneID |
Type of this ID. More... | |
using | ParentID_t = TPCID |
Type of the parent ID. More... | |
template<std::size_t L> | |
using | ID_t = details::AbsIDtype< L, ThisID_t > |
Type of the ID with the specified level L . More... | |
template<std::size_t A> | |
using | UpperID_t = details::RelIDtype< A, ThisID_t > |
Type of the ID A levels above this one. More... | |
Public Types inherited from geo::TPCID | |
using | TPCID_t = unsigned int |
Type for the ID number. More... | |
using | ThisID_t = TPCID |
Type of this ID. More... | |
using | ParentID_t = CryostatID |
Type of the parent ID. More... | |
template<std::size_t L> | |
using | ID_t = details::AbsIDtype< L, ThisID_t > |
Type of the ID with the specified level L . More... | |
template<std::size_t A> | |
using | UpperID_t = details::RelIDtype< A, ThisID_t > |
Type of the ID A levels above this one. More... | |
Public Types inherited from geo::CryostatID | |
using | CryostatID_t = unsigned int |
Type for the ID number. More... | |
using | ThisID_t = CryostatID |
Type of this ID. More... | |
using | ParentID_t = void |
Type of the parent ID (none!). More... | |
template<std::size_t L> | |
using | ID_t = details::AbsIDtype< L, ThisID_t > |
Type of the ID with the specified level L . More... | |
template<std::size_t A> | |
using | UpperID_t = details::RelIDtype< A, ThisID_t > |
Type of the ID A levels above this one. More... | |
Public Member Functions | |
constexpr | WireID ()=default |
Default constructor: an invalid TPC ID. More... | |
constexpr | WireID (PlaneID const &planeid, WireID_t w) |
Constructor: wire with index w in the plane identified by planeid. More... | |
constexpr | WireID (CryostatID_t c, TPCID_t t, PlaneID_t p, WireID_t w) |
constexpr auto const & | deepestIndex () const |
Returns the value of the deepest ID available (wire's). More... | |
auto & | deepestIndex () |
Returns the deepest ID available (wire's). More... | |
constexpr ParentID_t const & | parentID () const |
Return the parent ID of this one (a plane ID). More... | |
ParentID_t & | parentID () |
Return the parent ID of this one (a plane ID). More... | |
template<std::size_t Index = 0U> | |
constexpr auto | getIndex () const |
Returns the index level Index of this type. More... | |
template<std::size_t Index = 0U> | |
auto & | writeIndex () |
Returns the index level Index of this type. More... | |
template<std::size_t Above> | |
constexpr auto | getRelIndex () const |
Returns the index Above levels higher than Level . More... | |
constexpr WireID const & | asWireID () const |
Conversion to WireID (for convenience of notation). More... | |
WireID & | asWireID () |
Conversion to WireID (for convenience of notation). More... | |
constexpr WireID const & | asConstWireID () |
Conversion to WireID (for convenience of notation). More... | |
constexpr int | cmp (WireID const &other) const |
Returns < 0 if this is smaller than tpcid, 0 if equal, > 0 if larger. More... | |
constexpr PlaneID const & | planeID () const |
std::string | toString () const |
Human-readable representation of the wire ID. More... | |
operator std::string () const | |
Public Member Functions inherited from geo::PlaneID | |
constexpr | PlaneID ()=default |
Default constructor: an invalid plane ID. More... | |
constexpr | PlaneID (TPCID const &tpcid, PlaneID_t p) |
Constructor: plane with index p in the TPC identified by tpcid. More... | |
constexpr | PlaneID (CryostatID_t c, TPCID_t t, PlaneID_t p) |
Constructor: plane with index p in the cryostat index c, TPC index t. More... | |
constexpr auto const & | deepestIndex () const |
Returns the value of the deepest ID available (plane's). More... | |
auto & | deepestIndex () |
Returns the deepest ID available (plane's). More... | |
constexpr ParentID_t const & | parentID () const |
Return the parent ID of this one (a TPC ID). More... | |
ParentID_t & | parentID () |
Return the parent ID of this one (a TPC ID). More... | |
template<std::size_t Index = 0U> | |
constexpr auto | getIndex () const |
Returns the index level Index of this type. More... | |
template<std::size_t Index = 0U> | |
auto & | writeIndex () |
Returns the index level Index of this type. More... | |
template<std::size_t Above> | |
constexpr auto | getRelIndex () const |
Returns the index Above levels higher than Level . More... | |
constexpr PlaneID const & | asPlaneID () const |
Conversion to PlaneID (for convenience of notation). More... | |
PlaneID & | asPlaneID () |
Conversion to PlaneID (for convenience of notation). More... | |
constexpr PlaneID const & | asConstPlaneID () |
Conversion to PlaneID (for convenience of notation). More... | |
constexpr int | cmp (PlaneID const &other) const |
Returns < 0 if this is smaller than other, 0 if equal, > 0 if larger. More... | |
std::string | toString () const |
Human-readable representation of the plane ID. More... | |
operator std::string () const | |
Public Member Functions inherited from geo::TPCID | |
constexpr | TPCID ()=default |
Default constructor: an invalid TPC ID. More... | |
constexpr | TPCID (CryostatID const &cryoid, TPCID_t t) |
Constructor: TPC with index t in the cryostat identified by cryoid. More... | |
constexpr | TPCID (CryostatID_t c, TPCID_t t) |
Constructor: TPC with index t in the cryostat index c. More... | |
constexpr auto const & | deepestIndex () const |
Returns the value of the deepest ID available (TPC's). More... | |
auto & | deepestIndex () |
Returns the deepest ID available (TPC's). More... | |
constexpr ParentID_t const & | parentID () const |
Return the parent ID of this one (a cryostat ID). More... | |
ParentID_t & | parentID () |
Return the parent ID of this one (a cryostat ID). More... | |
template<std::size_t Index = 0U> | |
constexpr auto | getIndex () const |
Returns the index level Index of this type. More... | |
template<std::size_t Index = 0U> | |
auto & | writeIndex () |
Returns the index level Index of this type. More... | |
template<std::size_t Above> | |
constexpr auto | getRelIndex () const |
Returns the index Above levels higher than Level . More... | |
constexpr TPCID const & | asTPCID () const |
Conversion to TPCID (for convenience of notation). More... | |
TPCID & | asTPCID () |
Conversion to TPCID (for convenience of notation). More... | |
constexpr TPCID const & | asConstTPCID () |
Conversion to TPCID (for convenience of notation). More... | |
constexpr int | cmp (TPCID const &other) const |
Returns < 0 if this is smaller than other, 0 if equal, > 0 if larger. More... | |
std::string | toString () const |
Human-readable representation of the TPC ID. More... | |
operator std::string () const | |
Public Member Functions inherited from geo::CryostatID | |
constexpr | CryostatID ()=default |
Default constructor: an invalid cryostat. More... | |
constexpr | CryostatID (CryostatID_t c) |
Constructor: valid ID of cryostat with index c. More... | |
constexpr | CryostatID (CryostatID_t c, bool valid) |
Constructor: valid ID of cryostat with index c. More... | |
constexpr auto const & | deepestIndex () const |
Returns the value of the deepest ID available (cryostat's). More... | |
auto & | deepestIndex () |
Returns the deepest ID available (cryostat's). More... | |
constexpr ParentID_t | parentID () const |
Return the parent ID of this one (void). More... | |
ParentID_t | parentID () |
Return the parent ID of this one (void). More... | |
template<std::size_t Index = 0U> | |
constexpr auto | getIndex () const |
Returns the index level Index of this type. More... | |
template<std::size_t Index = 0U> | |
auto & | writeIndex () |
Returns the index level Index of this type. More... | |
template<std::size_t Above> | |
constexpr auto | getRelIndex () const |
Returns the index Above levels higher than Level . More... | |
constexpr int | cmp (CryostatID const &other) const |
Returns < 0 if this is smaller than other, 0 if equal, > 0 if larger. More... | |
constexpr CryostatID const & | asCryostatID () const |
Conversion to CryostatID (for convenience of notation). More... | |
CryostatID & | asCryostatID () |
Conversion to CryostatID (for convenience of notation). More... | |
constexpr CryostatID const & | asConstCryostatID () |
Conversion to CryostatID (for convenience of notation). More... | |
constexpr | operator bool () const |
Returns true if the ID is valid. More... | |
constexpr bool | operator! () const |
Returns true if the ID is not valid. More... | |
void | setValidity (bool valid) |
Sets the validity of the ID. More... | |
void | markValid () |
Sets the ID as valid. More... | |
void | markInvalid () |
Sets the ID as invalid. More... | |
std::string | toString () const |
Human-readable representation of the cryostat ID. More... | |
operator std::string () const | |
Static Public Member Functions | |
static constexpr WireID_t | getInvalidID () |
Return the value of the invalid wire ID as a r-value. More... | |
Static Public Member Functions inherited from geo::PlaneID | |
static constexpr PlaneID_t | getInvalidID () |
Return the value of the invalid plane ID as a r-value. More... | |
Static Public Member Functions inherited from geo::TPCID | |
static constexpr TPCID_t | getInvalidID () |
Return the value of the invalid TPC ID as a r-value. More... | |
Static Public Member Functions inherited from geo::CryostatID | |
static constexpr CryostatID_t | getInvalidID () |
Return the value of the invalid ID as a r-value. More... | |
template<typename T > | |
static constexpr int | ThreeWayComparison (T a, T b) |
Returns < 0 if a < b, 0 if a == b, > 0 if a > b. More... | |
Public Attributes | |
WireID_t | Wire = InvalidID |
Index of the wire within its plane. More... | |
Public Attributes inherited from geo::PlaneID | |
PlaneID_t | Plane = InvalidID |
Index of the plane within its TPC. More... | |
Public Attributes inherited from geo::TPCID | |
TPCID_t | TPC = InvalidID |
Index of the TPC within its cryostat. More... | |
Public Attributes inherited from geo::CryostatID | |
bool | isValid = false |
Whether this ID points to a valid element. More... | |
CryostatID_t | Cryostat = InvalidID |
Index of cryostat. More... | |
Static Public Attributes | |
static constexpr WireID_t | InvalidID = std::numeric_limits<WireID_t>::max() |
Special code for an invalid ID. More... | |
static constexpr auto | Level = geo::ElementLevel::Wire |
Level of this element. More... | |
Static Public Attributes inherited from geo::PlaneID | |
static constexpr PlaneID_t | InvalidID = std::numeric_limits<PlaneID_t>::max() |
Special code for an invalid ID. More... | |
static constexpr auto | Level = geo::ElementLevel::Plane |
Level of this element. More... | |
Static Public Attributes inherited from geo::TPCID | |
static constexpr TPCID_t | InvalidID = std::numeric_limits<TPCID_t>::max() |
Special code for an invalid ID. More... | |
static constexpr auto | Level = geo::ElementLevel::TPC |
Level of this element. More... | |
Static Public Attributes inherited from geo::CryostatID | |
static constexpr CryostatID_t | InvalidID = std::numeric_limits<CryostatID_t>::max() |
Special code for an invalid ID. More... | |
static constexpr auto | Level = geo::ElementLevel::Cryostat |
Level of this element. More... | |
Definition at line 560 of file geo_types.h.
using geo::WireID::ID_t = details::AbsIDtype<L, ThisID_t> |
Type of the ID with the specified level L
.
Definition at line 568 of file geo_types.h.
using geo::WireID::ParentID_t = PlaneID |
Type of the parent ID.
Definition at line 564 of file geo_types.h.
using geo::WireID::ThisID_t = WireID |
Type of this ID.
Definition at line 563 of file geo_types.h.
using geo::WireID::UpperID_t = details::RelIDtype<A, ThisID_t> |
Type of the ID A
levels above this one.
Definition at line 572 of file geo_types.h.
using geo::WireID::WireID_t = unsigned int |
Type for the ID number.
Definition at line 561 of file geo_types.h.
|
default |
Default constructor: an invalid TPC ID.
Constructor: wire with index w in the plane identified by planeid.
Definition at line 586 of file geo_types.h.
|
inline |
Constructor: wire with index w in cryostat index c, TPC index t, plane index p
Definition at line 591 of file geo_types.h.
|
inline |
Conversion to WireID (for convenience of notation).
Definition at line 624 of file geo_types.h.
|
inline |
Conversion to WireID (for convenience of notation).
Definition at line 620 of file geo_types.h.
|
inline |
Conversion to WireID (for convenience of notation).
Definition at line 622 of file geo_types.h.
|
inline |
Returns < 0 if this is smaller than tpcid, 0 if equal, > 0 if larger.
Definition at line 627 of file geo_types.h.
|
inline |
|
inline |
constexpr auto geo::WireID::getIndex | ( | ) | const |
|
inlinestatic |
Return the value of the invalid wire ID as a r-value.
Definition at line 644 of file geo_types.h.
constexpr auto geo::WireID::getRelIndex | ( | ) | const |
Returns the index Above
levels higher than Level
.
Definition at line 987 of file geo_types.h.
|
inlineexplicit |
Definition at line 597 of file geo_types.h.
|
inline |
Return the parent ID of this one (a plane ID).
Definition at line 606 of file geo_types.h.
|
inline |
Return the parent ID of this one (a plane ID).
Definition at line 608 of file geo_types.h.
|
inline |
Backward compatibility; use the wire directly or a explicit cast instead
Definition at line 638 of file geo_types.h.
|
inline |
Human-readable representation of the wire ID.
Definition at line 596 of file geo_types.h.
auto & geo::WireID::writeIndex | ( | ) |
Special code for an invalid ID.
Definition at line 577 of file geo_types.h.
|
static |
Level of this element.
Definition at line 641 of file geo_types.h.
Index of the wire within its plane.
Definition at line 580 of file geo_types.h.