BmnRoot 26.10.0-233-gb9bbe585
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
align.C File Reference
#include "BmnAlignModels.h"
#include "BmnAlignReport.h"
#include "BmnAligner.h"
#include "fairlogger/Logger.h"
Include dependency graph for align.C:

Go to the source code of this file.

Functions

int align (const char *fileListPath="/home/igor/bmnroot/align_new/cfg/run9/9555.noa_rlerr.list", const char *solutionPath="/home/igor/bmnroot/align_new/cfg/solutions/sl9555.112e_lin3.01.json", const char *constraintsPath="/home/igor/bmnroot/align_new/cfg/constraints/cnstr_r9_lin3.json", const char *presigmaPath="/home/igor/bmnroot/align_new/cfg/presigmas/psg_r9_lin3.json", const char *startApproxPath=nullptr, const char *dumpPath=nullptr)
 Solve the detector alignment problem on a set of reconstructed tracks.

Function Documentation

◆ align()

int align ( const char * fileListPath = "/home/igor/bmnroot/align_new/cfg/run9/9555.noa_rlerr.list",
const char * solutionPath = "/home/igor/bmnroot/align_new/cfg/solutions/sl9555.112e_lin3.01.json",
const char * constraintsPath = "/home/igor/bmnroot/align_new/cfg/constraints/cnstr_r9_lin3.json",
const char * presigmaPath = "/home/igor/bmnroot/align_new/cfg/presigmas/psg_r9_lin3.json",
const char * startApproxPath = nullptr,
const char * dumpPath = nullptr )

Reads tracks and hits, fits the rigid-body corrections of every alignable detector element (and of the composite nodes the detector model declares), writes the result out and reports on it. The measurement and detector models selected in the body decide what "alignable element" means; see BmnAlignModels.h for what is available.

Parameters
fileListPathtext file listing the .root files to read, one per line; lines starting with '#' are ignored
solutionPath.json file to write the solution into, null to skip
constraintsPath.json file of exact linear constraints, null for none
presigmaPath.json file of per-parameter priors, null for none. A model with composite nodes needs these to be solvable
startApproxPath.json solution to start the iteration from, null to start from the nominal geometry
dumpPath.root file to write a compacted copy of the input data into, null to skip
Returns
0 on success, -1 if any stage failed

Definition at line 42 of file align.C.

References BmnAligner::Align(), BmnAlignReport::Draw(), BmnDetectorModel::Init(), BmnAligner::Initialized(), BmnAligner::LoadSolution(), BmnAligner::PrepareData(), BmnAlignReport::Results(), and BmnAligner::SaveSolution().

Referenced by ConstructHalfLadder(), CreateLadders(), BmnAlignerApply::Exec(), BmnInnTrackerAlign::GetGemCorrs(), and BmnInnTrackerAlign::GetSiliconCorrs().

Here is the call graph for this function:
Here is the caller graph for this function: