Belle II Software  release-06-01-15
RecoTrackGenfitAccess Class Reference

This class allows access to the genfit::Track of the RecoTrack. More...

#include <RecoTrack.h>

Static Public Member Functions

static genfit::TrackgetGenfitTrack (RecoTrack &recoTrack)
 Give access to the RecoTrack's genfit::Track. More...
 
static genfit::AbsTrackRepcreateOrReturnRKTrackRep (RecoTrack &recoTrack, int PDGcode)
 Checks if a TrackRap for the PDG id of the RecoTrack (and its charge conjugate) does already exit and returns it if available. More...
 

Detailed Description

This class allows access to the genfit::Track of the RecoTrack.

This class allows direct access to the most holy part of the RecoTrack. The design of the RecoTrack is such, that this should not be required. However, some interfaces require a genfit::Track, e.g. the genfit rave interface, and the access to the genfit::Track member is required. This should only be used when no other solution works.

Definition at line 912 of file RecoTrack.h.

Member Function Documentation

◆ createOrReturnRKTrackRep()

genfit::AbsTrackRep * createOrReturnRKTrackRep ( RecoTrack recoTrack,
int  PDGcode 
)
static

Checks if a TrackRap for the PDG id of the RecoTrack (and its charge conjugate) does already exit and returns it if available.

If no TrackRep is available, a new RKTrackRep is added to the genfit::Track. This ensures that a TrackRep with the same PDG id (and its charge conjugate) is not available two times in the genfit::Track.

By convention, only one TrackRep for one particle type can exist inside of a RecoTrack, no matter the charge. So there can only be a electron or positron TrackRep, but not both.

Parameters
recoTrackTrack to add TrackRep to
PDGcode: code of the hypothesis which is negative or positive, depending on the charge of the hypothesis particle.

Definition at line 401 of file RecoTrack.cc.

◆ getGenfitTrack()

genfit::Track & getGenfitTrack ( RecoTrack recoTrack)
static

Give access to the RecoTrack's genfit::Track.

Parameters
recoTrackTrack to unpack
Returns
genfit::Track of the RecoTrack.

Definition at line 396 of file RecoTrack.cc.


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