Belle II Software  release-08-01-10
GFGbl Class Reference

Generic GBL implementation. More...

#include <GFGbl.h>

Inheritance diagram for GFGbl:
Collaboration diagram for GFGbl:

Public Member Functions

 GFGbl ()
 Constructor.
 
virtual ~GFGbl ()
 Destructor.
 
void beginRun ()
 Creates the mille binary file for output of data for Millepede II alignment, can be set by setMP2Options.
 
void endRun ()
 Required to write and close ROOT file with debug output. More...
 
void setGBLOptions (std::string internalIterations="THC", bool enableScatterers=true, bool enableIntermediateScatterer=true)
 Sets internal GBL down-weighting. More...
 
void setMP2Options (double pValueCut=0., unsigned int minNdf=1, std::string mille_file_name="millefile.dat", double chi2Cut=0.)
 Sets GBL & Millepede settings. More...
 
void processTrackWithRep (Track *trk, const AbsTrackRep *rep, bool resortHits=false) override
 Performs fit on a Track. More...
 
void processTrack (Track *, bool resortHits=false)
 Process all reps. More...
 
virtual void setDebugLvl (unsigned int lvl=1)
 

Protected Attributes

unsigned int debugLvl_
 

Private Member Functions

 GFGbl (const GFGbl &)
 
GFGbloperator= (GFGbl const &)
 

Private Attributes

std::string m_milleFileName
 
std::string m_gblInternalIterations
 
double m_pValueCut
 
int m_minNdf
 
double m_chi2Cut
 
bool m_enableScatterers
 
bool m_enableIntermediateScatterer
 

Detailed Description

Generic GBL implementation.

The interface class to GBL track fit

Definition at line 48 of file GFGbl.h.

Member Function Documentation

◆ endRun()

void endRun ( void  )

Required to write and close ROOT file with debug output.

Destructor cannot be used. To be called from endRun function of a module

Definition at line 231 of file GFGbl.cc.

232 {
233  #ifdef OUTPUT
234  diag->cd();
235  diag->Write();
236  diag->Close();
237  #endif
238  // This is needed to close the file before alignment starts
239  if (milleFile)
240  delete milleFile;
241 }

◆ processTrack()

void processTrack ( Track tr,
bool  resortHits = false 
)
inherited

Process all reps.

Start with the cardinalRep and resort the hits if necessary (and supported by the fitter)

Definition at line 25 of file AbsFitter.cc.

◆ processTrackWithRep()

void processTrackWithRep ( Track trk,
const AbsTrackRep rep,
bool  resortHits = false 
)
overridevirtual

Performs fit on a Track.

Hit resorting currently NOT supported.

Implements AbsFitter.

Definition at line 327 of file GFGbl.cc.

◆ setGBLOptions()

void setGBLOptions ( std::string  internalIterations = "THC",
bool  enableScatterers = true,
bool  enableIntermediateScatterer = true 
)
inline

Sets internal GBL down-weighting.

Parameters
internalIterationsGBL internal down-weighting settings, see GBL doc
Returns
void

Definition at line 94 of file GFGbl.h.

94  {
95  m_gblInternalIterations = internalIterations;
96  if (!enableScatterers)
97  enableIntermediateScatterer = false;
98  m_enableScatterers = enableScatterers;
99  m_enableIntermediateScatterer = enableIntermediateScatterer;
100  }

◆ setMP2Options()

void setMP2Options ( double  pValueCut = 0.,
unsigned int  minNdf = 1,
std::string  mille_file_name = "millefile.dat",
double  chi2Cut = 0. 
)
inline

Sets GBL & Millepede settings.

Parameters
pValueCutminimum track p-value for MP2 output
minNdfminimum track NDF for MP2 output
mille_file_namename of MP2 binary file for output
Returns
void

Definition at line 109 of file GFGbl.h.


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