Public Member Functions | Public Attributes | List of all members
WireCell::WirePlaneSelector Struct Reference

Select wires by plane (and apa/face) More...

#include <IWireSelectors.h>

Public Member Functions

 WirePlaneSelector (int layer_mask, int face=0, int apa=0)
 
bool operator() (IWire::pointer wire)
 

Public Attributes

int layers
 
int face
 
int apa
 

Detailed Description

Select wires by plane (and apa/face)

Definition at line 19 of file IWireSelectors.h.

Constructor & Destructor Documentation

WireCell::WirePlaneSelector::WirePlaneSelector ( int  layer_mask,
int  face = 0,
int  apa = 0 
)
inline

Member Function Documentation

bool WireCell::WirePlaneSelector::operator() ( IWire::pointer  wire)
inline

Definition at line 25 of file IWireSelectors.h.

25  {
26  WirePlaneId ident = wire->planeid();
27 
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; }
31 
32  return true;
33  }

Member Data Documentation

int WireCell::WirePlaneSelector::apa

Definition at line 20 of file IWireSelectors.h.

int WireCell::WirePlaneSelector::face

Definition at line 20 of file IWireSelectors.h.

int WireCell::WirePlaneSelector::layers

Definition at line 20 of file IWireSelectors.h.


The documentation for this struct was generated from the following file: