Belle II Software  release-06-01-15
TOPCalModuleAlignment Class Reference

Alignment constants for all 16 modules. More...

#include <TOPCalModuleAlignment.h>

Inheritance diagram for TOPCalModuleAlignment:
Collaboration diagram for TOPCalModuleAlignment:

Public Types

enum  EStatus {
  c_Default = 0 ,
  c_Calibrated = 1 ,
  c_Unusable = 2
}
 Calibration status of a constant. More...
 

Public Member Functions

 TOPCalModuleAlignment ()
 Default constructor All the calibrations constants and the related errors are set to zero.
 
void setAlpha (int moduleID, double alpha, double errAlpha)
 Sets the angle alpha on a single module. More...
 
void setBeta (int moduleID, double beta, double errBeta)
 Sets the angle beta on a single module. More...
 
void setGamma (int moduleID, double gamma, double errGamma)
 Sets the angle gamma on a single module. More...
 
void setX (int moduleID, double x, double errX)
 Sets the displacement x on a single module. More...
 
void setY (int moduleID, double y, double errY)
 Sets the displacement y on a single module. More...
 
void setZ (int moduleID, double z, double errZ)
 Sets the displacement z on a single module. More...
 
void setCalibrated (int moduleID)
 Switches calibration status to calibrated. More...
 
void setUnusable (int moduleID)
 Switches calibration status to unusable to flag badly calibrated constant. More...
 
double getAlpha (int moduleID) const
 Gets the angle alpha on a single module. More...
 
double getBeta (int moduleID) const
 Gets the angle beta on a single module. More...
 
double getGamma (int moduleID) const
 Gets the angle gamma on a single module. More...
 
double getX (int moduleID) const
 Returns the shift x on a single module. More...
 
double getY (int moduleID) const
 Returns the shift y on a single module. More...
 
double getZ (int moduleID) const
 Returns the shift z on a single module. More...
 
double getAlphaErr (int moduleID) const
 Returns the error on alpha on a single module. More...
 
double getBetaErr (int moduleID) const
 Returns the error on beta on a single module. More...
 
double getGammaErr (int moduleID) const
 Returns the error on gamma on a single module. More...
 
double getXErr (int moduleID) const
 Returns the error on x on a single module. More...
 
double getYErr (int moduleID) const
 Returns the error on y on a single module. More...
 
double getZErr (int moduleID) const
 Returns the error on z on a single module. More...
 
bool isCalibrated (int moduleID) const
 Returns calibration status. More...
 
bool isDefault (int moduleID) const
 Returns calibration status. More...
 
bool isUnusable (int moduleID) const
 Returns calibration status. More...
 
const TRotation & getRotation (int moduleID) const
 Returns the rotation from local to nominal frame Transformation is: rotation first then translation. More...
 
const TVector3 & getTranslation (int moduleID) const
 Returns the translation from local to nominal frame Transformation is: rotation first then translation. More...
 
bool areAllCalibrated () const
 Returns true if all modules are calibrated.
 
bool areAllPrecise (double spatialPrecision, double angularPrecision) const
 Returns true if calibration precision for all modules is within specified values. More...
 

Private Types

enum  { c_numModules = 16 }
 Sizes. More...
 

Private Member Functions

void setTransformations () const
 Sets the transformation cache.
 
 ClassDef (TOPCalModuleAlignment, 3)
 do not write out More...
 

Private Attributes

float m_alpha [c_numModules] = {0}
 rotation angle around the x axis
 
float m_beta [c_numModules] = {0}
 rotation angle around the y axis
 
float m_gamma [c_numModules] = {0}
 rotation angle around the z axis
 
float m_x [c_numModules] = {0}
 displacement along the x axis
 
float m_y [c_numModules] = {0}
 displacement along the y axis
 
float m_z [c_numModules] = {0}
 displacement along the z axis
 
float m_errAlpha [c_numModules] = {0}
 error on alpha
 
float m_errBeta [c_numModules] = {0}
 error on beta
 
float m_errGamma [c_numModules] = {0}
 error on gamma
 
float m_errX [c_numModules] = {0}
 error on the x displacement
 
float m_errY [c_numModules] = {0}
 error on the y displacement
 
float m_errZ [c_numModules] = {0}
 error on the z displacement
 
EStatus m_status [c_numModules] = {c_Default}
 calibration status
 
std::vector< TRotation > m_rotations
 cache for rotations (from local to nominal)
 
std::vector< TVector3 > m_translations
 do not write out More...
 

Detailed Description

Alignment constants for all 16 modules.

The constants are three rotation angles around the x, y and z axes (alpha, beta, gamma), and three shifts along the same axes (x, y, z). The meaning of constants is the same as in TOPGeoModuleDisplacement. From muon events.

Definition at line 28 of file TOPCalModuleAlignment.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private

Sizes.

Enumerator
c_numModules 

number of modules

Definition at line 247 of file TOPCalModuleAlignment.h.

247  {c_numModules = 16,
248  };

◆ EStatus

enum EStatus

Calibration status of a constant.

Enumerator
c_Default 

uncalibrated default value

c_Calibrated 

good calibrated value

c_Unusable 

bad calibrated value

Definition at line 34 of file TOPCalModuleAlignment.h.

Member Function Documentation

◆ ClassDef()

ClassDef ( TOPCalModuleAlignment  ,
 
)
private

do not write out

ClassDef

Member Data Documentation

◆ m_translations

std::vector<TVector3> m_translations
mutableprivate

do not write out

cache for translations (from local to nominal)

Definition at line 269 of file TOPCalModuleAlignment.h.


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