BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
recoRunDCH_VP.C File Reference
#include "TCanvas.h"
#include "TChain.h"
#include "TClonesArray.h"
#include "TFile.h"
#include "TGeoManager.h"
#include "TH1F.h"
#include "TH2F.h"
#include "TMath.h"
#include "TVector3.h"
#include <vector>
#include "TString.h"
#include "TArrayS.h"
#include "TBenchmark.h"
#include "TLine.h"
#include "TStyle.h"
#include <Riostream.h>
#include <algorithm>
#include <ctime>
#include <fstream>
#include <iostream>
#include <stdlib.h>
#include <TPostScript.h>
#include <TProfile.h>
Include dependency graph for recoRunDCH_VP.C:

Go to the source code of this file.

Functions

void fit_seg (float *rh_seg, float *rh_sigm_seg, float *par_ab, int skip_first, int skip_second)
void recoRunDCH_VP (Int_t runId=810)

Variables

const Float_t z_loc [8] = {9.3, 8.1, 3.5, 2.3, -2.3, -3.5, -8.1, -9.3}
const Float_t z_glob [16]
const Float_t Z_dch1 = 529.65
const Float_t Z_dch2 = 727.65
const Float_t Z_dch_mid
double sqrt_2 = sqrt(2.)
double isqrt_2 = 1 / sqrt_2
float intBL = 2
const Float_t x1_sh = 15.0
const Float_t x2_sh = 12.2
const Float_t y1_sh = 0.2
const Float_t y2_sh = -0.3
const Float_t u1_sh = isqrt_2 * (y1_sh - x1_sh)
const Float_t u2_sh = isqrt_2 * (y2_sh - x2_sh)
const Float_t v1_sh = isqrt_2 * (x1_sh + y1_sh)
const Float_t v2_sh = isqrt_2 * (x2_sh + y2_sh)
const Float_t x1_slope_sh = -0.08
const Float_t y1_slope_sh = 0.051
const Float_t x2_slope_sh = -0.08
const Float_t y2_slope_sh = 0.055
const Float_t u1_slope_sh = isqrt_2 * (y1_slope_sh - x1_slope_sh)
const Float_t u2_slope_sh = isqrt_2 * (y2_slope_sh - x2_slope_sh)
const Float_t v1_slope_sh = isqrt_2 * (y1_slope_sh + x1_slope_sh)
const Float_t v2_slope_sh = isqrt_2 * (y2_slope_sh + x2_slope_sh)

Function Documentation

◆ fit_seg()

void fit_seg ( float * rh_seg,
float * rh_sigm_seg,
float * par_ab,
int skip_first,
int skip_second )

Definition at line 126 of file recoRunDCH_VP.C.

References f, fabs(), i, sqrt_2, and z_loc.

Referenced by recoRunDCH_VP().

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

◆ recoRunDCH_VP()

void recoRunDCH_VP ( Int_t runId = 810)

written

foundU

foundV

foundX

foundY

----------—DCH2 hit reco---------------—///

foundU

foundV

foundX

Definition at line 312 of file recoRunDCH_VP.C.

References TChain::Add(), TObjArray::At(), bmnloadlibs(), TTree::Branch(), TDirectoryFile::cd(), TClonesArray::Clear(), TFile::Close(), fabs(), TTree::Fill(), fit_seg(), TString::Format(), TChain::GetEntries(), TObjArray::GetEntriesFast(), TChain::GetEntry(), BmnDchDigit::GetPlane(), BmnDchDigit::GetTime(), BmnDchDigit::GetWireNumber(), i, isqrt_2, m, TChain::SetBranchAddress(), BmnTrack::SetChi2(), BmnTrack::SetNHits(), BmnTrack::SetParamFirst(), TTree::Write(), x1_sh, x1_slope_sh, x2_sh, x2_slope_sh, y1_sh, y1_slope_sh, y2_sh, y2_slope_sh, z0, Z_dch1, Z_dch2, Z_dch_mid, and z_loc.

Here is the call graph for this function:

Variable Documentation

◆ intBL

float intBL = 2

Definition at line 83 of file recoRunDCH_VP.C.

◆ isqrt_2

double isqrt_2 = 1 / sqrt_2

Definition at line 81 of file recoRunDCH_VP.C.

◆ sqrt_2

double sqrt_2 = sqrt(2.)

Definition at line 80 of file recoRunDCH_VP.C.

◆ u1_sh

const Float_t u1_sh = isqrt_2 * (y1_sh - x1_sh)

Definition at line 111 of file recoRunDCH_VP.C.

◆ u1_slope_sh

const Float_t u1_slope_sh = isqrt_2 * (y1_slope_sh - x1_slope_sh)

Definition at line 121 of file recoRunDCH_VP.C.

◆ u2_sh

const Float_t u2_sh = isqrt_2 * (y2_sh - x2_sh)

Definition at line 112 of file recoRunDCH_VP.C.

◆ u2_slope_sh

const Float_t u2_slope_sh = isqrt_2 * (y2_slope_sh - x2_slope_sh)

Definition at line 122 of file recoRunDCH_VP.C.

◆ v1_sh

const Float_t v1_sh = isqrt_2 * (x1_sh + y1_sh)

Definition at line 113 of file recoRunDCH_VP.C.

◆ v1_slope_sh

const Float_t v1_slope_sh = isqrt_2 * (y1_slope_sh + x1_slope_sh)

Definition at line 123 of file recoRunDCH_VP.C.

◆ v2_sh

const Float_t v2_sh = isqrt_2 * (x2_sh + y2_sh)

Definition at line 114 of file recoRunDCH_VP.C.

◆ v2_slope_sh

const Float_t v2_slope_sh = isqrt_2 * (y2_slope_sh + x2_slope_sh)

Definition at line 124 of file recoRunDCH_VP.C.

◆ x1_sh

const Float_t x1_sh = 15.0

Definition at line 106 of file recoRunDCH_VP.C.

◆ x1_slope_sh

const Float_t x1_slope_sh = -0.08

Definition at line 116 of file recoRunDCH_VP.C.

◆ x2_sh

const Float_t x2_sh = 12.2

Definition at line 107 of file recoRunDCH_VP.C.

◆ x2_slope_sh

const Float_t x2_slope_sh = -0.08

Definition at line 118 of file recoRunDCH_VP.C.

◆ y1_sh

const Float_t y1_sh = 0.2

Definition at line 108 of file recoRunDCH_VP.C.

◆ y1_slope_sh

const Float_t y1_slope_sh = 0.051

Definition at line 117 of file recoRunDCH_VP.C.

◆ y2_sh

const Float_t y2_sh = -0.3

Definition at line 109 of file recoRunDCH_VP.C.

◆ y2_slope_sh

const Float_t y2_slope_sh = 0.055

Definition at line 119 of file recoRunDCH_VP.C.

◆ Z_dch1

const Float_t Z_dch1 = 529.65

Definition at line 75 of file recoRunDCH_VP.C.

◆ Z_dch2

const Float_t Z_dch2 = 727.65

Definition at line 76 of file recoRunDCH_VP.C.

◆ Z_dch_mid

const Float_t Z_dch_mid
Initial value:
=
628.65

Definition at line 77 of file recoRunDCH_VP.C.

◆ z_glob

const Float_t z_glob[16]
Initial value:
= {-45.7, -46.9, -51.5, -52.7, -57.3, -58.5, -63.1, -64.3,
64.3, 63.1, 58.5, 57.3, 52.7, 51.5, 46.9, 45.7}

Definition at line 73 of file recoRunDCH_VP.C.

◆ z_loc

const Float_t z_loc[8] = {9.3, 8.1, 3.5, 2.3, -2.3, -3.5, -8.1, -9.3}

Definition at line 72 of file recoRunDCH_VP.C.