FairRoot/PandaRoot
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
genfit::WireTrackCandHit Class Reference

Hit object for use in TrackCand. Provides additional left/right parameter. More...

#include <WireTrackCandHit.h>

Inheritance diagram for genfit::WireTrackCandHit:
genfit::TrackCandHit

Public Member Functions

 WireTrackCandHit (int detId=-1, int hitId=-1, int planeId=-1, double sortingParameter=0., char leftRight=0)
 
virtual ~WireTrackCandHit ()
 
virtual WireTrackCandHitclone () const
 
int getLeftRightResolution () const
 
void setLeftRightResolution (int leftRight)
 
virtual void Print (Option_t *option="") const
 
int getDetId () const
 
int getHitId () const
 
int getPlaneId () const
 
double getSortingParameter () const
 
void setSortingParameter (double sortingParameter)
 

Protected Member Functions

 WireTrackCandHit (const WireTrackCandHit &other)
 protect from calling copy c'tor from outside the class. Use clone() if you want a copy! More...
 
WireTrackCandHitoperator= (const WireTrackCandHit &)
 protect from calling assignment operator from outside the class. Use clone() instead! More...
 

Protected Attributes

signed char leftRight_
 
int detId_
 
int hitId_
 
int planeId_
 
double sortingParameter_
 

Detailed Description

Hit object for use in TrackCand. Provides additional left/right parameter.

Definition at line 34 of file WireTrackCandHit.h.

Constructor & Destructor Documentation

genfit::WireTrackCandHit::WireTrackCandHit ( int  detId = -1,
int  hitId = -1,
int  planeId = -1,
double  sortingParameter = 0.,
char  leftRight = 0 
)

Referenced by clone().

virtual genfit::WireTrackCandHit::~WireTrackCandHit ( )
inlinevirtual

Definition at line 44 of file WireTrackCandHit.h.

44 {;}
genfit::WireTrackCandHit::WireTrackCandHit ( const WireTrackCandHit other)
inlineprotected

protect from calling copy c'tor from outside the class. Use clone() if you want a copy!

Definition at line 70 of file WireTrackCandHit.h.

70  :
71  TrackCandHit(other), leftRight_(other.leftRight_) {;}
TrackCandHit(int detId=-1, int hitId=-1, int planeId=-1, double sortingParameter=0.)

Member Function Documentation

virtual WireTrackCandHit* genfit::WireTrackCandHit::clone ( ) const
inlinevirtual

Reimplemented from genfit::TrackCandHit.

Definition at line 46 of file WireTrackCandHit.h.

References WireTrackCandHit().

46 {return new WireTrackCandHit(*this);}
WireTrackCandHit(int detId=-1, int hitId=-1, int planeId=-1, double sortingParameter=0., char leftRight=0)
int genfit::TrackCandHit::getDetId ( ) const
inlineinherited
int genfit::TrackCandHit::getHitId ( ) const
inlineinherited
int genfit::WireTrackCandHit::getLeftRightResolution ( ) const
inline

Definition at line 49 of file WireTrackCandHit.h.

References leftRight_.

49 {return leftRight_;}
int genfit::TrackCandHit::getPlaneId ( ) const
inlineinherited
double genfit::TrackCandHit::getSortingParameter ( ) const
inlineinherited

Definition at line 51 of file TrackCandHit.h.

References genfit::TrackCandHit::sortingParameter_.

51 {return sortingParameter_;}
WireTrackCandHit& genfit::WireTrackCandHit::operator= ( const WireTrackCandHit )
protected

protect from calling assignment operator from outside the class. Use clone() instead!

virtual void genfit::WireTrackCandHit::Print ( Option_t *  option = "") const
virtual

Reimplemented from genfit::TrackCandHit.

void genfit::WireTrackCandHit::setLeftRightResolution ( int  leftRight)
inline

select how to resolve the left/right ambiguity: -1: negative (left) side on vector (track direction) x (wire direction) 0: auto select (take side with smallest distance to track) 1: positive (right) side on vector (track direction) x (wire direction)

Definition at line 58 of file WireTrackCandHit.h.

References leftRight_.

58  {
59  if (leftRight==0) leftRight_ = 0;
60  else if (leftRight<0) leftRight_ = -1;
61  else leftRight_ = 1;
62  }
void genfit::TrackCandHit::setSortingParameter ( double  sortingParameter)
inlineinherited

Definition at line 54 of file TrackCandHit.h.

References genfit::TrackCandHit::sortingParameter_.

54 {sortingParameter_ = sortingParameter;}

Member Data Documentation

int genfit::TrackCandHit::detId_
protectedinherited

Definition at line 82 of file TrackCandHit.h.

Referenced by genfit::TrackCandHit::getDetId().

int genfit::TrackCandHit::hitId_
protectedinherited

Definition at line 83 of file TrackCandHit.h.

Referenced by genfit::TrackCandHit::getHitId().

signed char genfit::WireTrackCandHit::leftRight_
protected

Definition at line 77 of file WireTrackCandHit.h.

Referenced by getLeftRightResolution(), and setLeftRightResolution().

int genfit::TrackCandHit::planeId_
protectedinherited

Definition at line 84 of file TrackCandHit.h.

Referenced by genfit::TrackCandHit::getPlaneId().

double genfit::TrackCandHit::sortingParameter_
protectedinherited

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