PandaRoot
genfit::TrackCandHit Class Reference

Hit object for use in TrackCand. Provides IDs and sorting parameters. More...

#include <TrackCandHit.h>

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

Public Member Functions

 TrackCandHit (int detId=-1, int hitId=-1, int planeId=-1, double sortingParameter=0.)
 
virtual ~TrackCandHit ()
 
virtual TrackCandHitclone () const
 
int getDetId () const
 
int getHitId () const
 
int getPlaneId () const
 
double getSortingParameter () const
 
void setSortingParameter (double sortingParameter)
 
virtual void Print (Option_t *option="") const
 

Protected Member Functions

 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

int detId_
 
int hitId_
 
int planeId_
 
double sortingParameter_
 

Friends

bool operator== (const TrackCandHit &lhs, const TrackCandHit &rhs)
 Equality operator. Does not check sortingParameter. More...
 
bool operator!= (const TrackCandHit &lhs, const TrackCandHit &rhs)
 
bool operator< (const TrackCandHit &lhs, const TrackCandHit &rhs)
 Compare sortingParameter, needed for sorting. More...
 

Detailed Description

Hit object for use in TrackCand. Provides IDs and sorting parameters.

Definition at line 33 of file TrackCandHit.h.

Constructor & Destructor Documentation

◆ TrackCandHit() [1/2]

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

Referenced by clone().

◆ ~TrackCandHit()

virtual genfit::TrackCandHit::~TrackCandHit ( )
inlinevirtual

Definition at line 38 of file TrackCandHit.h.

38 { ; }

◆ TrackCandHit() [2/2]

genfit::TrackCandHit::TrackCandHit ( const TrackCandHit other)
inlineprotected

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

Definition at line 64 of file TrackCandHit.h.

References operator=().

64 : TObject(other), detId_(other.detId_), hitId_(other.hitId_), planeId_(other.planeId_), sortingParameter_(other.sortingParameter_) { ; }

Member Function Documentation

◆ clone()

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

Reimplemented in genfit::WireTrackCandHit.

Definition at line 40 of file TrackCandHit.h.

References TrackCandHit().

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

◆ getDetId()

int genfit::TrackCandHit::getDetId ( ) const
inline

Definition at line 43 of file TrackCandHit.h.

References detId_.

Referenced by genfit::MeasurementFactory< genfit::AbsMeasurement >::createMany().

43 { return detId_; }

◆ getHitId()

int genfit::TrackCandHit::getHitId ( ) const
inline

Definition at line 44 of file TrackCandHit.h.

References hitId_.

Referenced by genfit::MeasurementFactory< genfit::AbsMeasurement >::createMany().

44 { return hitId_; }

◆ getPlaneId()

int genfit::TrackCandHit::getPlaneId ( ) const
inline

Definition at line 45 of file TrackCandHit.h.

References planeId_.

45 { return planeId_; }

◆ getSortingParameter()

double genfit::TrackCandHit::getSortingParameter ( ) const
inline

Definition at line 46 of file TrackCandHit.h.

References sortingParameter_.

46 { return sortingParameter_; }

◆ operator=()

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

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

Referenced by TrackCandHit().

◆ Print()

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

Reimplemented in genfit::WireTrackCandHit.

Referenced by setSortingParameter().

◆ setSortingParameter()

void genfit::TrackCandHit::setSortingParameter ( double  sortingParameter)
inline

Definition at line 49 of file TrackCandHit.h.

References operator==, Print(), and sortingParameter_.

49 { sortingParameter_ = sortingParameter; }

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const TrackCandHit lhs,
const TrackCandHit rhs 
)
friend

Definition at line 56 of file TrackCandHit.h.

56 { return !(lhs == rhs); }

◆ operator<

bool operator< ( const TrackCandHit lhs,
const TrackCandHit rhs 
)
friend

Compare sortingParameter, needed for sorting.

Definition at line 60 of file TrackCandHit.h.

60 { return (lhs.sortingParameter_ < rhs.sortingParameter_); }

◆ operator==

bool operator== ( const TrackCandHit lhs,
const TrackCandHit rhs 
)
friend

Equality operator. Does not check sortingParameter.

Referenced by setSortingParameter().

Member Data Documentation

◆ detId_

int genfit::TrackCandHit::detId_
protected

Definition at line 69 of file TrackCandHit.h.

Referenced by getDetId().

◆ hitId_

int genfit::TrackCandHit::hitId_
protected

Definition at line 70 of file TrackCandHit.h.

Referenced by getHitId().

◆ planeId_

int genfit::TrackCandHit::planeId_
protected

Definition at line 71 of file TrackCandHit.h.

Referenced by getPlaneId().

◆ sortingParameter_

double genfit::TrackCandHit::sortingParameter_
protected

Definition at line 72 of file TrackCandHit.h.

Referenced by getSortingParameter(), and setSortingParameter().


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