EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHGenFit::Fitter Class Reference

#include <fun4all_coresoftware/blob/master/offline/packages/PHGenFitPkg/PHGenFit/Fitter.h>

+ Collaboration diagram for PHGenFit::Fitter:

Public Types

enum  FitterType { KalmanFitter, KalmanFitterRefTrack, DafSimple, DafRef }
 
enum  TrackRepType { RKTrackRep }
 

Public Member Functions

 Fitter (const std::string &tgeo_file_name, const PHField *field, const std::string &fitter_choice="KalmanFitterRefTrack", const std::string &track_rep_choice="RKTrackRep", const bool doEventDisplay=false)
 Default constructor.
 
 Fitter (TGeoManager *tgeo_manager, genfit::AbsBField *fieldMap, const std::string &fitter_choice="KalmanFitterRefTrack", const std::string &track_rep_choice="RKTrackRep", const bool doEventDisplay=false)
 
 Fitter (TGeoManager *tgeo_manager, genfit::AbsBField *fieldMap, const PHGenFit::Fitter::FitterType &fitter_choice=PHGenFit::Fitter::KalmanFitter, const PHGenFit::Fitter::TrackRepType &track_rep_choice=PHGenFit::Fitter::RKTrackRep, const bool doEventDisplay=false)
 
 ~Fitter ()
 Default destructor.
 
int processTrack (PHGenFit::Track *track, const bool save_to_evt_disp=false)
 
int displayEvent ()
 
bool is_do_Event_Display () const
 
void set_do_Event_Display (bool doEventDisplay)
 
genfit::EventDisplaygetEventDisplay ()
 
int get_verbosity () const
 
void set_verbosity (int verbosity)
 

Static Public Member Functions

static FittergetInstance (const std::string &tgeo_file_name, const PHField *field, const std::string &fitter_choice="KalmanFitterRefTrack", const std::string &track_rep_choice="RKTrackRep", const bool doEventDisplay=false)
 
static FittergetInstance (TGeoManager *tgeo_manager, const PHField *field, const std::string &fitter_choice="KalmanFitterRefTrack", const std::string &track_rep_choice="RKTrackRep", const bool doEventDisplay=false)
 
static FittergetInstance (TGeoManager *tgeo_manager, const PHField *field, const PHGenFit::Fitter::FitterType &fitter_choice=PHGenFit::Fitter::KalmanFitter, const PHGenFit::Fitter::TrackRepType &track_rep_choice=PHGenFit::Fitter::RKTrackRep, const bool doEventDisplay=false)
 

Private Attributes

int verbosity
 
TGeoManager * _tgeo_manager
 
bool _doEventDisplay
 
genfit::EventDisplay_display
 
genfit::AbsKalmanFitter_fitter
 

Detailed Description

Definition at line 38 of file Fitter.h.

View newest version in sPHENIX GitHub at line 38 of file Fitter.h

Member Enumeration Documentation

Enumerator:
KalmanFitter 
KalmanFitterRefTrack 
DafSimple 
DafRef 

Definition at line 41 of file Fitter.h.

View newest version in sPHENIX GitHub at line 41 of file Fitter.h

Enumerator:
RKTrackRep 

Definition at line 48 of file Fitter.h.

View newest version in sPHENIX GitHub at line 48 of file Fitter.h

Constructor & Destructor Documentation

PHGenFit::Fitter::Fitter ( const std::string &  tgeo_file_name,
const PHField field,
const std::string &  fitter_choice = "KalmanFitterRefTrack",
const std::string &  track_rep_choice = "RKTrackRep",
const bool  doEventDisplay = false 
)

Default constructor.

Definition at line 44 of file Fitter.cc.

View newest version in sPHENIX GitHub at line 44 of file Fitter.cc

References _display, _doEventDisplay, _fitter, _tgeo_manager, genfit::MaterialEffects::getInstance(), genfit::EventDisplay::getInstance(), genfit::FieldManager::getInstance(), genfit::MaterialEffects::init(), genfit::FieldManager::init(), and genfit::Exception::quiet().

Referenced by getInstance().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PHGenFit::Fitter::Fitter ( TGeoManager *  tgeo_manager,
genfit::AbsBField fieldMap,
const std::string &  fitter_choice = "KalmanFitterRefTrack",
const std::string &  track_rep_choice = "RKTrackRep",
const bool  doEventDisplay = false 
)

Definition at line 235 of file Fitter.cc.

View newest version in sPHENIX GitHub at line 235 of file Fitter.cc

References _display, _doEventDisplay, _fitter, genfit::MaterialEffects::getInstance(), genfit::EventDisplay::getInstance(), genfit::FieldManager::getInstance(), genfit::MaterialEffects::init(), genfit::FieldManager::init(), and LogERROR.

+ Here is the call graph for this function:

PHGenFit::Fitter::Fitter ( TGeoManager *  tgeo_manager,
genfit::AbsBField fieldMap,
const PHGenFit::Fitter::FitterType fitter_choice = PHGenFit::Fitter::KalmanFitter,
const PHGenFit::Fitter::TrackRepType track_rep_choice = PHGenFit::Fitter::RKTrackRep,
const bool  doEventDisplay = false 
)

Definition at line 184 of file Fitter.cc.

View newest version in sPHENIX GitHub at line 184 of file Fitter.cc

References _display, _doEventDisplay, _fitter, DafRef, DafSimple, genfit::MaterialEffects::getInstance(), genfit::EventDisplay::getInstance(), genfit::FieldManager::getInstance(), genfit::MaterialEffects::init(), genfit::FieldManager::init(), KalmanFitter, KalmanFitterRefTrack, and LogERROR.

+ Here is the call graph for this function:

PHGenFit::Fitter::~Fitter ( )

Default destructor.

Definition at line 85 of file Fitter.cc.

View newest version in sPHENIX GitHub at line 85 of file Fitter.cc

References _display, and _fitter.

Member Function Documentation

int PHGenFit::Fitter::displayEvent ( )

Definition at line 269 of file Fitter.cc.

View newest version in sPHENIX GitHub at line 269 of file Fitter.cc

References _display, LogERROR, genfit::EventDisplay::open(), and verbosity.

Referenced by PHG4TrackFastSim::DisplayEvent(), B0TrackFastSim::DisplayEvent(), PHG4TrackFastSim::End(), and B0TrackFastSim::End().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int PHGenFit::Fitter::get_verbosity ( ) const
inline

Definition at line 114 of file Fitter.h.

View newest version in sPHENIX GitHub at line 114 of file Fitter.h

References verbosity.

genfit::EventDisplay* PHGenFit::Fitter::getEventDisplay ( )
inline

Definition at line 109 of file Fitter.h.

View newest version in sPHENIX GitHub at line 109 of file Fitter.h

References _display.

Referenced by PHG4TrackFastSim::process_event(), and B0TrackFastSim::process_event().

+ Here is the caller graph for this function:

Fitter * PHGenFit::Fitter::getInstance ( const std::string &  tgeo_file_name,
const PHField field,
const std::string &  fitter_choice = "KalmanFitterRefTrack",
const std::string &  track_rep_choice = "RKTrackRep",
const bool  doEventDisplay = false 
)
static

Definition at line 167 of file Fitter.cc.

View newest version in sPHENIX GitHub at line 167 of file Fitter.cc

References Fitter(), and LogERROR.

Referenced by PHGenFitTrkProp::InitializePHGenFit(), PHGenFitTrackProjection::InitRun(), PHRaveVertexing::InitRun(), PHG4TrackFastSim::InitRun(), B0TrackFastSim::InitRun(), and PHGenFitTrkFitter::InitRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Fitter * PHGenFit::Fitter::getInstance ( TGeoManager *  tgeo_manager,
const PHField field,
const std::string &  fitter_choice = "KalmanFitterRefTrack",
const std::string &  track_rep_choice = "RKTrackRep",
const bool  doEventDisplay = false 
)
static

Definition at line 219 of file Fitter.cc.

View newest version in sPHENIX GitHub at line 219 of file Fitter.cc

References Fitter(), and LogERROR.

+ Here is the call graph for this function:

Fitter * PHGenFit::Fitter::getInstance ( TGeoManager *  tgeo_manager,
const PHField field,
const PHGenFit::Fitter::FitterType fitter_choice = PHGenFit::Fitter::KalmanFitter,
const PHGenFit::Fitter::TrackRepType track_rep_choice = PHGenFit::Fitter::RKTrackRep,
const bool  doEventDisplay = false 
)
static

Definition at line 279 of file Fitter.cc.

View newest version in sPHENIX GitHub at line 279 of file Fitter.cc

References Fitter(), and LogERROR.

+ Here is the call graph for this function:

bool PHGenFit::Fitter::is_do_Event_Display ( ) const
inline

Definition at line 97 of file Fitter.h.

View newest version in sPHENIX GitHub at line 97 of file Fitter.h

References _doEventDisplay.

int PHGenFit::Fitter::processTrack ( PHGenFit::Track track,
const bool  save_to_evt_disp = false 
)

Definition at line 93 of file Fitter.cc.

View newest version in sPHENIX GitHub at line 93 of file Fitter.cc

References _display, _fitter, genfit::EventDisplay::addEvent(), genfit::Track::checkConsistency(), Acts::UnitConstants::e, genfit::Track::getCardinalRep(), genfit::Track::getFitStatus(), PHGenFit::Track::getGenFitTrack(), genfit::FitStatus::isFitConverged(), LogWARNING, genfit::AbsFitter::processTrack(), verbosity, and genfit::Exception::what().

Referenced by main(), PHG4TrackFastSim::process_event(), and B0TrackFastSim::process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PHGenFit::Fitter::set_do_Event_Display ( bool  doEventDisplay)
inline

Definition at line 102 of file Fitter.h.

View newest version in sPHENIX GitHub at line 102 of file Fitter.h

References _display, _doEventDisplay, and genfit::EventDisplay::getInstance().

+ Here is the call graph for this function:

void PHGenFit::Fitter::set_verbosity ( int  verbosity)
inline

Definition at line 119 of file Fitter.h.

View newest version in sPHENIX GitHub at line 119 of file Fitter.h

References genfit::Exception::quiet(), and verbosity.

Referenced by PHGenFitTrackProjection::InitRun(), PHRaveVertexing::InitRun(), PHG4TrackFastSim::InitRun(), and B0TrackFastSim::InitRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

genfit::EventDisplay* PHGenFit::Fitter::_display
private

Definition at line 143 of file Fitter.h.

View newest version in sPHENIX GitHub at line 143 of file Fitter.h

Referenced by displayEvent(), Fitter(), getEventDisplay(), processTrack(), set_do_Event_Display(), and ~Fitter().

bool PHGenFit::Fitter::_doEventDisplay
private

Definition at line 141 of file Fitter.h.

View newest version in sPHENIX GitHub at line 141 of file Fitter.h

Referenced by Fitter(), is_do_Event_Display(), and set_do_Event_Display().

genfit::AbsKalmanFitter* PHGenFit::Fitter::_fitter
private

Definition at line 144 of file Fitter.h.

View newest version in sPHENIX GitHub at line 144 of file Fitter.h

Referenced by Fitter(), processTrack(), and ~Fitter().

TGeoManager* PHGenFit::Fitter::_tgeo_manager
private

Definition at line 139 of file Fitter.h.

View newest version in sPHENIX GitHub at line 139 of file Fitter.h

Referenced by Fitter().

int PHGenFit::Fitter::verbosity
private

Verbose control: -1: Silient 0: Minimum 1: Errors only 2: Errors and Warnings 3: Verbose mode, long term debugging

Definition at line 137 of file Fitter.h.

View newest version in sPHENIX GitHub at line 137 of file Fitter.h

Referenced by displayEvent(), get_verbosity(), processTrack(), and set_verbosity().


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