KiTrack  1.7.0
Public Member Functions | List of all members
KiTrack::Crit2_HelixWithIP Class Reference

Criterion: Check if two hits are compatible with a helix crossing the IP. More...

#include <Crit2_HelixWithIP.h>

Inheritance diagram for KiTrack::Crit2_HelixWithIP:
KiTrack::ICriterion

Public Member Functions

 Crit2_HelixWithIP (float ratioMin, float ratioMax)
 
virtual bool areCompatible (Segment *parent, Segment *child) throw ( BadSegmentLength )
 
- Public Member Functions inherited from KiTrack::ICriterion
std::map< std::string, float > getMapOfValues ()
 
void setSaveValues (bool saveValues)
 Sets, whether the calculated values shall be saved in a map.
 
std::string getName ()
 
std::string getType ()
 

Additional Inherited Members

- Protected Attributes inherited from KiTrack::ICriterion
std::map< std::string, float > _map_name_value
 
bool _saveValues
 
std::string _name
 
std::string _type
 

Detailed Description

Criterion: Check if two hits are compatible with a helix crossing the IP.

The procedure is this: a circle is calculated from the two hits and the IP. The angle between the center of the circle and two hits is calles alpha here. alpha between IP and the first hit is proportional to the z-distance of the IP and the first hit in the same way alpha between the first and second hit should be proportional to the z-distance of those hits. The value calculated is

\[ \frac{ \frac{\alpha_1}{\Delta z_1} }{ \frac{\alpha_2}{\Delta z_2} } \simeq 1 \]

and is 1 for a perfect helix around the z - axis.

Member Function Documentation

bool Crit2_HelixWithIP::areCompatible ( Segment parent,
Segment child 
)
throw (BadSegmentLength
)
virtual
Returns
If the two Segments are compatible with each other, i.e. could be combined to a longer Segment or a track.

Implements KiTrack::ICriterion.

References KiTrack::IHit::getX(), KiTrack::IHit::getY(), and KiTrack::IHit::getZ().


The documentation for this class was generated from the following files: