9#include <tracking/trackFindingCDC/topology/CDCWireLayer.h>
10#include <tracking/trackFindingCDC/topology/CDCWireTopology.h>
11#include <cdc/geometry/CDCGeometryPar.h>
14using namespace TrackFindingCDC;
34 size_t nWiresInLayer =
size();
59 for (
const CDCWire& wire : *
this) {
The Class for CDC Geometry Parameters.
unsigned cellId(unsigned layerId, const B2Vector3D &position) const
The method to get cell id based on given layer id and the position.
const double * innerRadiusWireLayer() const
Returns an array of inner radius of wire layers.
signed short getShiftInSuperLayer(unsigned short iSuperLayer, unsigned short iLayer) const
Returns shift in the super-layer.
static CDCGeometryPar & Instance(const CDCGeometry *=nullptr)
Static method to get a reference to the CDCGeometryPar instance.
const double * outerRadiusWireLayer() const
Returns an array of outer radius of wire layers.
Class representing a sense wire layer in the central drift chamber.
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.
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.
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.
static const CDCWireLayer * getInstance(ILayer iCLayer)
Getter from the the continuous layer id. Does not construct a new object.
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.
CDCWireLayer(const ConstVectorRange< CDCWire > &wireRange)
Constructor taking the range of wires the layer shall contain.
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 m_minCylindricalR
Storage for minimal distance from beamline.
double m_tanStereoAngle
Storage for average tan stereo angle.
double m_refCylindricalR
Storage for common (averaged) cylindrical radius of all wire reference positions.
double m_outerCylindricalR
Storage of the outer radius of the wire layer as taken from the CDCGeometryPar instance.
double m_forwardCylindricalR
Storage for average distance from beamline of forward wire ends.
const CDCWireLayer & getWireLayer(const WireID &wireId) const
Getter for wire layer getter by wireID object.
static CDCWireTopology & getInstance()
Getter for the singleton instance of the wire topology.
Class representing a sense wire in the central drift chamber.
double getRefCylindricalR() const
Getter for the cylindrical radius at the wire reference position.
double getBackwardCylindricalR() const
Getter for the distance to the beamline ( z-axes ) at the backward joint point.
double getForwardCylindricalR() const
Getter for the nominal distance to the beamline ( z-axes ) at the forward joint point.
double getForwardZ() const
Getter for the z coordinate at the forward joint points of the wires.
double getTanStereoAngle() const
Getter for the tangents of the stereo angle of the wire.
double getRefZ() const
Getter for the wire reference z coordinate Gives the wire's reference z coordinate.
double getMinCylindricalR() const
Getter for the closest distance to the beamline ( z-axes )
double getBackwardZ() const
Getter for the z coordinate at the backward joint points of the wires.
A pair of iterators usable with the range base for loop.
std::size_t size() const
Returns the total number of objects in this range.
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.