BmnRoot 26.10.0-19-g6979a6c6
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
read_mwpc1_688.C File Reference
#include "TBranch.h"
#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 "TTree.h"
#include <fstream>
#include <iostream>
#include <stdio.h>
Include dependency graph for read_mwpc1_688.C:

Go to the source code of this file.

Functions

void SegmentFinder (Int_t chNum, Int_t wires_Ch[nPlanes][big], Float_t XVU_Ch[nPlanes][big], Int_t Nhits_Ch[big], Int_t iw_Ch[nPlanes], Int_t &Nseg, Int_t wires_glob[nWires][nPlanes], Float_t xuv_glob[nWires][nPlanes], Int_t minHits, Short_t code)
void FillFitMatrix (Double_t A[4][4], Float_t z[nPlanes], Float_t sigm2[nPlanes], Int_t h[nPlanes])
void FillFreeCoefVector (Double_t F[4], Float_t XVU_Ch[nPlanes][big], Int_t segIdx, Float_t z[nPlanes], Float_t sigm2[nPlanes], Int_t h[nPlanes])
void InverseMatrix (Double_t A[4][4], Double_t b[4][4])
void ProcessSegments (Int_t chNum, Float_t sigma, Float_t z_loc[nPlanes], Int_t Min_hits, Int_t &Nseg, Int_t Nhits_Ch[big], Int_t Wires_Ch[nPlanes][big], Float_t XVU_Ch[nPlanes][big], Int_t &Nbest_Ch, Int_t ind_best_Ch[5], Double_t Chi2_ndf_Ch[big], Double_t Chi2_ndf_best_Ch[5], Double_t par_ab_Ch[4][big])
void FillEfficiency (Int_t Wires_Ch[nPlanes][big], Int_t Nhits_Ch[big], Int_t segIdx, TH1F *Denom_Ch, TH1F *Nomin_Ch, Int_t min_distX, Int_t min_distY)
void FillResid (Int_t Wires_Ch[nPlanes][big], Int_t segIdx, Float_t XVU_Ch[nPlanes][big], Double_t par_ab_Ch[4][big], Float_t z_loc[nPlanes], TH1F *hResid_Ch[nPlanes])
Int_t read_mwpc1_688 ()

Variables

const Int_t nWires = 96
const Int_t nPlanes = 6
const Int_t big = 100
const Float_t dw = 0.25
const Double_t sq3 = Sqrt(3.)
const Double_t Chi2_Max = 20
const Float_t Zmid = 16.5
const Float_t Zmid3 = -16.5
const Float_t Z_Ch1 = -150
const Float_t Z_Ch2 = 453
const Float_t Z_Ch3 = 486

Function Documentation

◆ FillEfficiency()

void FillEfficiency ( Int_t Wires_Ch[nPlanes][big],
Int_t Nhits_Ch[big],
Int_t segIdx,
TH1F * Denom_Ch,
TH1F * Nomin_Ch,
Int_t min_distX,
Int_t min_distY )

Definition at line 580 of file read_mwpc1_688.C.

References big, fabs(), TH1::Fill(), and nPlanes.

Referenced by read_mwpc1_688().

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

◆ FillFitMatrix()

void FillFitMatrix ( Double_t A[4][4],
Float_t z[nPlanes],
Float_t sigm2[nPlanes],
Int_t h[nPlanes] )

Definition at line 215 of file read_mwpc1_688.C.

References nPlanes, sq3, and z.

Referenced by ProcessSegments().

Here is the caller graph for this function:

◆ FillFreeCoefVector()

void FillFreeCoefVector ( Double_t F[4],
Float_t XVU_Ch[nPlanes][big],
Int_t segIdx,
Float_t z[nPlanes],
Float_t sigm2[nPlanes],
Int_t h[nPlanes] )

Definition at line 254 of file read_mwpc1_688.C.

References big, nPlanes, sq3, and z.

Referenced by ProcessSegments().

Here is the caller graph for this function:

◆ FillResid()

void FillResid ( Int_t Wires_Ch[nPlanes][big],
Int_t segIdx,
Float_t XVU_Ch[nPlanes][big],
Double_t par_ab_Ch[4][big],
Float_t z_loc[nPlanes],
TH1F * hResid_Ch[nPlanes] )

Definition at line 606 of file read_mwpc1_688.C.

References big, nPlanes, sq3, and z_loc.

Referenced by read_mwpc1_688().

Here is the caller graph for this function:

◆ InverseMatrix()

void InverseMatrix ( Double_t A[4][4],
Double_t b[4][4] )

Definition at line 282 of file read_mwpc1_688.C.

References fabs().

Referenced by ProcessSegments().

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

◆ ProcessSegments()

void ProcessSegments ( Int_t chNum,
Float_t sigma,
Float_t z_loc[nPlanes],
Int_t Min_hits,
Int_t & Nseg,
Int_t Nhits_Ch[big],
Int_t Wires_Ch[nPlanes][big],
Float_t XVU_Ch[nPlanes][big],
Int_t & Nbest_Ch,
Int_t ind_best_Ch[5],
Double_t Chi2_ndf_Ch[big],
Double_t Chi2_ndf_best_Ch[5],
Double_t par_ab_Ch[4][big] )

Definition at line 339 of file read_mwpc1_688.C.

References big, Chi2_Max, fabs(), FillFitMatrix(), FillFreeCoefVector(), i, InverseMatrix(), nPlanes, sq3, and z_loc.

Referenced by read_mwpc1_688().

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

◆ read_mwpc1_688()

◆ SegmentFinder()

void SegmentFinder ( Int_t chNum,
Int_t wires_Ch[nPlanes][big],
Float_t XVU_Ch[nPlanes][big],
Int_t Nhits_Ch[big],
Int_t iw_Ch[nPlanes],
Int_t & Nseg,
Int_t wires_glob[nWires][nPlanes],
Float_t xuv_glob[nWires][nPlanes],
Int_t minHits,
Short_t code )

Definition at line 31 of file read_mwpc1_688.C.

References big, delta, fabs(), nPlanes, nWires, v, and x.

Referenced by read_mwpc1_688().

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

Variable Documentation

◆ big

◆ Chi2_Max

const Double_t Chi2_Max = 20

Definition at line 23 of file read_mwpc1_688.C.

Referenced by ProcessSegments(), and read_mwpc1_688().

◆ dw

const Float_t dw = 0.25

Definition at line 21 of file read_mwpc1_688.C.

Referenced by BmnMwpcHitProducer::ProcessPoints(), and read_mwpc1_688().

◆ nPlanes

◆ nWires

const Int_t nWires = 96

Definition at line 18 of file read_mwpc1_688.C.

Referenced by read_mwpc1_688(), and SegmentFinder().

◆ sq3

const Double_t sq3 = Sqrt(3.)

◆ Z_Ch1

const Float_t Z_Ch1 = -150

Definition at line 27 of file read_mwpc1_688.C.

Referenced by read_mwpc1_688().

◆ Z_Ch2

const Float_t Z_Ch2 = 453

Definition at line 28 of file read_mwpc1_688.C.

Referenced by read_mwpc1_688().

◆ Z_Ch3

const Float_t Z_Ch3 = 486

Definition at line 29 of file read_mwpc1_688.C.

Referenced by read_mwpc1_688().

◆ Zmid

◆ Zmid3

const Float_t Zmid3 = -16.5

Definition at line 26 of file read_mwpc1_688.C.

Referenced by read_mwpc1_688().