FairRoot/PandaRoot
|
#include <TH1D.h>
#include <TCanvas.h>
#include <TGeoManager.h>
#include <TGeoMatrix.h>
#include <TGeoPhysicalNode.h>
#include "PndLmdGeometryHelper.h"
#include <TGeoNode.h>
#include <TFile.h>
#include <TChain.h>
#include <TClonesArray.h>
#include <FairRunSim.h>
#include <iostream>
#include <fstream>
#include <map>
#include <string>
#include <sstream>
#include <PndLmdHitPair.h>
#include "json.hpp"
Go to the source code of this file.
Typedefs | |
using | json = nlohmann::json |
Variables | |
std::map< std::string, TGeoHMatrix > * | matricesMisaligned |
std::map< std::string, TGeoHMatrix > * | matricesIdeal |
PndLmdGeometryHelper * | helper |
using json = nlohmann::json |
Definition at line 29 of file testAlignMatrices.C.
void applyMisalignmentToGGeoManager | ( | TString | filename | ) |
Definition at line 58 of file testAlignMatrices.C.
References gGeoManager, and TString.
Referenced by buildCyclic().
TGeoHMatrix baseTransformation | ( | TGeoHMatrix & | input, |
TGeoHMatrix & | toBaseMatrix | ||
) |
Definition at line 279 of file testAlignMatrices.C.
Referenced by getOverlapMatrixLikeICP().
void buildCyclic | ( | int | alignParam, |
string | cut | ||
) |
Definition at line 341 of file testAlignMatrices.C.
References applyMisalignmentToGGeoManager(), dx, dy, ext, getMatrixDiff(), getMatrixSensorToSensor(), getMisalignedOverlapFromGeoManager(), getMisalignedOverlapFromICP(), PndLmdGeometryHelper::getOverlapInfos(), getSmallOverlapInfo(), i, PndLmdOverlapInfo::id1, PndLmdOverlapInfo::id2, matricesIdeal, matricesMisaligned, readRootMatrices(), sensor2, TString, and unApplyMisalignmentToGGeoManager().
void checkPairOrientation | ( | ) |
Definition at line 851 of file testAlignMatrices.C.
void compareICPmatrices | ( | int | alignParam, |
string | cut | ||
) |
Definition at line 731 of file testAlignMatrices.C.
References dx, dy, ext, filename, getMatrixDiff(), PndLmdGeometryHelper::getOverlapInfos(), getOverlapMatrixLikeICP(), matricesIdeal, matricesMisaligned, readMatrixFromDisk(), readRootMatrices(), and TString.
void compareShiftDataShiftGeo | ( | ) |
Definition at line 653 of file testAlignMatrices.C.
References cut, cuts, ext, filename, getMatrixDiff(), PndLmdGeometryHelper::getOverlapInfos(), and readMatrixFromDisk().
std::vector<double> getMatrixDiff | ( | TGeoHMatrix & | mat1, |
TGeoHMatrix & | mat2 | ||
) |
Definition at line 324 of file testAlignMatrices.C.
Referenced by buildCyclic(), compareICPmatrices(), and compareShiftDataShiftGeo().
TGeoHMatrix getMatrixSensorToSensor | ( | int | sensorOne, |
int | sensorTwo | ||
) |
Definition at line 269 of file testAlignMatrices.C.
References PndLmdGeometryHelper::getMatrixPndGlobalToSensor().
Referenced by buildCyclic(), getMisalignedOverlapFromGeoManager(), getMisalignedOverlapFromICP(), and getOverlapMatrixLikeICP().
TGeoHMatrix getMisalignedOverlapFromGeoManager | ( | PndLmdOverlapInfo & | info | ) |
Definition at line 296 of file testAlignMatrices.C.
References getMatrixSensorToSensor(), getOverlapMatrixLikeICP(), PndLmdOverlapInfo::id1, and PndLmdOverlapInfo::id2.
Referenced by buildCyclic().
TGeoHMatrix getMisalignedOverlapFromICP | ( | PndLmdOverlapInfo & | info, |
std::string | ICPmatrix | ||
) |
Definition at line 305 of file testAlignMatrices.C.
References getMatrixSensorToSensor(), PndLmdOverlapInfo::id1, PndLmdOverlapInfo::id2, and readMatrixFromDisk().
Referenced by buildCyclic().
TGeoHMatrix getOverlapMatrixLikeICP | ( | PndLmdOverlapInfo | info | ) |
Definition at line 283 of file testAlignMatrices.C.
References baseTransformation(), getMatrixSensorToSensor(), PndLmdOverlapInfo::id1, PndLmdOverlapInfo::id2, PndLmdOverlapInfo::path1, and PndLmdOverlapInfo::path2.
Referenced by compareICPmatrices(), and getMisalignedOverlapFromGeoManager().
PndLmdOverlapInfo& getSmallOverlapInfo | ( | std::vector< PndLmdOverlapInfo > & | infos, |
int | smallOverlap | ||
) |
Definition at line 313 of file testAlignMatrices.C.
References PndLmdOverlapInfo::overlapID.
Referenced by buildCyclic().
void initDummySimulation | ( | ) |
Definition at line 31 of file testAlignMatrices.C.
References Cave, Dipole, fRun, Magnet, Pipe, PndSdsDetector::SetExclusiveSensorType(), simOutput, and TString.
Referenced by testAlignMatrices().
void printMatrixDiff | ( | TGeoHMatrix | mat1, |
TGeoHMatrix | mat2 | ||
) |
Definition at line 252 of file testAlignMatrices.C.
TGeoHMatrix readMatrixFromDisk | ( | std::string | filename | ) |
Definition at line 143 of file testAlignMatrices.C.
References exit(), filename, i, rot, and trans.
Referenced by compareICPmatrices(), compareShiftDataShiftGeo(), and getMisalignedOverlapFromICP().
Definition at line 231 of file testAlignMatrices.C.
Referenced by buildCyclic(), and compareICPmatrices().
void saveDetMatricesToJson | ( | ) |
void saveMatricesToJson | ( | ) |
Definition at line 591 of file testAlignMatrices.C.
References PndLmdGeometryHelper::getOverlapInfos().
Referenced by testAlignMatrices().
int testAlignMatrices | ( | ) |
Definition at line 861 of file testAlignMatrices.C.
References PndLmdGeometryHelper::getInstance(), gGeoManager, initDummySimulation(), and saveMatricesToJson().
void unApplyMisalignmentToGGeoManager | ( | TString | filename | ) |
Definition at line 99 of file testAlignMatrices.C.
References gGeoManager, and TString.
Referenced by buildCyclic().
PndLmdGeometryHelper* helper |
Definition at line 25 of file testAlignMatrices.C.
Referenced by createPndLmdMisalignmentMatrices(), PndLmdAlignManager::init(), PndLmdSensorAligner::transformToLmdLocal(), and PndLmdSensorAligner::transformToSensorOne().
std::map<std::string, TGeoHMatrix>* matricesIdeal |
Definition at line 24 of file testAlignMatrices.C.
Referenced by buildCyclic(), and compareICPmatrices().
std::map<std::string, TGeoHMatrix>* matricesMisaligned |
Definition at line 23 of file testAlignMatrices.C.
Referenced by buildCyclic(), and compareICPmatrices().