10#include <calibration/CalibrationAlgorithm.h>
Base class for calibration algorithms.
EResult
The result of calibration.
Algorithm for geometrical alignment of TOP modules with dimuons or Bhabhas.
void setAngularPrecision(double precision)
Sets required precision of rotation angles to declare calibration as c_OK.
std::vector< float > * m_vAlignPars
alignment parameters
virtual ~TOPAlignmentAlgorithm()
Destructor.
double m_spatialPrecision
required precision of displacements
TBranch * m_bAlignParsErr
branch of error on alignment parameters
std::multimap< int, AlignData > m_inputData
input from ntuples
virtual EResult calibrate() final
algorithm implementation
TOPAlignmentAlgorithm()
Constructor.
double m_angularPrecision
required precision of rotation angles
std::vector< float > * m_vAlignParsErr
error on alignment parameters
TBranch * m_bAlignPars
branch of alignment parameters
int m_iter
iteration counter
bool m_valid
true if alignment parameters are valid
int m_errorCode
error code of the alignment procedure
void mergeData()
merge subsamples and rescale errors
std::map< int, AlignData > m_mergedData
merged subsamples
int m_ntrk
number of tracks used
void setSpatialPrecision(double precision)
Sets required precision of displacements to declare calibration as c_OK.
Abstract base class for different kinds of events.
void add(const AlignData &data)
Merge another data structure to this one.
bool valid
true if alignment parameters are valid
void finalize(double scaleFact)
Calculate weighted averages and rescale errors.
std::vector< float > alignPars
alignment parameters
int ntrk
number of tracks used
int iter
iteration counter
std::vector< float > alignErrs
uncertainties on alignment parameters