Belle II Software development
|
A reconstructed sequence of two dimensional hits in one super layer. More...
#include <CDCSegment2D.h>
Public Member Functions | |
bool | operator< (const CDCSegment2D &segment2D) const |
Comparison of segments up to the super cluster id keeping them close together on sort. | |
Relation< const CDCSegment2D, const CDCSegment2D > | makeRelation (const CDCSegment2D *segment) const |
Helper constructor to create a relation in python. | |
WeightedRelation< const CDCSegment2D, const CDCSegment2D > | makeWeightedRelation (double weight, const CDCSegment2D *segment) const |
Helper constructor to create a relation in python. | |
std::vector< const CDCWire * > | getWireSegment () const |
Getter for the vector of wires the hits of this segment are based on in the same order. | |
CDCWireHitSegment | getWireHitSegment () const |
Getter for the vector of the wire hits of this segment are based on in the same order. | |
CDCRLWireHitSegment | getRLWireHitSegment () const |
Getter for the vector of right left oriented the hits of this segment. | |
CDCSegment2D | getAlias () const |
Getter for the alias version of the segment - fit not copied. | |
int | getNRLSwitches () const |
Getter for the number of changes in the right left passage in the segment. | |
double | getRLAsymmetry () const |
Getter for the sum of right left information relative to the size. | |
CDCSegment2D | reversed () const |
Makes a copy of the segment with the reversed hits in the opposite order. | |
void | reverse () |
Reverses the order of hits and their right left passage hypotheses inplace. | |
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 (bool toHits=false) const |
Unset the masked flag of the automaton cell of this segment and of all contained wire hits. | |
void | setAndForwardMaskedFlag (bool toHits=false) const |
Set the masked flag of the automaton cell of this segment and forward the masked flag to all contained wire hits. | |
void | receiveMaskedFlag (bool fromHits=false) const |
Check all contained wire hits if one has the masked flag. | |
int | getISuperCluster () const |
Getter for the global super cluster id. | |
void | setISuperCluster (int iSuperCluster) const |
Setter for the globale super cluster id. | |
void | receiveISuperCluster () const |
Setter for the super cluster id based on the hit content. | |
bool | isFullyTaken (unsigned int maxNotTaken=0) const |
Returns false, if there are more than N hits in the range which does not have a taken flag. | |
EStereoKind | getStereoKind () const |
Returns the common stereo type of all hits. | |
bool | isAxial () const |
Indicator if the underlying wires are axial. | |
ISuperLayer | getISuperLayer () const |
Returns the common super layer id of all stored tracking hits. | |
const std::vector< CDCRecoHit2D > & | items () const |
Legacy accessor for the items of the segments, still used in some corners. | |
CDCTrajectory2D & | getTrajectory2D () const |
Getter for the two dimensional trajectory fitted to the segment. | |
void | setTrajectory2D (const CDCTrajectory2D &trajectory2D) const |
Setter for the two dimensional trajectory fitted to the segment. | |
void | sortByArcLength2D () |
Sort the recoHits according to their perpS information. | |
double | getAliasScore () const |
Getter for the flag that this segment may have an aliased version. | |
void | setAliasScore (double aliasScore) |
Setter for the flag that this segment may have an aliased version. | |
Static Public Member Functions | |
static CDCSegment2D | condense (const CDCTangentSegment &tangentSegment) |
Averages the reconstructed positions from hits that overlap in adjacent tangents in the given tangent segment. | |
static CDCSegment2D | condense (const std::vector< const CDCTangent * > &tangentPath) |
Averages the reconstructed positions from hits that overlap in adjacent tangents in the given tangent path. | |
static CDCSegment2D | condense (const CDCFacetSegment &facetSegment) |
Averages the reconstructed positions from hits that overlap in adjacent facets in the given facet segment. | |
static CDCSegment2D | condense (const std::vector< const CDCFacet * > &facetPath) |
Averages the reconstructed positions from hits that overlap in adjacent facet in the given facet path. | |
static CDCSegment2D | condense (const std::vector< const CDCSegment2D * > &segmentPath) |
Flattens a series of segments to one segment. | |
static CDCSegment2D | reconstructUsingTangents (const CDCRLWireHitSegment &rlWireHitSegment) |
Reconstruct from wire hits with attached right left passage hypotheses by constructing tangents between adjacent hits pairs and averaging the reconstructed position. | |
static CDCSegment2D | reconstructUsingFacets (const CDCRLWireHitSegment &rlWireHitSegment) |
Reconstruct from wire hits with attached right left passage hypotheses by constructing facets between adjacent hits triples and averaging the reconstructed position. | |
Public Attributes | |
T | elements |
STL member. | |
Private Attributes | |
AutomatonCell | m_automatonCell |
Memory for the automaton cell. | |
int | m_iSuperCluster = -1 |
Memory for the global super cluster id. | |
CDCTrajectory2D | m_trajectory2D |
Memory for the two dimensional trajectory fitted to this segment. | |
double | m_aliasScore |
Boolean flag to indicate that this segment has a valid alias version. | |
A reconstructed sequence of two dimensional hits in one super layer.
Definition at line 39 of file CDCSegment2D.h.
|
static |
Averages the reconstructed positions from hits that overlap in adjacent facets in the given facet segment.
Definition at line 236 of file CDCSegment2D.cc.
|
static |
Averages the reconstructed positions from hits that overlap in adjacent tangents in the given tangent segment.
Definition at line 215 of file CDCSegment2D.cc.
|
static |
Averages the reconstructed positions from hits that overlap in adjacent facet in the given facet path.
Definition at line 246 of file CDCSegment2D.cc.
|
static |
Flattens a series of segments to one segment.
Does not copy any fit.
Definition at line 257 of file CDCSegment2D.cc.
|
static |
Averages the reconstructed positions from hits that overlap in adjacent tangents in the given tangent path.
Definition at line 225 of file CDCSegment2D.cc.
CDCSegment2D getAlias | ( | ) | const |
Getter for the alias version of the segment - fit not copied.
Definition at line 344 of file CDCSegment2D.cc.
|
inlineinherited |
Getter for the flag that this segment may have an aliased version.
Definition at line 90 of file CDCSegment.h.
|
inline |
Mutable getter for the automaton cell.
Definition at line 119 of file CDCSegment2D.h.
|
inline |
Getter for the global super cluster id.
Definition at line 150 of file CDCSegment2D.h.
|
inlineinherited |
Returns the common super layer id of all stored tracking hits.
This checks if all items are located in the same superlayer and returns the superlayer id of the later. Returns ISuperLayerUtil::c_Invalid, if the superlayer is not shared among the hits.
Definition at line 57 of file CDCSegment.h.
int getNRLSwitches | ( | ) | const |
Getter for the number of changes in the right left passage in the segment.
Definition at line 355 of file CDCSegment2D.cc.
double getRLAsymmetry | ( | ) | const |
Getter for the sum of right left information relative to the size.
Definition at line 368 of file CDCSegment2D.cc.
CDCRLWireHitSegment getRLWireHitSegment | ( | ) | const |
Getter for the vector of right left oriented the hits of this segment.
Definition at line 379 of file CDCSegment2D.cc.
|
inlineinherited |
Returns the common stereo type of all hits.
This checks if all tracking hits are located in the same superlayer and
returns the stereo type of the later. Returns EStereoKind::c_Invalid if the superlayer
is not shared among the tracking hits.
Definition at line 39 of file CDCSegment.h.
|
inlineinherited |
Getter for the two dimensional trajectory fitted to the segment.
Definition at line 69 of file CDCSegment.h.
CDCWireHitSegment getWireHitSegment | ( | ) | const |
Getter for the vector of the wire hits of this segment are based on in the same order.
Definition at line 333 of file CDCSegment2D.cc.
std::vector< const CDCWire * > getWireSegment | ( | ) | const |
Getter for the vector of wires the hits of this segment are based on in the same order.
Definition at line 324 of file CDCSegment2D.cc.
|
inlineinherited |
Indicator if the underlying wires are axial.
Definition at line 45 of file CDCSegment.h.
bool isFullyTaken | ( | unsigned int | maxNotTaken = 0 | ) | const |
Returns false, if there are more than N hits in the range which does not have a taken flag.
Definition at line 450 of file CDCSegment2D.cc.
|
inlineinherited |
Legacy accessor for the items of the segments, still used in some corners.
Definition at line 63 of file CDCSegment.h.
Relation< const CDCSegment2D > makeRelation | ( | const CDCSegment2D * | segment | ) | const |
Helper constructor to create a relation in python.
Definition at line 307 of file CDCSegment2D.cc.
WeightedRelation< const CDCSegment2D > makeWeightedRelation | ( | double | weight, |
const CDCSegment2D * | segment | ||
) | const |
Helper constructor to create a relation in python.
Definition at line 312 of file CDCSegment2D.cc.
|
inline |
Indirection to the automaton cell for easier access to the flags.
Definition at line 125 of file CDCSegment2D.h.
bool operator< | ( | const CDCSegment2D & | segment2D | ) | const |
Comparison of segments up to the super cluster id keeping them close together on sort.
Definition at line 317 of file CDCSegment2D.cc.
void receiveISuperCluster | ( | ) | const |
Setter for the super cluster id based on the hit content.
Definition at line 465 of file CDCSegment2D.cc.
void receiveMaskedFlag | ( | bool | fromHits = false | ) | 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 438 of file CDCSegment2D.cc.
|
static |
Reconstruct from wire hits with attached right left passage hypotheses by constructing facets between adjacent hits triples and averaging the reconstructed position.
Definition at line 297 of file CDCSegment2D.cc.
|
static |
Reconstruct from wire hits with attached right left passage hypotheses by constructing tangents between adjacent hits pairs and averaging the reconstructed position.
Definition at line 278 of file CDCSegment2D.cc.
void reverse | ( | ) |
Reverses the order of hits and their right left passage hypotheses inplace.
Definition at line 405 of file CDCSegment2D.cc.
CDCSegment2D reversed | ( | ) | const |
Makes a copy of the segment with the reversed hits in the opposite order.
Definition at line 390 of file CDCSegment2D.cc.
|
inlineinherited |
Setter for the flag that this segment may have an aliased version.
Definition at line 96 of file CDCSegment.h.
void setAndForwardMaskedFlag | ( | bool | toHits = false | ) | 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 428 of file CDCSegment2D.cc.
|
inline |
Setter for the globale super cluster id.
Definition at line 156 of file CDCSegment2D.h.
|
inlineinherited |
Setter for the two dimensional trajectory fitted to the segment.
Definition at line 75 of file CDCSegment.h.
|
inlineinherited |
Sort the recoHits according to their perpS information.
Definition at line 81 of file CDCSegment.h.
void unsetAndForwardMaskedFlag | ( | bool | toHits = false | ) | const |
Unset the masked flag of the automaton cell of this segment and of all contained wire hits.
Definition at line 418 of file CDCSegment2D.cc.
|
privateinherited |
Boolean flag to indicate that this segment has a valid alias version.
Definition at line 106 of file CDCSegment.h.
|
mutableprivate |
Memory for the automaton cell.
It is declared mutable because it can vary rather freely despite of the hit content might be required fixed.
Definition at line 173 of file CDCSegment2D.h.
|
mutableprivate |
Memory for the global super cluster id.
Definition at line 176 of file CDCSegment2D.h.
|
mutableprivateinherited |
Memory for the two dimensional trajectory fitted to this segment.
Definition at line 103 of file CDCSegment.h.