 |
Belle II Software
release-05-02-19
|
10 #include <tracking/trackFindingCDC/eventdata/hits/CDCRecoHit2D.h>
12 #include <tracking/trackFindingCDC/eventdata/hits/CDCRLWireHit.h>
14 #include <tracking/trackFindingCDC/geometry/Vector3D.h>
15 #include <tracking/trackFindingCDC/geometry/Vector2D.h>
17 #include <tracking/trackFindingCDC/numerics/ESign.h>
19 #include <cdc/dataobjects/CDCSimHit.h>
26 using namespace TrackFindingCDC;
29 m_rlWireHit(rlWireHit),
35 m_rlWireHit(rlWireHit),
36 m_recoDisp2D(recoDisp2D)
45 Vector2D(-trackPosToWire.x(), -trackPosToWire.y()));
63 result.snapToDriftCircle();
83 result.snapToDriftCircle();
93 if (snap) result.snapToDriftCircle();
106 return reversedRecoHit;
120 bool switchSide = sign(oldDriftLength) != sign(driftLength);
140 output <<
"CDCRecoHit2D(" << recohit.
getRLWireHit() <<
","
static CDCRLWireHit average(const CDCRLWireHit &rlWireHit1, const CDCRLWireHit &rlWireHit2)
Constructs the average of two wire hits with right left passage informations.
std::ostream & operator<<(std::ostream &output, const IntervalOfValidity &iov)
double normalizeTo(const double toLength)
Normalizes the vector to the given length.
TVector3 getPosTrack() const
The method to get position on the track.
A two dimensional vector which is equipped with functions for correct handeling of orientation relat...
static CDCRecoHit2D fromRecoPos2D(const CDCRLWireHit &rlWireHit, const Vector2D &recoPos2D, bool snap=true)
Constructs a two dimensional reconstructed hit from an absolute position.
const CDCRLWireHit & getRLWireHit() const
Getter for the oriented wire hit assoziated with the reconstructed hit.
double getRefDriftLength() const
Getter for the drift length at the reference position of the wire.
double getRefDriftLength() const
Getter for the drift length at the wire reference position.
const Vector2D & getRecoDisp2D() const
Getter for the displacement from the wire reference position.
static CDCRecoHit2D fromSimHit(const CDCWireHit *wireHit, const CDCSimHit &simHit)
Constructs a two dimensional reconstructed hit from a sim hit and the assoziated wirehit.
void setRefDriftLength(double driftLength, bool snapRecoPos)
Setter for the drift length at the wire reference position.
static CDCRecoHit2D average(const CDCRecoHit2D &recoHit1, const CDCRecoHit2D &recoHit2)
Constructs the average of two reconstructed hit positions and snaps it to the drift circle.
Particle trajectory as it is seen in xy projection represented as a circle.
CDCRecoHit2D reversed() const
Returns the recohit with the opposite right left information.
CDCRLWireHit m_rlWireHit
Memory for the reference to the assiziated wire hit.
Class representing a two dimensional reconstructed hit in the central drift chamber.
Abstract base class for different kinds of events.
Class representing an oriented hit wire including a hypotheses whether the causing track passes left ...
CDCRecoHit2D()=default
Default constructor for ROOT.
A three dimensional vector.
void reverse()
Swiches the right left passage to its opposite inplace.
Vector2D m_recoDisp2D
Memory for the displacement fo the assoziated wire reference position.
void reverse()
Turns the orientation in place.
void setRefDriftLength(double driftLength)
Setter for the drift length at the reference position of the wire.
TVector3 getPosWire() const
The method to get position on wire.
CDCRecoHit2D getAlias() const
Getter for the alias version of the reco hit.
const Vector2D & getRefPos2D() const
The two dimensional reference position of the underlying wire.
void snapToDriftCircle(bool switchSide=false)
Scales the displacement vector in place to lie on the dirft circle.
Class representing a hit wire in the central drift chamber.
Vector3D reconstruct3D(const CDCTrajectory2D &trajectory2D, double z=0) const
Attempts to reconstruct a three dimensional position (especially of stereo hits).
Vector3D reconstruct3D(const CDCTrajectory2D &trajectory2D, const double z=0) const
Reconstruct the three dimensional position (especially of stereo hits) by determinating the z coordin...
static CDCRLWireHit fromSimHit(const CDCWireHit *wirehit, const CDCSimHit &simhit)
Constructs an oriented wire hit from a CDCSimHit and the associated wirehit.
static Vector2D average(const Vector2D &one, const Vector2D &two)
Constructs the average of two vectors.