KiTrack  1.7.0
Public Member Functions | Protected Attributes | List of all members
KiTrack::IHit Class Referenceabstract

An Interface for hits. More...

#include <IHit.h>

Public Member Functions

float getX () const
 
float getY () const
 
float getZ () const
 
int getSector () const
 
virtual const ISectorSystemgetSectorSystem () const =0
 
unsigned getLayer () const
 
bool isVirtual () const
 
void setIsVirtual (bool isVirtual)
 
float distTo (IHit *otherHit)
 
std::string getPositionInfo ()
 
double get3DAngle (IHit *otherHit) const
 to be used with mini-vectors: More...
 
double getPhi () const
 to be used with mini-vectors: More...
 
double getTheta () const
 to be used with mini-vectors: More...
 

Protected Attributes

float _x
 
float _y
 
float _z
 
double _3DAngle
 
double _phiMV
 
double _thetaMV
 
int _sector
 
bool _isVirtual
 

Detailed Description

An Interface for hits.

They have of course a position, accessible with getX(), getY() and getZ().

Also a hit has a sector. A sector is just an integer, telling where the hit lies. For example a sector 141 could mean 1st layer, 4th module, 1st sensor. But how information is encoded is dealt with in the SectorSystem classes (see ISectorSystem for the Abstract Base Class ).

Member Function Documentation

float IHit::distTo ( IHit otherHit)
Returns
the distance to an other hit

References getX(), getY(), and getZ().

double KiTrack::IHit::get3DAngle ( IHit otherHit) const
inline

to be used with mini-vectors:

Returns
3D angle
unsigned KiTrack::IHit::getLayer ( ) const
inline
Returns
the layer of the hit

References KiTrack::ISectorSystem::getLayer(), and getSectorSystem().

double KiTrack::IHit::getPhi ( ) const
inline

to be used with mini-vectors:

Returns
azimuth angle

Referenced by KiTrack::Crit2_DeltaPhi_MV::areCompatible().

std::string IHit::getPositionInfo ( )
Returns
a string containing the position of the hit
int KiTrack::IHit::getSector ( ) const
inline
Returns
the sector, where the hit lies n
virtual const ISectorSystem* KiTrack::IHit::getSectorSystem ( ) const
pure virtual
Returns
the used SectorSystem that encodes the sector of the hit

Referenced by getLayer().

double KiTrack::IHit::getTheta ( ) const
inline

to be used with mini-vectors:

Returns
polar angle

Referenced by KiTrack::Crit2_DeltaTheta_MV::areCompatible(), and KiTrack::Crit3_NoZigZag_MV::areCompatible().

float KiTrack::IHit::getX ( ) const
inline
float KiTrack::IHit::getY ( ) const
inline
float KiTrack::IHit::getZ ( ) const
inline
bool KiTrack::IHit::isVirtual ( ) const
inline
Returns
whether the hit is virtual (not a real hit).

Referenced by KiTrack::Crit3_NoZigZag_MV::areCompatible().


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