56 return 0 <= ind && ind < 3;
66 return !(*
this == rhs);
71 if (!this->
valid() || !rhs.
valid()) {
return false; }
85 o <<
"[WirePlaneId "<< wpid.
ident() <<
" ind:" << wpid.
index() <<
" layer:" << wpid.
layer() <<
" apa:" << wpid.
apa() <<
" face:" << wpid.
face();
86 if (!wpid.
valid()) { o <<
" bogus"; }
97 default: o <<
"<?>";
break;
WirePlaneLayer_t layer() const
Layer as enum.
int ident() const
Unit ID as integer.
static const int face_shift
bool operator==(const WirePlaneId &rhs)
int ilayer() const
Layer as integer (not index!)
bool valid() const
return true if valid
static const int apa_shift
std::ostream & operator<<(std::ostream &os, const WireCell::WirePlaneId &wpid)
int apa() const
APA number.
bool operator<(const WirePlaneId &rhs)
WirePlaneLayer_t
Enumerate layer IDs. These are not indices!
bool operator!=(const WirePlaneId &rhs)
static const int layer_mask
WirePlaneId(WirePlaneLayer_t layer, int face=0, int apa=0)
int index() const
Layer as index number (0,1 or 2). -1 if unknown.
int face() const
APA face number.