![]() |
Belle II Software development
|
Class representing an oriented hit wire including a hypotheses whether the causing track passes left or right. More...
#include <CDCRLWireHit.h>
Public Member Functions | |
| CDCRLWireHit ()=default | |
| Default constructor for ROOT. | |
| CDCRLWireHit (const CDCWireHit *wireHit, ERightLeft rlInfo=ERightLeft::c_Unknown) | |
| Constructs an oriented wire hit with unknown left right passage information. | |
| CDCRLWireHit (const CDCWireHit *wireHit, ERightLeft rlInfo, double driftLength, double driftLengthVariance) | |
| Constructs an oriented wire hit. | |
| CDCRLWireHit | reversed () const |
| Returns the oriented wire hit with the opposite right left information. | |
| void | reverse () |
| Switches the right left passage to its opposite in place. | |
| CDCRLWireHit | getAlias () const |
| Returns the aliased version of this oriented wire hit - here same as reverse. | |
| bool | operator== (const CDCRLWireHit &rhs) const |
| Equality comparison based on wire hit, left right passage information. | |
| bool | operator< (const CDCRLWireHit &rhs) const |
| Total ordering relation based on wire hit and left right passage information in this order of importance. | |
| operator const Belle2::CDCHit * () const | |
| Make the wire hit automatically castable to its underlying cdcHit. | |
| const CDCHit * | getHit () const |
| Getter for the CDCHit pointer into the StoreArray. | |
| const CDC::CDCWire & | getWire () const |
| Getter for the wire the oriented hit associated to. | |
| bool | isOnWire (const CDC::CDCWire &wire) const |
| Checks if the oriented hit is associated with the give wire. | |
| const WireID & | getWireID () const |
| Getter for the WireID of the wire the hit is located on. | |
| CDC::ISuperLayer | getISuperLayer () const |
| Getter for the superlayer id. | |
| CDC::EStereoKind | getStereoKind () const |
| Getter for the stereo type of the underlying wire. | |
| bool | isAxial () const |
| Indicator if the underlying wire is axial. | |
| const ROOT::Math::XYVector & | getRefPos2D () const |
| The two dimensional reference position of the underlying wire. | |
| double | getRefCylindricalR () const |
| The distance from the beam line at reference position of the underlying wire. | |
| const CDCWireHit & | getWireHit () const |
| Getter for the wire hit associated with the oriented hit. | |
| bool | hasWireHit (const CDCWireHit &wirehit) const |
| Checks if the oriented hit is associated with the give wire hit. | |
| double | getRefDriftLength () const |
| Getter for the drift length at the reference position of the wire. | |
| void | setRefDriftLength (double driftLength) |
| Setter for the drift length at the reference position of the wire. | |
| double | getSignedRefDriftLength () const |
| Getter for the drift length at the reference position of the wire. | |
| double | getRefDriftLengthVariance () const |
| Getter for the variance of the drift length at the reference position of the wire. | |
| void | setRefDriftLengthVariance (double driftLengthVariance) |
| Setter for the variance of the drift length at the reference position of the wire. | |
| ERightLeft | getRLInfo () const |
| Getter for the right left passage information. | |
| void | setRLInfo (const ERightLeft rlInfo) |
| Setter for the right left passage information. | |
| Vector2D | reconstruct2D (const CDCTrajectory2D &trajectory2D) const |
| Reconstructs a position of primary ionisation on the drift circle. | |
| Vector3D | reconstruct3D (const CDCTrajectory2D &trajectory2D, double z=0) const |
| Attempts to reconstruct a three dimensional position (especially of stereo hits). | |
Static Public Member Functions | |
| static CDCRLWireHit | average (const CDCRLWireHit &rlWireHit1, const CDCRLWireHit &rlWireHit2) |
| Constructs the average of two wire hits with right left passage information. | |
| static CDCRLWireHit | average (const CDCRLWireHit &rlWireHit1, const CDCRLWireHit &rlWireHit2, const CDCRLWireHit &rlWireHit3) |
| Constructs the average of three wire hits with right left passage information. | |
| static CDCRLWireHit | fromSimHit (const CDCWireHit *wirehit, const CDCSimHit &simhit) |
| Constructs an oriented wire hit from a CDCSimHit and the associated wirehit. | |
Private Attributes | |
| const CDCWireHit * | m_wireHit = nullptr |
| Memory for the reference to the assiziated wire hit. | |
| double | m_refDriftLength = 0.0 |
| Memory for the reestimated drift length. | |
| double | m_refDriftLengthVariance = 0.0 |
| Memory for the reestimated drift length variance. | |
| ERightLeft | m_rlInfo = ERightLeft::c_Unknown |
| Memory for the right left passage information of the oriented wire hit. | |
Friends | |
| bool | operator< (const CDCRLWireHit &rlWireHit, const CDC::CDCWire &wire) |
| Defines wires and oriented wire hits to be coaligned on the wire on which they are based. | |
| bool | operator< (const CDC::CDCWire &wire, const CDCRLWireHit &rlWireHit) |
| Defines oriented wire hits and wires to be coaligned on the wire on which they are based. | |
| bool | operator< (const CDCRLWireHit &rlWireHit, const CDCWireHit &wireHit) |
| Defines wire hits and oriented wire hits to be coaligned on the wire hit on which they are based. | |
| bool | operator< (const CDCWireHit &wireHit, const CDCRLWireHit &rlWireHit) |
| Defines oriented wire hits and wire hits to be coaligned on the wire hit on which they are based. | |
Class representing an oriented hit wire including a hypotheses whether the causing track passes left or right.
The right left information is freely setable. More than one CDCRLWireHit can point to one CDCWireHit. For more information see
Definition at line 47 of file CDCRLWireHit.h.
|
explicit |
Constructs an oriented wire hit with unknown left right passage information.
| wireHit | The wire hit the oriented hit is associated with. |
| rlInfo | The right left passage information of the wire relative to the track |
Definition at line 44 of file CDCRLWireHit.cc.
| CDCRLWireHit | ( | const CDCWireHit * | wireHit, |
| ERightLeft | rlInfo, | ||
| double | driftLength, | ||
| double | driftLengthVariance ) |
Constructs an oriented wire hit.
| wireHit | The wire hit the oriented hit is associated with. |
| rlInfo | The right left passage information of the wire relative to the track |
| driftLength | The re-estimated drift length |
| driftLengthVariance | The re-estimated drift length variance |
Definition at line 49 of file CDCRLWireHit.cc.
|
static |
Constructs the average of two wire hits with right left passage information.
Takes the average of the estimated drift lengths.
Definition at line 60 of file CDCRLWireHit.cc.
|
static |
Constructs the average of three wire hits with right left passage information.
Takes the average of the estimated drift lengths.
Definition at line 82 of file CDCRLWireHit.cc.
|
static |
Constructs an oriented wire hit from a CDCSimHit and the associated wirehit.
This translates the sim hit to an oriented wire hit mainly to be able to compare the reconstructed values from the algorithm with the Monte Carlo information. It merely evaluates, if the true trajectory passes right or left of the wire.
Definition at line 111 of file CDCRLWireHit.cc.
|
inline |
Returns the aliased version of this oriented wire hit - here same as reverse.
Definition at line 111 of file CDCRLWireHit.h.
| const CDCHit * getHit | ( | ) | const |
Getter for the CDCHit pointer into the StoreArray.
Definition at line 125 of file CDCRLWireHit.cc.
| ISuperLayer getISuperLayer | ( | ) | const |
Getter for the superlayer id.
Definition at line 140 of file CDCRLWireHit.cc.
| double getRefCylindricalR | ( | ) | const |
The distance from the beam line at reference position of the underlying wire.
Definition at line 160 of file CDCRLWireHit.cc.
|
inline |
Getter for the drift length at the reference position of the wire.
Definition at line 211 of file CDCRLWireHit.h.
|
inline |
Getter for the variance of the drift length at the reference position of the wire.
Definition at line 229 of file CDCRLWireHit.h.
| const ROOT::Math::XYVector & getRefPos2D | ( | ) | const |
The two dimensional reference position of the underlying wire.
Definition at line 155 of file CDCRLWireHit.cc.
|
inline |
Getter for the right left passage information.
Definition at line 241 of file CDCRLWireHit.h.
|
inline |
Getter for the drift length at the reference position of the wire.
Definition at line 223 of file CDCRLWireHit.h.
| EStereoKind getStereoKind | ( | ) | const |
Getter for the stereo type of the underlying wire.
Definition at line 145 of file CDCRLWireHit.cc.
| const CDCWire & getWire | ( | ) | const |
Getter for the wire the oriented hit associated to.
Definition at line 130 of file CDCRLWireHit.cc.
|
inline |
Getter for the wire hit associated with the oriented hit.
Definition at line 199 of file CDCRLWireHit.h.
| const WireID & getWireID | ( | ) | const |
Getter for the WireID of the wire the hit is located on.
Definition at line 135 of file CDCRLWireHit.cc.
|
inline |
Checks if the oriented hit is associated with the give wire hit.
Definition at line 205 of file CDCRLWireHit.h.
| bool isAxial | ( | ) | const |
Indicator if the underlying wire is axial.
Definition at line 150 of file CDCRLWireHit.cc.
|
inline |
Checks if the oriented hit is associated with the give wire.
Definition at line 175 of file CDCRLWireHit.h.
|
inline |
Make the wire hit automatically castable to its underlying cdcHit.
Definition at line 163 of file CDCRLWireHit.h.
|
inline |
Total ordering relation based on wire hit and left right passage information in this order of importance.
Definition at line 126 of file CDCRLWireHit.h.
|
inline |
Equality comparison based on wire hit, left right passage information.
Definition at line 117 of file CDCRLWireHit.h.
| Vector2D reconstruct2D | ( | const CDCTrajectory2D & | trajectory2D | ) | const |
Reconstructs a position of primary ionisation on the drift circle.
The result is the position of closest approach on the drift circle to the trajectory.
All positions and the trajectory are interpreted to lie at z=0. Also the right left passage hypotheses does not play a role in the reconstruction in any way.
Definition at line 165 of file CDCRLWireHit.cc.
| Vector3D reconstruct3D | ( | const CDCTrajectory2D & | trajectory2D, |
| double | z = 0 ) const |
Attempts to reconstruct a three dimensional position (especially of stereo hits).
This method makes a distinct difference between axial and stereo hits:
Definition at line 180 of file CDCRLWireHit.cc.
|
inline |
Switches the right left passage to its opposite in place.
Definition at line 105 of file CDCRLWireHit.h.
|
inline |
Returns the oriented wire hit with the opposite right left information.
Definition at line 96 of file CDCRLWireHit.h.
|
inline |
Setter for the drift length at the reference position of the wire.
Definition at line 217 of file CDCRLWireHit.h.
|
inline |
Setter for the variance of the drift length at the reference position of the wire.
Definition at line 235 of file CDCRLWireHit.h.
|
inline |
Setter for the right left passage information.
Definition at line 247 of file CDCRLWireHit.h.
|
friend |
Defines oriented wire hits and wires to be coaligned on the wire on which they are based.
Definition at line 139 of file CDCRLWireHit.h.
|
friend |
Defines wires and oriented wire hits to be coaligned on the wire on which they are based.
Definition at line 133 of file CDCRLWireHit.h.
|
friend |
Defines wire hits and oriented wire hits to be coaligned on the wire hit on which they are based.
Definition at line 148 of file CDCRLWireHit.h.
|
friend |
Defines oriented wire hits and wire hits to be coaligned on the wire hit on which they are based.
Definition at line 157 of file CDCRLWireHit.h.
|
private |
Memory for the reestimated drift length.
Definition at line 283 of file CDCRLWireHit.h.
|
private |
Memory for the reestimated drift length variance.
Definition at line 286 of file CDCRLWireHit.h.
|
private |
Memory for the right left passage information of the oriented wire hit.
Definition at line 289 of file CDCRLWireHit.h.
|
private |
Memory for the reference to the assiziated wire hit.
Definition at line 280 of file CDCRLWireHit.h.