Belle II Software development
TRGCDCTrack Class Reference

A class to represent a reconstructed charged track in TRGCDC. More...

#include <TRGCDCTrack.h>

Inheritance diagram for TRGCDCTrack:
TRGCDCTrackBase

Public Types

enum  EDebugValueType {
  fit2D = 1 << 3 ,
  find3D = 1 << 4 ,
  fit3D = 1 << 5 ,
  any = fit2D | find3D | fit3D
}
 Enum for returnValue types. More...
 

Public Member Functions

 TRGCDCTrack ()
 Constructor.
 
 TRGCDCTrack (const TRGCDCCircle &)
 Constructor from a Circle.
 
virtual ~TRGCDCTrack ()
 Destructor.
 
const TRGCDCHelixhelix (void) const
 returns helix parameter.
 
void setHelix (const TRGCDCHelix &helix)
 Set helix parameter.
 
int approach (TRGCDCLink &, bool sagCorrection=false) const
 calculates the closest approach to a wire in real space. Results are stored in TLink. Return value is negative if error happened.
 
virtual const CLHEP::Hep3Vector & p (void) const override
 returns momentum vector.
 
virtual double pt (void) const override
 returns Pt.
 
virtual const CLHEP::Hep3Vector & x (void) const override
 returns position vector.
 
void set2DFitChi2 (double)
 Set 2D fit chi2.
 
double get2DFitChi2 (void) const
 Returns 2D fit chi2.
 
void set3DFitChi2 (double)
 Set 3D fit chi2.
 
double get3DFitChi2 (void) const
 Returns 3D fit chi2.
 
void setDebugValue (EDebugValueType const &moduleName, bool flag)
 Set debug value.
 
int getDebugValue (EDebugValueType const &moduleName) const
 Get debug value.
 
std::vector< HepGeom::Point3D< double > > perfectPosition (void) const
 returns perfect position from GEANT.
 
std::string name (void) const
 returns name.
 
std::string name (const std::string &newName)
 sets and returns name.
 
int status (void) const
 returns status.
 
double charge (void) const
 returns charge.
 
double charge (double c)
 sets and returns charge.
 
virtual void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
 dumps debug information.
 
const std::vector< TRGCDCLink * > & links (void) const
 returns a vector to track segments.
 
const std::vector< TRGCDCLink * > & links (unsigned layerId) const
 returns a vector to track segments.
 
bool fitted (void) const
 returns true if fitted.
 
void setFitted (bool fitted)
 set fit status
 
void setTrackID (int trackID)
 set track ID.
 
int getTrackID ()
 get track ID.
 
virtual unsigned objectType (void) const
 returns object type.
 
const TRGCDCFitterfitter (void) const
 returns a pointer to a default fitter.
 
const TRGCDCFitterfitter (const TRGCDCFitter *)
 sets a default fitter.
 
const TRGCDCRelation relation (void) const
 returns MC information.
 
const TRGCDCRelation relation2D (void) const
 returns MC information for only axial layers.
 
const TRGCDCRelation relation3D (void) const
 returns MC information for only stereo layers.
 
void append (TRGCDCLink *)
 appends a link.
 
void append (const std::vector< TRGCDCLink * > &links)
 appends links.
 
virtual int fit (void)
 fits itself by a default fitter. Error was happened if return value is not zero.
 
virtual int approach2D (TRGCDCLink &) const
 calculate closest approach. Error was happened if return value is not zero.
 

Static Public Member Functions

static std::vector< const TRGCDCTrack * > list (void)
 returns a list of TRGCDCTrack's.
 

Private Attributes

TRGCDCHelix _helix
 Helix parameter.
 
CLHEP::Hep3Vector _p
 Momentum.
 
CLHEP::Hep3Vector _x
 Position.
 
double m_2DFitChi2
 2D fit chi2
 
double m_3DFitChi2
 3D fit chi2
 
int m_debugValue
 Debugging variable.
 
std::string _name
 Name.
 
int _status
 Status.
 
double _charge
 Charge.
 
std::vector< TRGCDCLink * > * _ts
 Links for each super layer.
 
std::vector< TRGCDCLink * > _tsAll
 Links for all super layers.
 
const unsigned _nTs
 Size of _ts.
 
const TRGCDCFitter_fitter
 Fitter.
 
bool _fitted
 Fitting status.
 
int m_trackID
 ID of tracks.
 

Static Private Attributes

static std::vector< const TRGCDCTrack * > _list = vector<const TRGCDCTrack*>()
 a vector to keep all TRGCDCTrack objects.
 

Detailed Description

A class to represent a reconstructed charged track in TRGCDC.

Definition at line 38 of file TRGCDCTrack.h.

Member Enumeration Documentation

◆ EDebugValueType

Enum for returnValue types.

Definition at line 42 of file TRGCDCTrack.h.

42 { fit2D = 1 << 3,
43 find3D = 1 << 4,
44 fit3D = 1 << 5,
45 any = fit2D | find3D | fit3D
46 };

Member Data Documentation

◆ _charge

double _charge
privateinherited

Charge.

Definition at line 148 of file TrackBase.h.

◆ _fitted

bool _fitted
mutableprivateinherited

Fitting status.

Definition at line 169 of file TrackBase.h.

◆ _fitter

const TRGCDCFitter* _fitter
privateinherited

Fitter.

Definition at line 166 of file TrackBase.h.

◆ _helix

TRGCDCHelix _helix
private

Helix parameter.

Definition at line 110 of file TRGCDCTrack.h.

◆ _name

std::string _name
privateinherited

Name.

Definition at line 142 of file TrackBase.h.

◆ _nTs

const unsigned _nTs
privateinherited

Size of _ts.

Definition at line 163 of file TrackBase.h.

◆ _p

CLHEP::Hep3Vector _p
mutableprivate

Momentum.

Definition at line 113 of file TRGCDCTrack.h.

◆ _status

int _status
privateinherited

Status.

Definition at line 145 of file TrackBase.h.

◆ _ts

std::vector<TRGCDCLink*>* _ts
privateinherited

Links for each super layer.

Definition at line 157 of file TrackBase.h.

◆ _tsAll

std::vector<TRGCDCLink*> _tsAll
privateinherited

Links for all super layers.

Definition at line 160 of file TrackBase.h.

◆ _x

CLHEP::Hep3Vector _x
mutableprivate

Position.

Definition at line 116 of file TRGCDCTrack.h.

◆ m_2DFitChi2

double m_2DFitChi2
private

2D fit chi2

Definition at line 119 of file TRGCDCTrack.h.

◆ m_3DFitChi2

double m_3DFitChi2
private

3D fit chi2

Definition at line 122 of file TRGCDCTrack.h.

◆ m_debugValue

int m_debugValue
private

Debugging variable.

Definition at line 125 of file TRGCDCTrack.h.

◆ m_trackID

int m_trackID
privateinherited

ID of tracks.

Definition at line 172 of file TrackBase.h.


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