10#include <tracking/trackFindingCDC/topology/EStereoKind.h>
11#include <tracking/trackFindingCDC/topology/ISuperLayer.h>
12#include <tracking/trackFindingCDC/topology/ILayer.h>
14#include <tracking/trackFindingCDC/ca/AutomatonCell.h>
16#include <tracking/trackFindingCDC/numerics/ERightLeft.h>
17#include <tracking/trackFindingCDC/numerics/Index.h>
19#include <tracking/trackFindingCDC/utilities/FunctorTag.h>
21#include <cdc/dataobjects/WireID.h>
34 class TDCCountTranslatorBase;
35 class ADCCountTranslatorBase;
37 namespace TrackFindingCDC {
38 class CDCTrajectory2D;
39 class CDCWireSuperLayer;
83 double chargeDeposit = 0,
84 double driftTime = 0);
104 double chargeDeposit = 0);
123 return &wireHit.
getWire() < &wire;
130 return &wire < &wireHit.
getWire();
138 return *wireHit < wire;
146 return wire < *wireHit;
350 template<
class T,
class SFINAE = decltype(&T::getWireHit)>
353 return t.getWireHit();
364 std::ostream& operator<<(std::ostream& output,
const CDCWireHit& wirehit);
Class containing the result of the unpacker in raw data and the result of the digitizer in simulation...
Abstract Base class for the ADC count translator.
Base class for translation of Drift Time into Drift Length.
Cell used by the cellular automata.
Particle trajectory as it is seen in xy projection represented as a circle.
Class representing a hit wire in the central drift chamber.
double getRefCylindricalR() const
The distance from the beam line at reference position of the underlying wire.
const CDCHit * getHit() const
Getter for the CDCHit pointer into the StoreArray.
static CDC::TDCCountTranslatorBase & getTDCCountTranslator()
Return an instance of the used TDC count translator.
friend bool operator<(const CDCWire &wire, const CDCWireHit *wireHit)
Defines CDCWires and CDCWireHits to be coaligned on the wire on which they are based.
ISuperLayer getISuperLayer() const
Getter for the super layer id.
double getRefDriftLengthVariance() const
Getter for the variance of the drift length at the reference position of the wire.
double getRefDriftLength() const
Getter for the drift length at the reference position of the wire.
const WireID & getWireID() const
Getter for the WireID of the wire the hit is located on.
bool isAxial() const
Indicator if the underlying wire is axial.
friend bool operator<(const CDCWireHit &wireHit, const CDCHit &hit)
Defines CDCWireHits and raw CDCHit to be coaligned.
friend bool operator<(const CDCHit &hit, const CDCWireHit &wireHit)
Defines wire hits and raw CDCHit to be coaligned.
double getRefChargeDeposit() const
Getter for the charge due to energy deposit in the drift cell.
friend bool operator<(const CDCWireHit &wireHit, const CDCWire &wire)
Defines CDCWires and CDCWireHits to be coaligned on the wire on which they are based.
int m_iSuperCluster
Memory for the super cluster id.
AutomatonCell * operator->() const
Indirection to the automaton cell for easier access to the flags.
CDCWireHit()=default
Default constructor for ROOT compatibility.
const CDCWire & getWire() const
Getter for the CDCWire the hit is located on.
void setISuperCluster(int iSuperCluster)
Setter for the super cluster id.
AutomatonCell & getAutomatonCell() const
Mutable getter for the automaton cell.
friend bool operator<(const CDCWireHit *wireHit, const CDCWire &wire)
Defines CDCWires and CDCWireHits to be coaligned on the wire on which they are based.
const CDCHit * m_hit
Memory for the CDCHit pointer.
static CDC::ADCCountTranslatorBase & getADCCountTranslator()
Return an instance of the used ADC count translator.
bool operator==(const CDCWireHit &rhs) const
Equality comparison based on the wire and the hit id.
static constexpr const double c_simpleDriftLengthVariance
A default value for the drift length variance if no variance from the drift length translation is ava...
bool operator<(const CDCWireHit &rhs) const
Total ordering relation based on the wire and the hit id.
const Vector3D & getRefPos3D() const
The three dimensional reference position of the underlying wire.
Vector2D reconstruct2D(const CDCTrajectory2D &trajectory2D) const
Reconstructs a position of primary ionisation on the drift circle.
const CDCWire & attachWire() const
Reestablishes the pointer of the hit to the wire and returns it Since the DataStore only transport th...
ILayer getILayer() const
Getter for the layer id.
WireID m_wireID
Memory for the WireID.
bool isOnWire(const CDCWire &wire) const
Checks if the wire hit is based on the given wire.
double m_refDriftLength
Memory for the drift length at the wire reference point.
Index getStoreIHit() const
Getter for the index of the hit in the StoreArray holding this hit.
const Vector2D & getRefPos2D() const
The two dimensional reference position (z=0) of the underlying wire.
CDCWire const * m_wire
Memory for the CDCWire pointer - Trailing comment indicates to not stream this member.
Circle2D conformalTransformed(const Vector2D &relativeTo) const
Applies the conformal transformation to the drift circle this hit represents.
friend bool operator<(const CDCWire &wire, const CDCWireHit &wireHit)
Defines CDCWires and CDCWireHits to be coaligned on the wire on which they are based.
double m_refDriftLengthVariance
Memory for the variance of the drift length at the wire reference point.
AutomatonCell m_automatonCell
Memory for the automaton cell.
Vector3D reconstruct3D(const CDCTrajectory2D &trajectory2D, ERightLeft rlInfo, double z=0) const
Attempts to reconstruct a three dimensional position (especially of stereo hits).
EStereoKind getStereoKind() const
Getter for the stereo type of the underlying wire.
int getISuperCluster() const
Getter for the super cluster id.
double getDriftTime() const
Return the drift time measured by the CDC for this hit.
double m_refChargeDeposit
Memory for the charge induced by the energy deposit in the drift cell.
double m_refDriftTime
Measured drift time of the CDC hit.
Class representing a sense wire in the central drift chamber.
A two dimensional circle in its natural representation using center and radius as parameters.
A two dimensional vector which is equipped with functions for correct handling of orientation relate...
A three dimensional vector.
Class to identify a wire inside the CDC.
unsigned short getEWire() const
Getter for encoded wire number.
unsigned short getISuperLayer() const
Getter for Super-Layer.
unsigned short getILayer() const
Getter for layer within the Super-Layer.
bool operator<(ExpRun a, ExpRun b)
less than for ExpRun
HepGeom::Vector3D< double > Vector3D
3D Vector
ERightLeft
Enumeration to represent the distinct possibilities of the right left passage.
Abstract base class for different kinds of events.
Tag class to facilitate marking of class as a functor in the sense of this code.
Generic functor to get the wire hit from an object.
const CDCWireHit & operator()(const CDCWireHit &wireHit) const
If given a wire hit return it unchanged.
const CDCWireHit & operator()(const T &t) const
Returns the wire hit of an object.
static bool isAxial(ISuperLayer iSuperLayer)
Returns if the super layer with the given id is axial.
static EStereoKind getStereoKind(ISuperLayer iSuperLayer)
Returns the stereo kind of the super layer.