Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHGenFit::Fitter Class Reference

#include <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.
 
 Fitter (const Fitter &)=delete
 
Fitteroperator= (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::EventDisplaygetEventDisplay ()
 
int get_verbosity () const
 
void set_verbosity (int v)
 

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, 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().

+ 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.

PHGenFit::Fitter::Fitter ( const Fitter )
explicitdelete

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(), TpcPrototypeGenFitTrkFinder::End(), and TpcPrototypeGenFitTrkFitter::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 116 of file Fitter.h.

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

References verbosity.

genfit::EventDisplay* PHGenFit::Fitter::getEventDisplay ( )
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().

+ 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 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().

+ 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 assert, testing::Field(), 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 assert, testing::Field(), Fitter(), and LogERROR.

+ Here is the call graph for this function:

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

Definition at line 99 of file Fitter.h.

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

References _doEventDisplay.

Fitter& PHGenFit::Fitter::operator= ( const Fitter )
delete
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().

+ 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 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().

+ Here is the call graph for this function:

void PHGenFit::Fitter::set_verbosity ( int  v)
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().

+ 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 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().

bool PHGenFit::Fitter::_doEventDisplay
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().

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

Definition at line 146 of file Fitter.h.

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

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

TGeoManager* PHGenFit::Fitter::_tgeo_manager
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().

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 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().


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