Belle II Software development
|
Class representing a sequence of three dimensional reconstructed hits. More...
#include <CDCTrack.h>
Public Member Functions | |
CDCTrack ()=default | |
Default constructor for ROOT compatibility. | |
CDCTrack (const std::vector< CDCRecoHit3D > &recoHits3D) | |
Constructor from a series of hits. | |
CDCTrack (const CDCSegment2D &segment) | |
Constructor from a two dimensional segment filling the third dimension with 0 values. | |
bool | operator< (const CDCTrack &track) const |
Comparison of track - no particular order has been defined so far, all tracks are equivalent. | |
std::vector< CDCSegment3D > | splitIntoSegments () const |
Splits the track into segments. | |
ISuperLayer | getStartISuperLayer () const |
Getter for the superlayer id the track starts from. | |
ISuperLayer | getEndISuperLayer () const |
Getter for the superlayer id the track ends in. | |
const Vector3D & | getStartRecoPos3D () const |
Getter for the position of the first reconstructed hit. | |
const Vector3D & | getEndRecoPos3D () const |
Getter for the position of the last reconstructed hit. | |
void | setStartTrajectory3D (const CDCTrajectory3D &startTrajectory3D) |
Setter for the two dimensional trajectory. | |
void | setEndTrajectory3D (const CDCTrajectory3D &endTrajectory3D) |
Setter for the three dimensional trajectory. | |
const CDCTrajectory3D & | getStartTrajectory3D () const |
Getter for the two dimensional trajectory. | |
const CDCTrajectory3D & | getEndTrajectory3D () const |
Getter for the three dimensional trajectory. | |
AutomatonCell & | getAutomatonCell () const |
Mutable getter for the automaton cell. | |
AutomatonCell * | operator-> () const |
Indirection to the automaton cell for easier access to the flags. | |
void | unsetAndForwardMaskedFlag () const |
Unset the masked flag of the automaton cell of this segment and of all contained wire hits. | |
void | setAndForwardMaskedFlag () const |
Set the masked flag of the automaton cell of this segment and forward the masked flag to all contained wire hits. | |
void | receiveMaskedFlag () const |
Check all contained wire hits if one has the masked flag. | |
void | forwardTakenFlag (bool takenFlag=true) const |
Set the taken flag of all hits belonging to this track to the given value (default true), but do not touch the flag of the track itself. | |
void | sortByArcLength2D () |
Sort the recoHits according to their perpS information. | |
void | shiftToPositiveArcLengths2D (bool doForAllTracks=false) |
Set all arcLengths to have positive values by shifting them by pi*radius if they are negative. | |
void | reverse () |
Reverse the track inplace. | |
CDCTrack | reversed () const |
Return a reversed copy of the track. | |
MayBePtr< const CDCRecoHit3D > | find (const CDCWireHit &wireHit) const |
Finds the first CDCRecoHit3D that is based on the given wire hit - nullptr if none. | |
void | setHasMatchingSegment (bool hasMatchingSegment=true) |
Set the flag which indicates that the track has a matching segment (probably only used in the SegmentTrackCombiner). | |
bool | getHasMatchingSegment () const |
Get a flag which indicates that the track has a matching segment (probably set in the SegmentTrackCombiner). | |
float | getQualityIndicator () const |
Get the multivariate quality indicator in [0, 1] attached the CDCTrack. | |
void | setQualityIndicator (const float qualityIndicator) |
Set the multivariate quality indicator in [0, 1] attached the CDCTrack. | |
Static Public Member Functions | |
static CDCTrack | condense (const Path< const CDCTrack > &trackPath) |
concatenates several tracks from a path | |
static CDCTrack | condense (const Path< const CDCSegmentTriple > &segmentTriplePath) |
Reconstructs the hit content of the segment triple track to a CDCTrack averaging overlapping parts. | |
static CDCTrack | condense (const Path< const CDCSegmentPair > &segmentPairPath) |
Reconstructs the hit content of the axial stereo segment pair path to a CDCTrack averaging overlapping parts. | |
Public Attributes | |
T | elements |
STL member. | |
Private Attributes | |
AutomatonCell | m_automatonCell |
Memory for the automaton cell. | |
CDCTrajectory3D | m_startTrajectory3D |
Memory for the three dimensional trajectory at the start of the track. | |
CDCTrajectory3D | m_endTrajectory3D |
Memory for the three dimensional trajectory at the end of the track. | |
bool | m_hasMatchingSegment = false |
Flag which indicates that the track had a matching segment (can be used for filter decisions) | |
float | m_qualityIndicator = NAN |
Multivariate classifier output in [0, 1] correlated with probability that track is good match. | |
Class representing a sequence of three dimensional reconstructed hits.
Definition at line 41 of file CDCTrack.h.
|
explicit |
Constructor from a series of hits.
Definition at line 133 of file CDCTrack.cc.
|
explicit |
Constructor from a two dimensional segment filling the third dimension with 0 values.
Definition at line 138 of file CDCTrack.cc.
|
static |
Reconstructs the hit content of the axial stereo segment pair path to a CDCTrack averaging overlapping parts.
Definition at line 263 of file CDCTrack.cc.
|
static |
Reconstructs the hit content of the segment triple track to a CDCTrack averaging overlapping parts.
Definition at line 197 of file CDCTrack.cc.
concatenates several tracks from a path
FIXME : arc lengths are not set properly
Definition at line 164 of file CDCTrack.cc.
MayBePtr< const CDCRecoHit3D > find | ( | const CDCWireHit & | wireHit | ) | const |
Finds the first CDCRecoHit3D that is based on the given wire hit - nullptr if none.
Definition at line 367 of file CDCTrack.cc.
void forwardTakenFlag | ( | bool | takenFlag = true | ) | const |
Set the taken flag of all hits belonging to this track to the given value (default true), but do not touch the flag of the track itself.
Definition at line 405 of file CDCTrack.cc.
|
inline |
Mutable getter for the automaton cell.
Definition at line 125 of file CDCTrack.h.
|
inline |
Getter for the superlayer id the track ends in.
Definition at line 79 of file CDCTrack.h.
|
inline |
Getter for the position of the last reconstructed hit.
Definition at line 91 of file CDCTrack.h.
|
inline |
Getter for the three dimensional trajectory.
The trajectory should start at the END of the track and follow its direction.
Definition at line 119 of file CDCTrack.h.
|
inline |
Get a flag which indicates that the track has a matching segment (probably set in the SegmentTrackCombiner).
This flag can be used for filter decisions (e.g. if the track is fake).
Definition at line 182 of file CDCTrack.h.
|
inline |
Get the multivariate quality indicator in [0, 1] attached the CDCTrack.
Definition at line 188 of file CDCTrack.h.
|
inline |
Getter for the superlayer id the track starts from.
Definition at line 73 of file CDCTrack.h.
|
inline |
Getter for the position of the first reconstructed hit.
Definition at line 85 of file CDCTrack.h.
|
inline |
Getter for the two dimensional trajectory.
The trajectory should start at the start of the track and follow its direction.
Definition at line 112 of file CDCTrack.h.
|
inline |
Indirection to the automaton cell for easier access to the flags.
Definition at line 131 of file CDCTrack.h.
|
inline |
Comparison of track - no particular order has been defined so far, all tracks are equivalent.
Definition at line 63 of file CDCTrack.h.
void receiveMaskedFlag | ( | ) | const |
Check all contained wire hits if one has the masked flag.
Set the masked flag of this segment in case at least one of the contained wire hits is flagged as masked.
Definition at line 394 of file CDCTrack.cc.
void reverse | ( | ) |
Reverse the track inplace.
Definition at line 336 of file CDCTrack.cc.
CDCTrack reversed | ( | ) | const |
Return a reversed copy of the track.
Definition at line 360 of file CDCTrack.cc.
void setAndForwardMaskedFlag | ( | ) | const |
Set the masked flag of the automaton cell of this segment and forward the masked flag to all contained wire hits.
Definition at line 385 of file CDCTrack.cc.
|
inline |
Setter for the three dimensional trajectory.
The trajectory should start at the END of the track and follow its direction.
Definition at line 105 of file CDCTrack.h.
|
inline |
Set the flag which indicates that the track has a matching segment (probably only used in the SegmentTrackCombiner).
Definition at line 173 of file CDCTrack.h.
|
inline |
Set the multivariate quality indicator in [0, 1] attached the CDCTrack.
Definition at line 194 of file CDCTrack.h.
|
inline |
Setter for the two dimensional trajectory.
The trajectory should start at the start of the track and follow its direction.
Definition at line 98 of file CDCTrack.h.
void shiftToPositiveArcLengths2D | ( | bool | doForAllTracks = false | ) |
Set all arcLengths to have positive values by shifting them by pi*radius if they are negative.
This can only be done if the radius is not infinity (for example cosmics). The flag can be used to do this for all tracks (default is to do this only for curlers)
Definition at line 423 of file CDCTrack.cc.
void sortByArcLength2D | ( | ) |
Sort the recoHits according to their perpS information.
Definition at line 412 of file CDCTrack.cc.
std::vector< CDCSegment3D > splitIntoSegments | ( | ) | const |
Splits the track into segments.
Note : No trajectory information is copied
Definition at line 321 of file CDCTrack.cc.
void unsetAndForwardMaskedFlag | ( | ) | const |
Unset the masked flag of the automaton cell of this segment and of all contained wire hits.
Definition at line 376 of file CDCTrack.cc.
|
mutableprivate |
Memory for the automaton cell.
Definition at line 201 of file CDCTrack.h.
|
private |
Memory for the three dimensional trajectory at the end of the track.
Definition at line 207 of file CDCTrack.h.
|
private |
Flag which indicates that the track had a matching segment (can be used for filter decisions)
Definition at line 210 of file CDCTrack.h.
|
private |
Multivariate classifier output in [0, 1] correlated with probability that track is good match.
Used to reject fakes and clones. Implemented here to be forwarded to RecoTrack.
Definition at line 214 of file CDCTrack.h.
|
private |
Memory for the three dimensional trajectory at the start of the track.
Definition at line 204 of file CDCTrack.h.