10#include <tracking/trackFindingCDC/topology/CDCWire.h>
11#include <tracking/trackFindingCDC/topology/ISuperLayer.h>
12#include <tracking/trackFindingCDC/topology/ILayer.h>
13#include <tracking/trackFindingCDC/topology/IWire.h>
14#include <tracking/trackFindingCDC/topology/EStereoKind.h>
16#include <tracking/trackFindingCDC/numerics/ERotation.h>
17#include <tracking/trackFindingCDC/utilities/VectorRange.h>
24 namespace TrackFindingCDC {
89 {
return front().getICLayer(); }
93 {
return front().getILayer(); }
97 {
return front().getISuperLayer(); }
135 {
return 0 <= iWire and iWire < IWire(
size()); }
189 {
return front().isAxial(); }
199 {
return front().getStereoKind(); }
Class representing a sense wire layer in the central drift chamber.
double getRefCylindricalR() const
Getter for the common (averaged) cylindrical radius at the wire reference point.
const CDCWire & getClosestWire(const Vector3D &pos3D) const
Gets the wire in this layer that is closest to the given position.
ERotation m_shift
Indicates if this layer is shifted clockwise or counterclockwise.
double getStereoAngle() const
Getter for the average stereo angle of all wires in this layer.
const CDCWire & getWire(IWire iWire) const
Gives the wire by its id in the layer.
double m_refZ
Storage for common (averaged) z coordinate of all wire reference positions.
bool isValidIWire(IWire iWire) const
Checks if the given wire id belongs to a valid wire in this layer.
double m_backwardZ
Storage for z position of backward wire ends.
void initialize()
Initializes the wire layer variables to the average of according variables in the wire range.
ISuperLayer getISuperLayer() const
Getter for the super layer id.
const CDCWire & getSecondNeighborCW(IWire iWire) const
Getter for the first clockwise neighbor by wire id in the layer.
double getBackwardCylindricalR() const
Getter for the average distance to the beamline ( z-axes ) at the backward joint points of all wires ...
bool isAxial() const
Indicates if the wire is axial or stereo.
static const CDCWireLayer * getInstance(ILayer iCLayer)
Getter from the the continuous layer id. Does not construct a new object.
double getForwardCylindricalR() const
Getter for the average distance to the beamline ( z-axes ) at the forward joint points of all wires i...
double getForwardZ() const
Getter for the average z coordinate at the forward joint points of all wires in this layer.
const CDCWire & getSecondNeighborCCW(IWire iWire) const
Getter for the first counterclockwise neighbor by wire id in the layer.
double getInnerCylindricalR() const
Getter for inner radius of the layer as taken from the CDCGeometryPar.
double m_backwardCylindricalR
Storage for average distance from beamline of backward wire ends.
double m_innerCylindricalR
Storage of the inner radius of the wire layer as taken from the CDCGeometryPar instance.
const CDCWire & getNeighborCCW(IWire iWire) const
Getter for the first counterclockwise neighbor by wire id in the layer.
CDCWireLayer(const CDCWireLayer &wireLayer)=delete
Disallow copy construction of wire layers.
const CDCWire & getWireWrappedAround(IWire iWire) const
Returns the wire by its id in the layer.
ILayer getICLayer() const
Getter for the continuous layer id unique over all layers.
ILayer getILayer() const
Getter for the layer id unique within the superlayer.
double m_forwardZ
Storage for z position of forward wire ends.
double getLateralCellWidth() const
Getter for the width of the wire layer in the lateral direction.
double m_minCylindricalR
Storage for minimal distance from beamline.
ERotation getShift() const
Getter for the numbering shift.
double getTanStereoAngle() const
Getter for the averaged tan stereo angle of all wires in this layer.
double m_tanStereoAngle
Storage for average tan stereo angle.
EStereoKind getStereoKind() const
Getter for the stereo type of the wire layer Gives the stereo type of the wire.
double getRefZ() const
Getter for the common (averaged) z component of the wire reference point.
double m_refCylindricalR
Storage for common (averaged) cylindrical radius of all wire reference positions.
double getOuterCylindricalR() const
Getter for outer radius of the layer as taken from the CDCGeometryPar.
double getMinCylindricalR() const
Getter for the closest distance to the beamline ( z-axes ) of all wires in this layer.
double m_outerCylindricalR
Storage of the outer radius of the wire layer as taken from the CDCGeometryPar instance.
const CDCWire & getNeighborCW(IWire iWire) const
Getter for the first clockwise neighbor by wire id in the layer.
double getBackwardZ() const
Getter for the average z coordinate at the backward joint points of all wires in this layer.
double getRadialCellWidth() const
Getter for the width of the wire layer in the radial direction.
CDCWireLayer(CDCWireLayer &&wireLayer)=default
Allow move construction of wire layers for use in std::vector.
double m_forwardCylindricalR
Storage for average distance from beamline of forward wire ends.
ERotation getShiftDelta(const CDCWireLayer &baseLayer) const
Getter for the relative difference in wire numbering shift.
void operator=(const CDCWireLayer &wireLayer)=delete
Disallow copy assignment of wire layers.
Class representing a sense wire in the central drift chamber.
A pair of iterators usable with the range base for loop.
Reference front() const
Returns the dereferenced iterator at begin()
std::size_t size() const
Returns the total number of objects in this range.
Reference at(std::size_t i) const
Returns the object at index i.
A three dimensional vector.
ERotation
Enumeration to represent the distinct possibilities of the right left passage information.
Abstract base class for different kinds of events.
static IWire wrappedAround(IWire iWire, IWire nWires)
Wraps the given in layer wire index by the total number of wires in this layer.