8 #ifndef WIRECELL_WIRESELECTORS 9 #define WIRECELL_WIRESELECTORS 12 #include <boost/function.hpp> 23 : layers(layer_mask), face(face), apa(apa) {}
28 if (layers && !(layers&ident.
ilayer())) {
return false; }
29 if (apa >= 0 && ident.
apa() !=
apa) {
return false; }
30 if (face >= 0 && ident.
face() !=
face) {
return false; }
std::shared_ptr< const IWire > pointer
bool operator()(IWire::pointer wire)
wire_selector select_all_wires
boost::function< bool(IWire::pointer)> wire_selector
Select wires by plane (and apa/face)
int ilayer() const
Layer as integer (not index!)
wire_selector select_uvw_wires[3]
wire_selector select_u_wires
wire_selector select_w_wires
wire_selector select_v_wires
int apa() const
APA number.
static const int layer_mask
WirePlaneSelector(int layer_mask, int face=0, int apa=0)
int face() const
APA face number.