Analysis Software
Documentation for sPHENIX simulation software
|
#include <coresoftware/blob/master/offline/packages/PHGenFitPkg/PHGenFit/Fitter.h>
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. | |
Fitter (const Fitter &)=delete | |
Fitter & | operator= (const Fitter &)=delete |
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::EventDisplay * | getEventDisplay () |
int | get_verbosity () const |
void | set_verbosity (int v) |
Static Public Member Functions | |
static 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 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 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) |
Private Attributes | |
int | verbosity |
TGeoManager * | _tgeo_manager |
bool | _doEventDisplay |
genfit::EventDisplay * | _display |
genfit::AbsKalmanFitter * | _fitter |
Definition at line 38 of file Fitter.h.
View newest version in sPHENIX GitHub at line 38 of file Fitter.h
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, assert, testing::Field(), genfit::MaterialEffects::getInstance(), genfit::EventDisplay::getInstance(), genfit::FieldManager::getInstance(), genfit::MaterialEffects::init(), genfit::FieldManager::init(), and genfit::Exception::quiet().
Referenced by getInstance().
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.
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.
PHGenFit::Fitter::~Fitter | ( | ) |
|
explicitdelete |
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(), TpcPrototypeGenFitTrkFinder::End(), and TpcPrototypeGenFitTrkFitter::End().
|
inline |
|
inline |
Definition at line 111 of file Fitter.h.
View newest version in sPHENIX GitHub at line 111 of file Fitter.h
References _display.
Referenced by TpcPrototypeGenFitTrkFinder::End(), TpcPrototypeGenFitTrkFitter::End(), and TpcPrototypeGenFitTrkFitter::process_event().
|
static |
Definition at line 167 of file Fitter.cc.
View newest version in sPHENIX GitHub at line 167 of file Fitter.cc
References assert, testing::Field(), Fitter(), and LogERROR.
Referenced by PHGenFitTrackProjection::InitRun(), TpcPrototypeGenFitTrkFinder::InitRun(), SVReco::InitRun(), GenFitTrackProp::InitRun(), PHRaveVertexing::InitRun(), BDiJetModule::InitRun(), PHG4TrackFastSim::InitRun(), TpcPrototypeGenFitTrkFitter::InitRun(), PHGenFitTrkFitter::InitRun(), TrackProjectorPid::TrackProjectorPid(), and TrackProjectorPlaneECAL::TrackProjectorPlaneECAL().
|
static |
|
inline |
Definition at line 99 of file Fitter.h.
View newest version in sPHENIX GitHub at line 99 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 TpcPrototypeGenFitTrkFitter::DisplayCluster(), TpcPrototypeGenFitTrkFinder::getChi2Ndf(), main(), BDiJetModule::MakeGenFitTrack(), SVReco::MakeGenFitTrack(), TpcPrototypeGenFitTrkFitter::MakeTpcPrototypeTrack(), PHG4TrackFastSim::process_event(), and TpcPrototypeGenFitTrkFitter::ReFitTrack().
|
inline |
Definition at line 104 of file Fitter.h.
View newest version in sPHENIX GitHub at line 104 of file Fitter.h
References _display, _doEventDisplay, and genfit::EventDisplay::getInstance().
|
inline |
Definition at line 121 of file Fitter.h.
View newest version in sPHENIX GitHub at line 121 of file Fitter.h
References genfit::Exception::quiet(), testSigmaEff::v, and verbosity.
Referenced by PHGenFitTrackProjection::InitRun(), TpcPrototypeGenFitTrkFinder::InitRun(), GenFitTrackProp::InitRun(), PHRaveVertexing::InitRun(), TpcPrototypeGenFitTrkFitter::InitRun(), TrackProjectorPid::TrackProjectorPid(), and TrackProjectorPlaneECAL::TrackProjectorPlaneECAL().
|
private |
Definition at line 145 of file Fitter.h.
View newest version in sPHENIX GitHub at line 145 of file Fitter.h
Referenced by displayEvent(), Fitter(), getEventDisplay(), processTrack(), set_do_Event_Display(), and ~Fitter().
|
private |
Definition at line 143 of file Fitter.h.
View newest version in sPHENIX GitHub at line 143 of file Fitter.h
Referenced by Fitter(), is_do_Event_Display(), and set_do_Event_Display().
|
private |
|
private |
|
private |
Verbose control: -1: Silient 0: Minimum 1: Errors only 2: Errors and Warnings 3: Verbose mode, long term debugging
Definition at line 139 of file Fitter.h.
View newest version in sPHENIX GitHub at line 139 of file Fitter.h
Referenced by displayEvent(), get_verbosity(), processTrack(), and set_verbosity().