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 CDCWire & | getWire () const |
Getter for the wire the oriented hit associated to. | |
bool | isOnWire (const 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. | |
ISuperLayer | getISuperLayer () const |
Getter for the superlayer id. | |
EStereoKind | getStereoKind () const |
Getter for the stereo type of the underlying wire. | |
bool | isAxial () const |
Indicator if the underlying wire is axial. | |
const Vector2D & | 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. | |
ERightLeft | m_rlInfo = ERightLeft::c_Unknown |
Memory for the right left passage information of the oriented 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. | |
Friends | |
bool | operator< (const CDCRLWireHit &rlWireHit, const CDCWire &wire) |
Defines wires and oriented wire hits to be coaligned on the wire on which they are based. | |
bool | operator< (const 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 41 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 43 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 48 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 59 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 81 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 110 of file CDCRLWireHit.cc.
|
inline |
Returns the aliased version of this oriented wire hit - here same as reverse.
Definition at line 104 of file CDCRLWireHit.h.
const CDCHit * getHit | ( | ) | const |
Getter for the CDCHit pointer into the StoreArray.
Definition at line 124 of file CDCRLWireHit.cc.
ISuperLayer getISuperLayer | ( | ) | const |
Getter for the superlayer id.
Definition at line 139 of file CDCRLWireHit.cc.
double getRefCylindricalR | ( | ) | const |
The distance from the beam line at reference position of the underlying wire.
Definition at line 159 of file CDCRLWireHit.cc.
|
inline |
Getter for the drift length at the reference position of the wire.
Definition at line 204 of file CDCRLWireHit.h.
|
inline |
Getter for the variance of the drift length at the reference position of the wire.
Definition at line 222 of file CDCRLWireHit.h.
const Vector2D & getRefPos2D | ( | ) | const |
The two dimensional reference position of the underlying wire.
Definition at line 154 of file CDCRLWireHit.cc.
|
inline |
Getter for the right left passage information.
Definition at line 234 of file CDCRLWireHit.h.
|
inline |
Getter for the drift length at the reference position of the wire.
Definition at line 216 of file CDCRLWireHit.h.
EStereoKind getStereoKind | ( | ) | const |
Getter for the stereo type of the underlying wire.
Definition at line 144 of file CDCRLWireHit.cc.
const CDCWire & getWire | ( | ) | const |
Getter for the wire the oriented hit associated to.
Definition at line 129 of file CDCRLWireHit.cc.
|
inline |
Getter for the wire hit associated with the oriented hit.
Definition at line 192 of file CDCRLWireHit.h.
const WireID & getWireID | ( | ) | const |
Getter for the WireID of the wire the hit is located on.
Definition at line 134 of file CDCRLWireHit.cc.
|
inline |
Checks if the oriented hit is associated with the give wire hit.
Definition at line 198 of file CDCRLWireHit.h.
bool isAxial | ( | ) | const |
Indicator if the underlying wire is axial.
Definition at line 149 of file CDCRLWireHit.cc.
|
inline |
Checks if the oriented hit is associated with the give wire.
Definition at line 168 of file CDCRLWireHit.h.
|
inline |
Make the wire hit automatically castable to its underlying cdcHit.
Definition at line 156 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 119 of file CDCRLWireHit.h.
|
inline |
Equality comparison based on wire hit, left right passage information.
Definition at line 110 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 164 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 179 of file CDCRLWireHit.cc.
|
inline |
Switches the right left passage to its opposite in place.
Definition at line 98 of file CDCRLWireHit.h.
|
inline |
Returns the oriented wire hit with the opposite right left information.
Definition at line 89 of file CDCRLWireHit.h.
|
inline |
Setter for the drift length at the reference position of the wire.
Definition at line 210 of file CDCRLWireHit.h.
|
inline |
Setter for the variance of the drift length at the reference position of the wire.
Definition at line 228 of file CDCRLWireHit.h.
|
inline |
Setter for the right left passage information.
Definition at line 240 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 126 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 141 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 132 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 150 of file CDCRLWireHit.h.
|
private |
Memory for the reestimated drift length.
Definition at line 279 of file CDCRLWireHit.h.
|
private |
Memory for the reestimated drift length variance.
Definition at line 282 of file CDCRLWireHit.h.
|
private |
Memory for the right left passage information of the oriented wire hit.
Definition at line 276 of file CDCRLWireHit.h.
|
private |
Memory for the reference to the assiziated wire hit.
Definition at line 273 of file CDCRLWireHit.h.