Belle II Software development
TOPCalModuleAlignment Class Reference

Alignment constants for all 16 modules. More...

#include <TOPCalModuleAlignment.h>

Inheritance 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.
 
void setBeta (int moduleID, double beta, double errBeta)
 Sets the angle beta on a single module.
 
void setGamma (int moduleID, double gamma, double errGamma)
 Sets the angle gamma on a single module.
 
void setX (int moduleID, double x, double errX)
 Sets the displacement x on a single module.
 
void setY (int moduleID, double y, double errY)
 Sets the displacement y on a single module.
 
void setZ (int moduleID, double z, double errZ)
 Sets the displacement z on a single module.
 
void setCalibrated (int moduleID)
 Switches calibration status to calibrated.
 
void setUnusable (int moduleID)
 Switches calibration status to unusable to flag badly calibrated constant.
 
double getAlpha (int moduleID) const
 Gets the angle alpha on a single module.
 
double getBeta (int moduleID) const
 Gets the angle beta on a single module.
 
double getGamma (int moduleID) const
 Gets the angle gamma on a single module.
 
double getX (int moduleID) const
 Returns the shift x on a single module.
 
double getY (int moduleID) const
 Returns the shift y on a single module.
 
double getZ (int moduleID) const
 Returns the shift z on a single module.
 
double getAlphaErr (int moduleID) const
 Returns the error on alpha on a single module.
 
double getBetaErr (int moduleID) const
 Returns the error on beta on a single module.
 
double getGammaErr (int moduleID) const
 Returns the error on gamma on a single module.
 
double getXErr (int moduleID) const
 Returns the error on x on a single module.
 
double getYErr (int moduleID) const
 Returns the error on y on a single module.
 
double getZErr (int moduleID) const
 Returns the error on z on a single module.
 
bool isCalibrated (int moduleID) const
 Returns calibration status.
 
bool isDefault (int moduleID) const
 Returns calibration status.
 
bool isUnusable (int moduleID) const
 Returns calibration status.
 
const ROOT::Math::Transform3D & getTransformation (int moduleID) const
 Returns transformation from local to nominal frame.
 
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.
 

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
 

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< ROOT::Math::Transform3D > m_transforms
 cache for transformations (from local to nominal)
 

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 27 of file TOPCalModuleAlignment.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private

Sizes.

Enumerator
c_numModules 

number of modules

Definition at line 240 of file TOPCalModuleAlignment.h.

240 {c_numModules = 16,
241 };

◆ 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 33 of file TOPCalModuleAlignment.h.

33 {
34 c_Default = 0,
35 c_Calibrated = 1,
36 c_Unusable = 2
37 };
@ c_Calibrated
good calibrated value
@ c_Default
uncalibrated default value

Constructor & Destructor Documentation

◆ TOPCalModuleAlignment()

Default constructor All the calibrations constants and the related errors are set to zero.

Definition at line 43 of file TOPCalModuleAlignment.h.

43{}

Member Function Documentation

◆ ClassDef()

ClassDef ( TOPCalModuleAlignment  ,
 
)
private

do not write out

ClassDef

Member Data Documentation

◆ m_alpha

float m_alpha[c_numModules] = {0}
private

rotation angle around the x axis

Definition at line 243 of file TOPCalModuleAlignment.h.

◆ m_beta

float m_beta[c_numModules] = {0}
private

rotation angle around the y axis

Definition at line 244 of file TOPCalModuleAlignment.h.

◆ m_errAlpha

float m_errAlpha[c_numModules] = {0}
private

error on alpha

Definition at line 250 of file TOPCalModuleAlignment.h.

◆ m_errBeta

float m_errBeta[c_numModules] = {0}
private

error on beta

Definition at line 251 of file TOPCalModuleAlignment.h.

◆ m_errGamma

float m_errGamma[c_numModules] = {0}
private

error on gamma

Definition at line 252 of file TOPCalModuleAlignment.h.

◆ m_errX

float m_errX[c_numModules] = {0}
private

error on the x displacement

Definition at line 253 of file TOPCalModuleAlignment.h.

◆ m_errY

float m_errY[c_numModules] = {0}
private

error on the y displacement

Definition at line 254 of file TOPCalModuleAlignment.h.

◆ m_errZ

float m_errZ[c_numModules] = {0}
private

error on the z displacement

Definition at line 255 of file TOPCalModuleAlignment.h.

◆ m_gamma

float m_gamma[c_numModules] = {0}
private

rotation angle around the z axis

Definition at line 245 of file TOPCalModuleAlignment.h.

◆ m_status

EStatus m_status[c_numModules] = {c_Default}
private

calibration status

Definition at line 257 of file TOPCalModuleAlignment.h.

◆ m_transforms

std::vector<ROOT::Math::Transform3D> m_transforms
mutableprivate

cache for transformations (from local to nominal)

Definition at line 260 of file TOPCalModuleAlignment.h.

◆ m_x

float m_x[c_numModules] = {0}
private

displacement along the x axis

Definition at line 246 of file TOPCalModuleAlignment.h.

◆ m_y

float m_y[c_numModules] = {0}
private

displacement along the y axis

Definition at line 247 of file TOPCalModuleAlignment.h.

◆ m_z

float m_z[c_numModules] = {0}
private

displacement along the z axis

Definition at line 248 of file TOPCalModuleAlignment.h.


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