|
BmnRoot 26.10.0-210-gc52d34b0
Software framework of the BM@N experiment
|
#include "BmnAlignModels.h"#include "BmnRootIterator.h"#include "BmnSimpleProgressBar.h"#include "BmnWeightedLine.h"#include <TCanvas.h>#include <TF1.h>#include <TGraph.h>#include <TGraphErrors.h>#include <TH1D.h>#include <TH2D.h>#include <TLine.h>#include <TPad.h>#include <TPaveText.h>#include <TProfile.h>#include <TROOT.h>#include <TString.h>#include <TStyle.h>#include <TSystem.h>#include <algorithm>#include <array>#include <cmath>#include <iomanip>#include <iostream>#include <vector>#include <termios.h>#include <unistd.h>Go to the source code of this file.
Classes | |
| struct | LinAcc |
| struct | DetAcc |
| struct | DetDraw |
| struct | EvoHist |
| struct | Panel |
Macros | |
| #define | PARAM_CNT 6 |
| #define | RES_X 3440 |
| #define | RES_Y 1440 |
| #define | PADS_X 4 |
| #define | PADS_Y 3 |
| #define | RESIDUAL_RANGE_X 0.02 |
| #define | RESIDUAL_RANGE_Y 0.4 |
| #define | RESIDUAL_BINS 201 |
| #define | PROFILE_BINS 201 |
| #define | PAVE_TEXT_SIZE 0.04 |
| #define | EVO_DENSE_HEAD 200 |
| #define | EVO_TAIL_POINTS 600 |
Enumerations | |
| enum | eParam { P_dX , P_dY , P_dZ , P_phi , P_theta , P_psi } |
| enum | eDrawMode { DM_PROFILE , DM_SCATTER , DM_MIX } |
Functions | |
| static void | histoGLSetRawMode (bool on, struct termios *saved) |
| int | histoGL (const char *fileListPath="/home/igor/bmnroot/align_new/cfg/run8/7466.noa_rlerr.list", Int_t selParam=P_dZ, Int_t drawMode=DM_MIX, const char *pdfPath=nullptr) |
| Whole-detector histogramming estimate of the alignment corrections. | |
Variables | |
| static constexpr const char * | PARAM_NAMES [PARAM_CNT] {"dX", "dY", "dZ", "phi", "theta", "psi"} |
| static constexpr const char * | PARAM_UNIT [PARAM_CNT] {"cm", "cm", "cm", "rad", "rad", "rad"} |
| static constexpr const Bool_t | PARAM_IS_SHIFT [PARAM_CNT] {kTRUE, kTRUE, kFALSE, kFALSE, kFALSE, kFALSE} |
| static constexpr const Double_t | PARAM_SIGN_X [PARAM_CNT] {+1.0, +1.0, -1.0, -1.0, +1.0, -1.0} |
| static constexpr const Double_t | PARAM_SIGN_Y [PARAM_CNT] {+1.0, +1.0, -1.0, -1.0, +1.0, +1.0} |
| static constexpr const char * | PARAM_DIAG [PARAM_CNT] |
| static constexpr const char * | PARAM_DIAG_Y [PARAM_CNT] |
| static constexpr const char * | COV_TITLE_X [PARAM_CNT] |
| static constexpr const char * | COV_TITLE_Y [PARAM_CNT] |
| #define PARAM_CNT 6 |
Definition at line 81 of file histoGL.C.
Referenced by EvoHist::Sample().
| int histoGL | ( | const char * | fileListPath = "/home/igor/bmnroot/align_new/cfg/run8/7466.noa_rlerr.list", |
| Int_t | selParam = P_dZ, | ||
| Int_t | drawMode = DM_MIX, | ||
| const char * | pdfPath = nullptr ) |
Companion to histo.C: the same reading rules, but every hit of the detector is pooled into one histogram set, so the numbers are ensemble corrections rather than per-element ones. Useful for judging a global shift or rotation of the whole assembly.
| fileListPath | text file listing the .root files to read |
| selParam | correction shown in the two evolution panels, one of the P_dX .. P_psi constants |
| drawMode | slope panel style: DM_PROFILE, DM_SCATTER or DM_MIX |
| pdfPath | .pdf file to save the canvas into, null to only display |
Definition at line 260 of file histoGL.C.
References BmnWeightedLine::Add(), TH1::AddDirectory(), TPaveText::AddText(), BmnWeightedLine::At0(), DetDraw::betaX, DetDraw::betaXX, DetDraw::betaXY, DetDraw::betaY, DetDraw::betaYX, DetDraw::betaYY, BmnDefaultHitFilter(), BmnDefaultTrackFilter(), TCanvas::cd(), TPad::cd(), BmnSimpleProgressBar::Clear(), TPad::Clear(), BmnRootIterator::CountElements(), COV_TITLE_X, COV_TITLE_Y, BmnWeightedLine::Det(), DM_MIX, DM_PROFILE, DM_SCATTER, TGraph::Draw(), TH1::Draw(), TObject::Draw(), TPad::Draw(), TPaveText::Draw(), BmnDataIterator::EndOfHits(), BmnDataIterator::EndOfTracks(), EvoHist::errX, EvoHist::errY, EVO_DENSE_HEAD, EVO_TAIL_POINTS, TH1::Fill(), TH2::Fill(), TProfile::Fill(), TH1::Fit(), TH1::GetFunction(), TH1::GetMaximum(), TH1::GetMean(), BmnRootIterator::GetTotalTracks(), TGraph::GetXaxis(), histoGLSetRawMode(), BmnRootIterator::HitWx(), BmnRootIterator::HitWy(), BmnRootIterator::HitX(), BmnRootIterator::HitY(), BmnRootIterator::HitZ(), i, BmnDetectorModel::Init(), BmnSimpleProgressBar::Init(), BmnDataIterator::Initialized(), LinAcc::line, TPad::Modified(), BmnWeightedLine::N(), EvoHist::n, BmnRootIterator::NextHit(), BmnRootIterator::NextTrack(), P_dX, P_dY, P_dZ, P_phi, P_psi, P_theta, PADS_X, PADS_Y, PARAM_CNT, PARAM_DIAG, PARAM_DIAG_Y, PARAM_NAMES, PARAM_SIGN_X, PARAM_SIGN_Y, PARAM_UNIT, PAVE_TEXT_SIZE, PROFILE_BINS, RES_X, RES_Y, BmnRootIterator::ResetAll(), BmnRootIterator::ResetHits(), RESIDUAL_BINS, RESIDUAL_RANGE_X, RESIDUAL_RANGE_Y, DetDraw::rx, DetDraw::ry, EvoHist::Sample(), TPad::SaveAs(), TObject::SetBit(), TCanvas::SetCanvasSize(), TAttFill::SetFillColor(), TAttFill::SetFillColorAlpha(), TPad::SetGridx(), TPad::SetGridy(), TAxis::SetLimits(), TAttLine::SetLineColor(), TAttLine::SetLineStyle(), TAttLine::SetLineWidth(), TPad::SetLogx(), TAttMarker::SetMarkerColor(), TAttMarker::SetMarkerStyle(), TGraph::SetMaximum(), TGraph::SetMinimum(), TGraph::SetPoint(), TGraphErrors::SetPointError(), TH1::SetStats(), TAttText::SetTextSize(), TGraph::SetTitle(), BmnWeightedLine::Slope(), TCanvas::Update(), TPad::Update(), EvoHist::valX, EvoHist::valY, DetAcc::x, DetDraw::xBar, DetAcc::y, DetDraw::yBar, yhi, and z.
|
static |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
Definition at line 96 of file histoGL.C.
Referenced by LinAcc::Error(), and LinAcc::Value().
|
staticconstexpr |
Definition at line 99 of file histoGL.C.
Referenced by EvoHist::Sample().
Definition at line 100 of file histoGL.C.
Referenced by EvoHist::Sample().