 |
Belle II Software
release-05-02-19
|
13 #include <top/reconstruction/TOPtrack.h>
14 #include <framework/gearbox/Const.h>
15 #include <framework/logging/Logger.h>
51 static int addData(
int moduleID,
int pixelID,
double time,
double timeError);
73 void setSteps(
double position,
double angle,
double time,
double refind);
93 for (
size_t i = 0; i < std::min(parInit.size(),
m_parInit.size()); i++) {
105 for (
unsigned i = 0; i <
m_parNames.size(); i++) {
111 B2ERROR(
"TOPalign::fixParameter: invalid parameter name '" << name <<
"'");
120 for (
unsigned i = 0; i <
m_parNames.size(); i++) {
126 B2ERROR(
"TOPalign::unfixParameter: invalid parameter name '" << name <<
"'");
215 std::vector<float>
m_par;
const std::vector< float > & getErrorMatrix() const
Returns error matrix of alignment parameters.
std::vector< bool > m_fixed
true if parameter is fixed
static void setPhotonYields(double bkgPerModule, double scaleN0=1)
Sets expected photon yields.
const std::vector< float > & getParameters() const
Returns alignment parameters.
Class to hold reconstructed track, interface to fortran.
void setSteps(double position, double angle, double time, double refind)
Sets steps for numerical calculation of derivatives.
int getNumTracks() const
Returns track counter.
void setGrid(int NP, int NC)
Sets grid for averaging of time-of-propagation in analytic PDF.
std::vector< float > m_parInit
initial parameter values
int getNumUsedTracks() const
Returns number of tracks used in current result.
int m_NC
grid for averaging: number of Cerenkov angles
int m_numUsedTracks
number of tracks used
int m_numPhotons
number of photons used for log likelihood calculation
static void clearData()
Clear data list.
void setParameters(const std::vector< double > &parInit)
Sets initial values of parameters (overwrites current parameters!) Order is: translations in x,...
int m_numTracks
track counter
std::vector< float > m_maxDpar
maximal parameter changes in one iteration
std::vector< float > m_COV
covariance matrix
std::vector< float > getErrors() const
Returns errors on alignment parameters.
void fixParameter(const std::string &name)
Fixes parameter with its name given as argument.
Abstract base class for different kinds of events.
static int addData(int moduleID, int pixelID, double time, double timeError)
Add data.
int getModuleID() const
Returns module ID.
int m_NP
grid for averaging: number of emission points along track
void unfixParameter(const std::string &name)
Unfixes parameter with its name given as argument.
std::vector< std::string > m_parNames
parameter names
Provides a type-safe way to pass members of the chargedStableSet set.
void reset()
Reset the object.
int iterate(const TOPtrack &track, const Const::ChargedStable &hypothesis)
Run a single iteration.
int getNumOfPhotons() const
Returns number of photons used for log likelihood calculation.
void unfixAll()
Unfixes all parameters.
void setModuleID(int moduleID)
Sets module ID.
bool isValid() const
Checks if the results are valid.
int m_opt
PDF option (=rough)
std::vector< float > m_steps
step sizes
std::vector< float > m_par
current parameter values
const std::vector< std::string > & getParameterNames() const
Returns alignment parameter names.
std::vector< double > m_U
matrix (neg.
bool m_valid
validity of results