Belle II Software development
|
Module for generation of KLM displacement or alignment data. More...
#include <KLMDisplacementGenerator.h>
Public Member Functions | |
KLMDisplacementGenerator () | |
Constructor. | |
~KLMDisplacementGenerator () | |
Destructor. | |
void | fillZeroDisplacements (EKLMAlignment *alignment, EKLMSegmentAlignment *segmentAlignment) |
Fill EKLMAlignment with zero displacements. | |
void | generateFixedModuleDisplacement (double deltaU, double deltaV, double deltaGamma) |
Generation of fixed module displacements. | |
void | generateRandomDisplacement (EKLMAlignment *alignment, EKLMSegmentAlignment *segmentAlignment, bool displaceModule, bool displaceSegment, bool moduleSameDisplacement=false, bool moduleZeroDeltaU=false, bool moduleZeroDeltaV=false, bool moduleZeroDeltaGamma=false) |
Generation of random displacements. | |
void | readDisplacementFromROOTFile (EKLMAlignment *alignment, EKLMSegmentAlignment *segmentAlignment, const char *inputFile) |
Read displacement from ROOT file. | |
void | studyModuleAlignmentLimits (TFile *f) |
Generate random module displacements and check if they are correct (no overlaps). | |
void | studySegmentAlignmentLimits (TFile *f) |
Generate random segment displacements and check if they are correct (no overlaps). | |
void | studyAlignmentLimits (const char *outputFile) |
Generate random displacements and check if they are correct (no overlaps). | |
void | saveDisplacement (EKLMAlignment *alignment, EKLMSegmentAlignment *segmentAlignment, const char *outputFile) |
Save displacements to a ROOT file. | |
Private Attributes | |
const EKLM::GeometryData * | m_GeoDat |
Geometry data. | |
const KLMElementNumbers * | m_ElementNumbers |
Element numbers. | |
const EKLMElementNumbers * | m_eklmElementNumbers |
EKLM element numbers. | |
Module for generation of KLM displacement or alignment data.
Definition at line 30 of file KLMDisplacementGenerator.h.
Constructor.
Definition at line 26 of file KLMDisplacementGenerator.cc.
void fillZeroDisplacements | ( | EKLMAlignment * | alignment, |
EKLMSegmentAlignment * | segmentAlignment | ||
) |
Fill EKLMAlignment with zero displacements.
[out] | alignment | Displacements. |
[out] | segmentAlignment | Segment displacements. |
Definition at line 37 of file KLMDisplacementGenerator.cc.
void generateFixedModuleDisplacement | ( | double | deltaU, |
double | deltaV, | ||
double | deltaGamma | ||
) |
Generation of fixed module displacements.
[in] | deltaU | Shift in U. |
[in] | deltaV | Shift in V. |
[in] | deltaGamma | Rotation in Gamma. |
Definition at line 60 of file KLMDisplacementGenerator.cc.
void generateRandomDisplacement | ( | EKLMAlignment * | alignment, |
EKLMSegmentAlignment * | segmentAlignment, | ||
bool | displaceModule, | ||
bool | displaceSegment, | ||
bool | moduleSameDisplacement = false , |
||
bool | moduleZeroDeltaU = false , |
||
bool | moduleZeroDeltaV = false , |
||
bool | moduleZeroDeltaGamma = false |
||
) |
Generation of random displacements.
[out] | alignment | Displacements. |
[out] | segmentAlignment | Segment displacements. |
[in] | displaceModule | Whether modules should be displaced. |
[in] | displaceSegment | Whether segments should be displaced. |
[in] | moduleSameDisplacement | If the displacement should be the same for all modules. |
[in] | moduleZeroDeltaU | Fix module deltaU at 0. |
[in] | moduleZeroDeltaV | Fix module deltaV at 0. |
[in] | moduleZeroDeltaGamma | Fix module deltaGamma at 0. |
Definition at line 79 of file KLMDisplacementGenerator.cc.
void readDisplacementFromROOTFile | ( | EKLMAlignment * | alignment, |
EKLMSegmentAlignment * | segmentAlignment, | ||
const char * | inputFile | ||
) |
Read displacement from ROOT file.
[out] | alignment | Displacements. |
[out] | segmentAlignment | Segment displacements. |
[in] | inputFile | Input file. |
Definition at line 185 of file KLMDisplacementGenerator.cc.
void saveDisplacement | ( | EKLMAlignment * | alignment, |
EKLMSegmentAlignment * | segmentAlignment, | ||
const char * | outputFile | ||
) |
Save displacements to a ROOT file.
[in] | alignment | Displacements. |
[in] | segmentAlignment | Segment displacements. |
[in] | outputFile | Output file. |
Definition at line 363 of file KLMDisplacementGenerator.cc.
void studyAlignmentLimits | ( | const char * | outputFile | ) |
Generate random displacements and check if they are correct (no overlaps).
[in] | outputFile | Output file. |
Definition at line 354 of file KLMDisplacementGenerator.cc.
void studyModuleAlignmentLimits | ( | TFile * | f | ) |
Generate random module displacements and check if they are correct (no overlaps).
[in] | f | Output file. |
Definition at line 247 of file KLMDisplacementGenerator.cc.
void studySegmentAlignmentLimits | ( | TFile * | f | ) |
Generate random segment displacements and check if they are correct (no overlaps).
[in] | f | Output file. |
Definition at line 295 of file KLMDisplacementGenerator.cc.
|
private |
EKLM element numbers.
Definition at line 144 of file KLMDisplacementGenerator.h.
|
private |
Element numbers.
Definition at line 141 of file KLMDisplacementGenerator.h.
|
private |
Geometry data.
Definition at line 138 of file KLMDisplacementGenerator.h.