Belle II Software development
|
Class representing a pair of reconstructed axial segments in adjacent superlayer. More...
#include <CDCAxialSegmentPair.h>
Public Member Functions | |
CDCAxialSegmentPair () | |
Default constructor setting the contained segments to nullptr. | |
CDCAxialSegmentPair (const CDCAxialSegment2D *startSegment, const CDCAxialSegment2D *endSegment) | |
Constructor from two segments. | |
CDCAxialSegmentPair (const CDCAxialSegment2D *startSegment, const CDCAxialSegment2D *endSegment, const CDCTrajectory2D &trajectory2D) | |
Constructor from two segments and an associated trajectory. | |
bool | operator== (CDCAxialSegmentPair const &rhs) const |
Equality comparison based on the pointers to the stored segments. | |
bool | operator< (CDCAxialSegmentPair const &rhs) const |
Total ordering scheme comparing the segment pointers. | |
bool | checkSegments () const |
Checks the references to the contained three segment for nullptrs. | |
ISuperLayer | getStartISuperLayer () const |
Getter for the superlayer id of the start segment. | |
ISuperLayer | getEndISuperLayer () const |
Getter for the superlayer id of the end segment. | |
const CDCAxialSegment2D * | getStartSegment () const |
Getter for the start segment. | |
void | setStartSegment (const CDCAxialSegment2D *startSegment) |
Setter for the start segment. | |
const CDCAxialSegment2D * | getEndSegment () const |
Getter for the end segment. | |
void | setEndSegment (const CDCAxialSegment2D *endSegment) |
Setter for the end segment. | |
void | setSegments (const CDCSegment2D *startSegment, const CDCSegment2D *endSegment) |
Setter for both segments simultaneously. | |
CDCTrajectory2D & | getTrajectory2D () const |
Getter for the trajectory of the two dimensional trajectory. | |
void | setTrajectory2D (const CDCTrajectory2D &trajectory2D) const |
Setter for the trajectory of the two dimensional trajectory. | |
void | clearTrajectory2D () const |
Invalidates the currently stored trajectory information. | |
void | unsetAndForwardMaskedFlag () const |
Unsets the masked flag of the segment pair's automaton cell, of the contained segments and of the contained wire hits. | |
void | setAndForwardMaskedFlag () const |
Sets the masked flag of the segment pair's automaton cell. Also forward the masked flag to the contained segments and the contained wire hits. | |
void | receiveMaskedFlag () const |
If one of the contained segments is marked as masked this segment pair is set be masked as well. | |
EForwardBackward | isCoaligned (const CDCTrajectory2D &trajectory2D) const |
Checks if the last entity in the vector lies greater or lower travel distance than the last entity. | |
AutomatonCell & | getAutomatonCell () const |
Mutable getter for the automaton cell. | |
Private Attributes | |
const CDCAxialSegment2D * | m_startSegment |
Reference to the start segment. | |
const CDCAxialSegment2D * | m_endSegment |
Reference to the end segment. | |
CDCTrajectory2D | m_trajectory2D |
Reference to the common trajectory. | |
AutomatonCell | m_automatonCell |
Automaton cell associated with the pair of segments. | |
Friends | |
bool | operator< (CDCAxialSegmentPair const &segmentPair, const CDCAxialSegment2D *axialSegment) |
Define reconstructed segments and segment triples as coaligned on the start segment. | |
bool | operator< (const CDCAxialSegment2D *axialSegment, CDCAxialSegmentPair const &segmentPair) |
Define reconstructed segments and segment pairs as coaligned on the start segment. | |
Class representing a pair of reconstructed axial segments in adjacent superlayer.
Definition at line 31 of file CDCAxialSegmentPair.h.
Default constructor setting the contained segments to nullptr.
Definition at line 26 of file CDCAxialSegmentPair.cc.
CDCAxialSegmentPair | ( | const CDCAxialSegment2D * | startSegment, |
const CDCAxialSegment2D * | endSegment | ||
) |
Constructor from two segments.
Definition at line 32 of file CDCAxialSegmentPair.cc.
CDCAxialSegmentPair | ( | const CDCAxialSegment2D * | startSegment, |
const CDCAxialSegment2D * | endSegment, | ||
const CDCTrajectory2D & | trajectory2D | ||
) |
Constructor from two segments and an associated trajectory.
Definition at line 41 of file CDCAxialSegmentPair.cc.
|
inline |
Checks the references to the contained three segment for nullptrs.
Definition at line 77 of file CDCAxialSegmentPair.h.
|
inline |
Invalidates the currently stored trajectory information.
Definition at line 131 of file CDCAxialSegmentPair.h.
|
inline |
Mutable getter for the automaton cell.
Definition at line 152 of file CDCAxialSegmentPair.h.
ISuperLayer getEndISuperLayer | ( | ) | const |
Getter for the superlayer id of the end segment.
Definition at line 57 of file CDCAxialSegmentPair.cc.
|
inline |
Getter for the end segment.
Definition at line 101 of file CDCAxialSegmentPair.h.
ISuperLayer getStartISuperLayer | ( | ) | const |
Getter for the superlayer id of the start segment.
Definition at line 52 of file CDCAxialSegmentPair.cc.
|
inline |
Getter for the start segment.
Definition at line 89 of file CDCAxialSegmentPair.h.
|
inline |
Getter for the trajectory of the two dimensional trajectory.
Definition at line 121 of file CDCAxialSegmentPair.h.
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 90 of file CDCAxialSegmentPair.cc.
|
inline |
Total ordering scheme comparing the segment pointers.
Definition at line 55 of file CDCAxialSegmentPair.h.
|
inline |
Equality comparison based on the pointers to the stored segments.
Definition at line 47 of file CDCAxialSegmentPair.h.
void receiveMaskedFlag | ( | ) | const |
If one of the contained segments is marked as masked this segment pair is set be masked as well.
Definition at line 78 of file CDCAxialSegmentPair.cc.
void setAndForwardMaskedFlag | ( | ) | const |
Sets the masked flag of the segment pair's automaton cell. Also forward the masked flag to the contained segments and the contained wire hits.
Definition at line 70 of file CDCAxialSegmentPair.cc.
|
inline |
Setter for the end segment.
Definition at line 107 of file CDCAxialSegmentPair.h.
|
inline |
Setter for both segments simultaneously.
Definition at line 113 of file CDCAxialSegmentPair.h.
|
inline |
Setter for the start segment.
Definition at line 95 of file CDCAxialSegmentPair.h.
|
inline |
Setter for the trajectory of the two dimensional trajectory.
Definition at line 127 of file CDCAxialSegmentPair.h.
void unsetAndForwardMaskedFlag | ( | ) | const |
Unsets the masked flag of the segment pair's automaton cell, of the contained segments and of the contained wire hits.
Definition at line 62 of file CDCAxialSegmentPair.cc.
|
friend |
Define reconstructed segments and segment triples as coaligned on the start segment.
Definition at line 63 of file CDCAxialSegmentPair.h.
|
friend |
Define reconstructed segments and segment pairs as coaligned on the start segment.
Definition at line 70 of file CDCAxialSegmentPair.h.
|
mutableprivate |
Automaton cell associated with the pair of segments.
Definition at line 168 of file CDCAxialSegmentPair.h.
|
private |
Reference to the end segment.
Definition at line 162 of file CDCAxialSegmentPair.h.
|
private |
Reference to the start segment.
Definition at line 159 of file CDCAxialSegmentPair.h.
|
mutableprivate |
Reference to the common trajectory.
Definition at line 165 of file CDCAxialSegmentPair.h.