Public Member Functions | Public Attributes | List of all members
WireSelector::WireInfo Struct Reference

#include <WireSelector.h>

Public Member Functions

 WireInfo ()
 
 WireInfo (float a_x, float a_y, float a_z, float a_driftMax, float a_length, float a_pitch, Index a_channel)
 
float x1 () const
 
float x2 () const
 
float y1 () const
 
float y2 () const
 
float z1 () const
 
float z2 () const
 
float driftSign () const
 

Public Attributes

float x
 
float y
 
float z
 
float driftMax
 
float length
 
float pitch
 
Index channel
 

Detailed Description

Definition at line 46 of file WireSelector.h.

Constructor & Destructor Documentation

WireSelector::WireInfo::WireInfo ( )
inline

Definition at line 54 of file WireSelector.h.

WireSelector::WireInfo::WireInfo ( float  a_x,
float  a_y,
float  a_z,
float  a_driftMax,
float  a_length,
float  a_pitch,
Index  a_channel 
)
inline

Definition at line 55 of file WireSelector.h.

58  : x(a_x), y(a_y), z(a_z), driftMax(a_driftMax), length(a_length), pitch(a_pitch), channel(a_channel) { }

Member Function Documentation

float WireSelector::WireInfo::driftSign ( ) const
inline

Definition at line 65 of file WireSelector.h.

65 { return driftMax > 0.0 ? 1.0 : -1.0; }
float WireSelector::WireInfo::x1 ( ) const
inline

Definition at line 59 of file WireSelector.h.

59 { return driftMax > 0.0 ? x : x + driftMax; }
float WireSelector::WireInfo::x2 ( ) const
inline

Definition at line 60 of file WireSelector.h.

60 { return driftMax < 0.0 ? x : x + driftMax; }
float WireSelector::WireInfo::y1 ( ) const
inline

Definition at line 61 of file WireSelector.h.

61 { return y - 0.5*length; }
float WireSelector::WireInfo::y2 ( ) const
inline

Definition at line 62 of file WireSelector.h.

62 { return y + 0.5*length; }
float WireSelector::WireInfo::z1 ( ) const
inline

Definition at line 63 of file WireSelector.h.

63 { return z - 0.5*pitch; }
float WireSelector::WireInfo::z2 ( ) const
inline

Definition at line 64 of file WireSelector.h.

64 { return z + 0.5*pitch; }

Member Data Documentation

Index WireSelector::WireInfo::channel

Definition at line 53 of file WireSelector.h.

float WireSelector::WireInfo::driftMax

Definition at line 50 of file WireSelector.h.

float WireSelector::WireInfo::length

Definition at line 51 of file WireSelector.h.

float WireSelector::WireInfo::pitch

Definition at line 52 of file WireSelector.h.

float WireSelector::WireInfo::x

Definition at line 47 of file WireSelector.h.

float WireSelector::WireInfo::y

Definition at line 48 of file WireSelector.h.

float WireSelector::WireInfo::z

Definition at line 49 of file WireSelector.h.


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