18 #ifndef WireSelector_H 19 #define WireSelector_H 54 WireInfo() : y(0.0), z(0.0), length(0.0), pitch(0.0), channel(0) {}
56 float a_driftMax,
float a_length,
float a_pitch,
58 : x(a_x), y(a_y), z(a_z), driftMax(a_driftMax), length(a_length), pitch(a_pitch), channel(a_channel) { }
59 float x1()
const {
return driftMax > 0.0 ? x : x + driftMax; }
60 float x2()
const {
return driftMax < 0.0 ? x : x + driftMax; }
61 float y1()
const {
return y - 0.5*length; }
62 float y2()
const {
return y + 0.5*length; }
63 float z1()
const {
return z - 0.5*pitch; }
64 float z2()
const {
return z + 0.5*pitch; }
65 float driftSign()
const {
return driftMax > 0.0 ? 1.0 : -1.0; }
143 void selectView(
View view);
148 void selectWireAngle(
double wireAngle,
double tol =0.001);
152 void selectDrift(
double dmin,
double dmax =1.e20);
155 void selectTpcSet(
Index itps);
179 double m_wireAngle =999.;
180 double m_wireAngleTolerance =999.;
181 double m_driftMin = 0.0;
182 double m_driftMax = 1.e20;
185 bool m_haveData =
false;
double wireAngleTolerance() const
const WireInfoMap & dataMap() const
enum geo::_plane_proj View_t
Enumerate the possible plane projections.
std::vector< float > xWire
const PlaneIDVector & planeIDs() const
The data type to uniquely identify a Plane.
const WireInfoVector & data() const
const GeometryCore * geometry() const
std::vector< Index > IndexVector
const WireSummary & wireSummary() const
std::vector< WireInfo > WireInfoVector
std::enable_if_t<(I==std::tuple_size_v< Tuple >)> fillData(Tuple &, int const ncols[[maybe_unused]], int const currentcol[[maybe_unused]], char **)
std::vector< float > zWire
std::vector< PlaneID > PlaneIDVector
Description of geometry of one entire detector.
Definition of data types for geometry description.
std::vector< float > xCathode
std::multimap< Index, const WireInfo * > WireInfoMap
detail::Node< FrameID, bool > PlaneID
WireInfo(float a_x, float a_y, float a_z, float a_driftMax, float a_length, float a_pitch, Index a_channel)
LArSoft geometry interface.
const IndexVector & cryostats() const
WireSummary m_wireSummary