1 #ifndef WIRECELL_WIREPLANEID 2 #define WIRECELL_WIREPLANEID 72 return std::hash<int>()(wpid.
ident());
WirePlaneLayer_t layer() const
Layer as enum.
int ident() const
Unit ID as integer.
std::size_t operator()(const WireCell::WirePlaneId &wpid) const
const WirePlaneLayer_t iplane2layer[3]
bool operator==(const WirePlaneId &rhs)
int ilayer() const
Layer as integer (not index!)
bool valid() const
return true if valid
std::ostream & operator<<(std::ostream &os, const WireCell::WirePlaneId &wpid)
int apa() const
APA number.
bool operator<(const WirePlaneId &rhs)
Json::Value Configuration
WirePlaneLayer_t
Enumerate layer IDs. These are not indices!
bool operator!=(const WirePlaneId &rhs)
int convert< int >(const Configuration &cfg, const int &def)
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.