BmnRoot 26.10.0-233-gb9bbe585
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
review.C File Reference
#include "BmnAlignModels.h"
#include "BmnRootIterator.h"
#include "BmnWeightedLine.h"
#include <TCanvas.h>
#include <TH1D.h>
#include <TH2D.h>
#include <TStopwatch.h>
#include <array>
#include <map>
Include dependency graph for review.C:

Go to the source code of this file.

Macros

#define BMN_FILELIST   "/home/igor/bmnroot/align_new/cfg/run8/7466ev0p3.noa_rlerr.list"
#define XHIST_WIDTH   0.06
#define YHIST_WIDTH   0.6
#define RES_X   3440
#define RES_Y   1440
#define PADS_X   4
#define PADS_Y   2
#define DET_FILTER   -1

Enumerations

enum  { hResX , hResY , hXresX , hYresX }

Functions

int review (int argc=0, char **argv=nullptr)
 Preliminary review of the input data, before any alignment.

Variables

static const VecInt_t detIDs = {201588754, 201588770}
static const Double_t detMinMax [2][6] = {{-27.0, 27.0, 0.0, 16.0}, {-27.0, 27.0, -16.0, 0.0}}
std::map< Int_t, std::array< Double_t, 6 > > detPos

Macro Definition Documentation

◆ BMN_FILELIST

#define BMN_FILELIST   "/home/igor/bmnroot/align_new/cfg/run8/7466ev0p3.noa_rlerr.list"

Definition at line 26 of file review.C.

Referenced by review().

◆ DET_FILTER

#define DET_FILTER   -1

Definition at line 38 of file review.C.

Referenced by review().

◆ PADS_X

#define PADS_X   4

Definition at line 34 of file review.C.

◆ PADS_Y

#define PADS_Y   2

Definition at line 35 of file review.C.

◆ RES_X

#define RES_X   3440

Definition at line 32 of file review.C.

◆ RES_Y

#define RES_Y   1440

Definition at line 33 of file review.C.

◆ XHIST_WIDTH

#define XHIST_WIDTH   0.06

Definition at line 28 of file review.C.

Referenced by review().

◆ YHIST_WIDTH

#define YHIST_WIDTH   0.6

Definition at line 29 of file review.C.

Referenced by review().

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
hResX 
hResY 
hXresX 
hYresX 

Definition at line 43 of file review.C.

Function Documentation

◆ review()

int review ( int argc = 0,
char ** argv = nullptr )

Fills residual and hit-position histograms for the detector elements listed in detIDs and draws them on a pad grid. Meant for spotting dead or misencoded elements and judging whether a dataset is worth aligning at all.

Configuration is compile-time, through the defines at the top of the file (BMN_FILELIST, the histogram widths, the pad grid, DET_FILTER).

Parameters
argcunused, kept so the macro can be invoked with ROOT's argument passing convention
argvunused, see argc
Returns
0 on success, non-zero if the input data could not be read

Definition at line 69 of file review.C.

References BmnWeightedLine::Add(), BmnWeightedLine::At(), BMN_FILELIST, BmnDefaultHitFilter(), BmnDefaultTrackFilter(), TPad::cd(), DET_FILTER, detIDs, detMinMax, TH1::Draw(), TPad::Draw(), BmnDataIterator::EndOfHits(), BmnDataIterator::EndOfTracks(), TH1::Fill(), BmnRootIterator::GetHit(), BmnRootIterator::HitDetectorID(), BmnRootIterator::HitX(), BmnRootIterator::HitY(), BmnRootIterator::HitZ(), hResX, hResY, hXresX, hYresX, i, BmnDetectorModel::Init(), BmnRootIterator::NextHit(), BmnRootIterator::NextTrack(), PADS_X, PADS_Y, TStopwatch::RealTime(), RES_X, RES_Y, TCanvas::SetCanvasSize(), TAttFill::SetFillColor(), TH1::SetStats(), TH1::StatOverflows(), XHIST_WIDTH, and YHIST_WIDTH.

Here is the call graph for this function:

Variable Documentation

◆ detIDs

const VecInt_t detIDs = {201588754, 201588770}
static

Definition at line 40 of file review.C.

Referenced by review().

◆ detMinMax

const Double_t detMinMax[2][6] = {{-27.0, 27.0, 0.0, 16.0}, {-27.0, 27.0, -16.0, 0.0}}
static

Definition at line 41 of file review.C.

Referenced by review().

◆ detPos

std::map<Int_t, std::array<Double_t, 6> > detPos

Definition at line 51 of file review.C.