PandaRoot
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
 
- Public Member Functions inherited from genfit::TrackCandHit
 TrackCandHit (int detId=-1, int hitId=-1, int planeId=-1, double sortingParameter=0.)
 
virtual ~TrackCandHit ()
 
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 Member Functions inherited from genfit::TrackCandHit
 TrackCandHit (const TrackCandHit &other)
 protect from calling copy c'tor from outside the class. Use clone() if you want a copy! More...
 
TrackCandHitoperator= (const TrackCandHit &)
 protect from calling assignment operator from outside the class. Use clone() instead! More...
 

Protected Attributes

signed char leftRight_
 
- Protected Attributes inherited from genfit::TrackCandHit
int detId_
 
int hitId_
 
int planeId_
 
double sortingParameter_
 

Detailed Description

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

Definition at line 33 of file WireTrackCandHit.h.

Constructor & Destructor Documentation

◆ WireTrackCandHit() [1/2]

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

Referenced by clone().

◆ ~WireTrackCandHit()

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

Definition at line 38 of file WireTrackCandHit.h.

38 { ; }

◆ WireTrackCandHit() [2/2]

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 66 of file WireTrackCandHit.h.

References operator=().

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

Member Function Documentation

◆ clone()

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

Reimplemented from genfit::TrackCandHit.

Definition at line 40 of file WireTrackCandHit.h.

References WireTrackCandHit().

40 { return new WireTrackCandHit(*this); }
WireTrackCandHit(int detId=-1, int hitId=-1, int planeId=-1, double sortingParameter=0., char leftRight=0)

◆ getLeftRightResolution()

int genfit::WireTrackCandHit::getLeftRightResolution ( ) const
inline

Definition at line 43 of file WireTrackCandHit.h.

References leftRight_.

43 { return leftRight_; }

◆ operator=()

WireTrackCandHit& genfit::WireTrackCandHit::operator= ( const WireTrackCandHit )
protected

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

Referenced by WireTrackCandHit().

◆ Print()

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

Reimplemented from genfit::TrackCandHit.

Referenced by setLeftRightResolution().

◆ setLeftRightResolution()

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 52 of file WireTrackCandHit.h.

References leftRight_, and Print().

53  {
54  if (leftRight == 0)
55  leftRight_ = 0;
56  else if (leftRight < 0)
57  leftRight_ = -1;
58  else
59  leftRight_ = 1;
60  }

Member Data Documentation

◆ leftRight_

signed char genfit::WireTrackCandHit::leftRight_
protected

Definition at line 71 of file WireTrackCandHit.h.

Referenced by getLeftRightResolution(), and setLeftRightResolution().


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