10#include <tracking/trackFindingCDC/fitting/EFitPos.h>
11#include <tracking/trackFindingCDC/fitting/EFitVariance.h>
13#include <tracking/trackFindingCDC/geometry/Vector2D.h>
15#include <tracking/trackFindingCDC/numerics/ERightLeft.h>
16#include <tracking/trackFindingCDC/numerics/EForwardBackward.h>
26 namespace TrackFindingCDC {
27 class CDCTrajectory2D;
31 class CDCRLWireHitPair;
32 class CDCRLWireHitTriple;
36 class CDCWireHitSegment;
39 class CDCAxialSegmentPair;
51 EFitVariance fitVariance = EFitVariance::c_Proper)
69 double driftLengthVariance)
71 return driftLength * driftLength + driftLengthVariance;
108 double getX(
int iObservation)
const
114 double getY(
int iObservation)
const
144 std::size_t
fill(
double x,
double y,
double signedRadius = 0.0,
double weight = 1.0);
158 std::size_t
fill(
const Vector2D& pos2D,
double signedRadius = 0.0,
double weight = 1.0);
241 std::size_t
appendRange(
const std::vector<const CDCWire*>& wires);
251 template<
class ARange>
254 std::size_t nAppendedHits = 0;
257 for (
const auto& item : range) {
258 nAppendedHits +=
append(item);
260 return nAppendedHits;
Class representing a pair of reconstructed axial segments in adjacent superlayer.
Class representing a triple of neighboring oriented wire with additional trajectory information.
Class serving as a storage of observed drift circles to present to the Riemann fitter.
EFitPos m_fitPos
Indicator which positional information should preferably be extracted from hits in calls to append.
static double getPseudoDriftLengthVariance(double driftLength, double driftLengthVariance)
Gets the pseudo variance.
double getX(int iObservation) const
Getter for the x value of the observation at the given index.
Vector2D getBackPos2D() const
Get the position of the first observation.
Vector2D centralize()
Picks one observation as a reference point and transform all observations to that new origin.
void reserve(std::size_t nObservations)
Reserves enough space for nObservations.
void setFitVariance(EFitVariance fitVariance)
Setter for the indicator that the drift variance should be used.
std::size_t appendRange(const ARange &range)
Append all hits from a generic range.
double getY(int iObservation) const
Getter for the y value of the observation at the given index.
bool empty() const
Returns true if there are no observations stored.
Vector2D getCentralPoint() const
Extracts the observation center that is at the index in the middle.
CDCObservations2D(EFitPos fitPos=EFitPos::c_RecoPos, EFitVariance fitVariance=EFitVariance::c_Proper)
Constructor taking the flag if the reconstructed position of the hits should be used when they are av...
std::size_t append(const CDCWireHit &wireHit, ERightLeft rlInfo=ERightLeft::c_Unknown)
Appends the hit circle at wire reference position without a right left passage hypotheses.
EFitPos getFitPos() const
Getter for the indicator that the reconstructed position should be favoured.
double getDriftLength(int iObservation) const
Getter for the signed drift radius of the observation at the given index.
double getWeight(int iObservation) const
Getter for the weight / inverse variance of the observation at the given index.
Vector2D getFrontPos2D() const
Get the position of the first observation.
std::size_t appendRange(const CDCSegment2D &segment2D)
Appends all reconstructed hits from the two dimensional segment.
std::size_t fill(double x, double y, double signedRadius=0.0, double weight=1.0)
Appends the observed position.
double * data()
Return the pointer to the number buffer.
void passiveMoveBy(const Vector2D &origin)
Moves all observations passively such that the given vector becomes to origin of the new coordinate s...
double getTotalPerpS(const CDCTrajectory2D &trajectory2D) const
Calculate the total transverse travel distance traversed by these observations comparing the travel d...
EForwardBackward isCoaligned(const CDCTrajectory2D &trajectory2D) const
Checks if the last observation in the vector lies at greater or lower travel distance than the last o...
void clear()
Removes all observations stored.
EFitVariance m_fitVariance
Indicator which variance information should preferably be extracted from hits in calls to append.
std::size_t size() const
Returns the number of observations stored.
void setFitPos(EFitPos fitPos)
Setter for the indicator that the reconstructed position should be favoured.
std::size_t getNObservationsWithDriftRadius() const
Returns the number of observations having a drift radius radius.
bool isForwardTrajectory(const CDCTrajectory2D &trajectory2D) const
Checks if the last position of these observations lies at greater travel distance than the first.
std::vector< double > m_observations
Memory for the individual observations.
A pair of oriented wire hits.
Class representing a triple of neighboring wire hits.
Class representing an oriented hit wire including a hypotheses whether the causing track passes left ...
Class representing a two dimensional reconstructed hit in the central drift chamber.
Class representing a three dimensional reconstructed hit.
A reconstructed sequence of two dimensional hits in one super layer.
A segment consisting of three dimensional reconstructed hits.
Class representing a sequence of three dimensional reconstructed hits.
Particle trajectory as it is seen in xy projection represented as a circle.
A segment consisting of two dimensional reconstructed hits.
Class representing a hit wire in the central drift chamber.
A two dimensional vector which is equipped with functions for correct handling of orientation relate...
EForwardBackward
Enumeration to represent the distinct possibilities of the right left passage information.
ERightLeft
Enumeration to represent the distinct possibilities of the right left passage.
Abstract base class for different kinds of events.