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

Criterion: forbids zig zagging: measure the angles in the xy plane, transpose them to the range from -pi to pi and multiply: if there is a zigzag, the sign of the angle switches and the product of both angles becomes negative. More...

#include <Crit3_NoZigZag_MV.h>

Inheritance diagram for KiTrack::Crit3_NoZigZag_MV:
KiTrack::ICriterion

Public Member Functions

 Crit3_NoZigZag_MV (float prodMin, float prodMax)
 
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: forbids zig zagging: measure the angles in the xy plane, transpose them to the range from -pi to pi and multiply: if there is a zigzag, the sign of the angle switches and the product of both angles becomes negative.

Constructor & Destructor Documentation

Crit3_NoZigZag_MV::Crit3_NoZigZag_MV ( float  prodMin,
float  prodMax 
)
Parameters
prodMinthe minimum product of the two angles in degrees
prodMaxthe maxinum product of the two angles in degrees

Member Function Documentation

bool Crit3_NoZigZag_MV::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::getTheta(), and KiTrack::IHit::isVirtual().


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