Belle II Software development
|
Class representing a pair of one reconstructed axial segment and one stereo segment in adjacent superlayer. More...
#include <CDCSegmentPair.h>
Public Member Functions | |
CDCSegmentPair () | |
Default constructor - for ROOT compatibility. | |
CDCSegmentPair (const CDCSegment2D *fromSegment, const CDCSegment2D *toSegment) | |
Constructor from two segments. | |
CDCSegmentPair (const CDCSegment2D *fromSegment, const CDCSegment2D *toSegment, const CDCTrajectory3D &trajectory3D) | |
Constructor from two segments and an associated trajectory. | |
bool | operator== (CDCSegmentPair const &rhs) const |
Equality comparison based on the pointers to the stored segments. | |
bool | operator< (CDCSegmentPair const &rhs) const |
Total ordering scheme comparing the segment pointers. | |
bool | checkSegmentsNonNullptr () const |
Checks if both stored segments are not nullptr. Returns true if check is succeeded. | |
bool | checkSegmentsStereoKinds () const |
Checks if the two segments are of different axial type. | |
bool | checkSegments () const |
Checks the references to the contained three segment for nullptrs and exactly one of them is axial and one is stereo. | |
EStereoKind | getFromStereoKind () const |
Getter for the stereo type of the first segment. | |
EStereoKind | getToStereoKind () const |
Getter for the stereo type of the second segment. | |
ISuperLayer | getFromISuperLayer () const |
Getter for the superlayer id of the from segment. | |
ISuperLayer | getToISuperLayer () const |
Getter for the superlayer id of the to segment. | |
std::size_t | size () const |
Getter for the total number of hits in this segment pair. | |
const CDCSegment2D * | getFromSegment () const |
Getter for the from segment. | |
void | setFromSegment (const CDCSegment2D *fromSegment) |
Setter for the from segment. | |
const CDCSegment2D * | getToSegment () const |
Getter for the to segment. | |
void | setToSegment (const CDCSegment2D *toSegment) |
Setter for the to segment. | |
const CDCSegment2D * | getStereoSegment () const |
Getter for the stereo segment. | |
const CDCSegment2D * | getAxialSegment () const |
Getter for the axial segment. | |
void | setSegments (const CDCSegment2D *fromSegment, const CDCSegment2D *toSegment) |
Setter for both segments simultaneously. | |
double | computeDeltaPhiAtSuperLayerBound () const |
Determines the angle between the last reconstructed position of the from segment and the first reconstructed position of the to segment. | |
double | computeFromIsBeforeTo () const |
Indicator if the from segment lies before the to segment. | |
double | computeToIsAfterFrom () const |
Indicator if the from segment lies before the to segment. | |
double | computeIsCoaligned () const |
Indicator if the from segment and the to segment have roughly the same travel direction. | |
double | computeFromIsBeforeToFitless () const |
Indicator if the from segment lies before the to segment, build without using the trajectories, which may not have been fitted yet. | |
double | computeToIsAfterFromFitless () const |
Indicator if the from segment lies before the to segment, build without using the trajectories, which may not have been fitted yet. | |
double | computeIsCoalignedFitless () const |
Indicator if the from segment and the to segment have roughly the same travel direction without using the common fit. | |
EForwardBackward | isCoaligned (const CDCTrajectory2D &trajectory2D) const |
Checks if the last entity in the vector lies greater or lower travel distance than the last entity. | |
void | setTrajectory3D (const CDCTrajectory3D &trajectory3D) const |
Setter for the three dimensional trajectory. | |
CDCTrajectory3D & | getTrajectory3D () const |
Getter for the three dimensional trajectory. | |
CDCTrajectory2D | getTrajectory2D () const |
Getter for the two dimensional projection of the common three dimensional trajectory. | |
CDCTrajectorySZ | getTrajectorySZ () const |
Getter for the sz projection of the common three dimensional trajectory. | |
void | clearTrajectory3D () const |
Invalides the currently stored trajectory information. | |
void | unsetAndForwardMaskedFlag () const |
Unsets the masked flag of the segment triple's automaton cell and of the three contained segments. | |
void | setAndForwardMaskedFlag () const |
Sets the masked flag of the segment triple's automaton cell and of the three contained segments. | |
void | receiveMaskedFlag () const |
If one of the contained segments is marked as masked this segment triple is set be masked as well. | |
AutomatonCell & | getAutomatonCell () const |
Mutable getter for the automaton cell. | |
Private Attributes | |
const CDCSegment2D * | m_fromSegment |
Reference to the from segment. | |
const CDCSegment2D * | m_toSegment |
Reference to the to segment. | |
CDCTrajectory3D | m_trajectory3D |
Memory for the common three dimensional trajectory. | |
AutomatonCell | m_automatonCell |
Automaton cell associated with the pair of segments. | |
Friends | |
bool | operator< (const CDCSegmentPair &segmentPair, const CDCSegment2D *segment) |
Define reconstructed segments and axial stereo segment pairs as coaligned on the from segment. | |
bool | operator< (const CDCSegment2D *segment, const CDCSegmentPair &segmentPair) |
Define reconstructed segments and axial stereo segment pairs as coaligned on the from segment. | |
Class representing a pair of one reconstructed axial segment and one stereo segment in adjacent superlayer.
Definition at line 34 of file CDCSegmentPair.h.
CDCSegmentPair | ( | ) |
Default constructor - for ROOT compatibility.
Definition at line 33 of file CDCSegmentPair.cc.
CDCSegmentPair | ( | const CDCSegment2D * | fromSegment, |
const CDCSegment2D * | toSegment | ||
) |
Constructor from two segments.
Definition at line 39 of file CDCSegmentPair.cc.
CDCSegmentPair | ( | const CDCSegment2D * | fromSegment, |
const CDCSegment2D * | toSegment, | ||
const CDCTrajectory3D & | trajectory3D | ||
) |
Constructor from two segments and an associated trajectory.
Definition at line 47 of file CDCSegmentPair.cc.
|
inline |
Checks the references to the contained three segment for nullptrs and exactly one of them is axial and one is stereo.
Definition at line 89 of file CDCSegmentPair.h.
|
inline |
Checks if both stored segments are not nullptr. Returns true if check is succeeded.
Definition at line 75 of file CDCSegmentPair.h.
|
inline |
Checks if the two segments are of different axial type.
Definition at line 81 of file CDCSegmentPair.h.
|
inline |
Invalides the currently stored trajectory information.
Definition at line 215 of file CDCSegmentPair.h.
double computeDeltaPhiAtSuperLayerBound | ( | ) | const |
Determines the angle between the last reconstructed position of the from segment and the first reconstructed position of the to segment.
Definition at line 126 of file CDCSegmentPair.cc.
|
inline |
Indicator if the from segment lies before the to segment.
Definition at line 159 of file CDCSegmentPair.h.
double computeFromIsBeforeToFitless | ( | ) | const |
Indicator if the from segment lies before the to segment, build without using the trajectories, which may not have been fitted yet.
Definition at line 155 of file CDCSegmentPair.cc.
|
inline |
Indicator if the from segment and the to segment have roughly the same travel direction.
Definition at line 171 of file CDCSegmentPair.h.
double computeIsCoalignedFitless | ( | ) | const |
Indicator if the from segment and the to segment have roughly the same travel direction without using the common fit.
Definition at line 225 of file CDCSegmentPair.cc.
|
inline |
Indicator if the from segment lies before the to segment.
Definition at line 165 of file CDCSegmentPair.h.
double computeToIsAfterFromFitless | ( | ) | const |
Indicator if the from segment lies before the to segment, build without using the trajectories, which may not have been fitted yet.
Definition at line 190 of file CDCSegmentPair.cc.
|
inline |
Mutable getter for the automaton cell.
Definition at line 233 of file CDCSegmentPair.h.
|
inline |
ISuperLayer getFromISuperLayer | ( | ) | const |
Getter for the superlayer id of the from segment.
Definition at line 71 of file CDCSegmentPair.cc.
|
inline |
Getter for the from segment.
Definition at line 110 of file CDCSegmentPair.h.
EStereoKind getFromStereoKind | ( | ) | const |
Getter for the stereo type of the first segment.
Definition at line 59 of file CDCSegmentPair.cc.
|
inline |
ISuperLayer getToISuperLayer | ( | ) | const |
Getter for the superlayer id of the to segment.
Definition at line 77 of file CDCSegmentPair.cc.
|
inline |
Getter for the to segment.
Definition at line 122 of file CDCSegmentPair.h.
EStereoKind getToStereoKind | ( | ) | const |
Getter for the stereo type of the second segment.
Definition at line 65 of file CDCSegmentPair.cc.
CDCTrajectory2D getTrajectory2D | ( | ) | const |
Getter for the two dimensional projection of the common three dimensional trajectory.
Definition at line 88 of file CDCSegmentPair.cc.
|
inline |
Getter for the three dimensional trajectory.
Definition at line 203 of file CDCSegmentPair.h.
CDCTrajectorySZ getTrajectorySZ | ( | ) | const |
Getter for the sz projection of the common three dimensional trajectory.
Definition at line 93 of file CDCSegmentPair.cc.
EForwardBackward isCoaligned | ( | const CDCTrajectory2D & | trajectory2D | ) | const |
Checks if the last entity in the vector lies greater or lower travel distance than the last entity.
Returns:
Definition at line 263 of file CDCSegmentPair.cc.
|
inline |
Total ordering scheme comparing the segment pointers.
Definition at line 54 of file CDCSegmentPair.h.
|
inline |
Equality comparison based on the pointers to the stored segments.
Definition at line 48 of file CDCSegmentPair.h.
void receiveMaskedFlag | ( | ) | const |
If one of the contained segments is marked as masked this segment triple is set be masked as well.
Definition at line 114 of file CDCSegmentPair.cc.
void setAndForwardMaskedFlag | ( | ) | const |
Sets the masked flag of the segment triple's automaton cell and of the three contained segments.
Definition at line 106 of file CDCSegmentPair.cc.
|
inline |
Setter for the from segment.
Definition at line 116 of file CDCSegmentPair.h.
|
inline |
Setter for both segments simultaneously.
Definition at line 146 of file CDCSegmentPair.h.
|
inline |
Setter for the to segment.
Definition at line 128 of file CDCSegmentPair.h.
|
inline |
Setter for the three dimensional trajectory.
Definition at line 197 of file CDCSegmentPair.h.
std::size_t size | ( | ) | const |
Getter for the total number of hits in this segment pair.
Definition at line 83 of file CDCSegmentPair.cc.
void unsetAndForwardMaskedFlag | ( | ) | const |
Unsets the masked flag of the segment triple's automaton cell and of the three contained segments.
Definition at line 98 of file CDCSegmentPair.cc.
|
friend |
Define reconstructed segments and axial stereo segment pairs as coaligned on the from segment.
Definition at line 69 of file CDCSegmentPair.h.
|
friend |
Define reconstructed segments and axial stereo segment pairs as coaligned on the from segment.
Definition at line 62 of file CDCSegmentPair.h.
|
mutableprivate |
Automaton cell associated with the pair of segments.
Definition at line 249 of file CDCSegmentPair.h.
|
private |
Reference to the from segment.
Definition at line 240 of file CDCSegmentPair.h.
|
private |
Reference to the to segment.
Definition at line 243 of file CDCSegmentPair.h.
|
mutableprivate |
Memory for the common three dimensional trajectory.
Definition at line 246 of file CDCSegmentPair.h.