|
BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
|
#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>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 |
| 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().
| 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().
| 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().
| 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().
Definition at line 282 of file read_mwpc1_688.C.
References fabs().
Referenced by 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().
| Int_t read_mwpc1_688 | ( | ) |
Definition at line 630 of file read_mwpc1_688.C.
References TObjArray::At(), big, bmnloadlibs(), TTree::Branch(), Chi2_Max, TClonesArray::Clear(), TFile::Close(), TH1::Divide(), dw, TTree::Fill(), FillEfficiency(), FillResid(), TDirectoryFile::Get(), TObjArray::GetEntries(), TObjArray::GetEntriesFast(), BmnMwpcDigit::GetPlane(), BmnMwpcDigit::GetTime(), BmnMwpcDigit::GetWireNumber(), nPlanes, nWires, ProcessSegments(), SegmentFinder(), TBranch::SetAddress(), sq3, TObject::Write(), TTree::Write(), x1_sh, x1_slope_sh, x2_sh, x2_slope_sh, y1_sh, y1_slope_sh, y2_sh, y2_slope_sh, z0, Z_Ch1, Z_Ch2, Z_Ch3, Zmid, and Zmid3.
| 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().
| const Int_t big = 100 |
Definition at line 20 of file read_mwpc1_688.C.
Referenced by FillEfficiency(), FillFreeCoefVector(), FillResid(), ProcessSegments(), read_mwpc1_688(), and SegmentFinder().
| const Double_t Chi2_Max = 20 |
Definition at line 23 of file read_mwpc1_688.C.
Referenced by ProcessSegments(), and read_mwpc1_688().
| const Float_t dw = 0.25 |
Definition at line 21 of file read_mwpc1_688.C.
Referenced by BmnMwpcHitProducer::ProcessPoints(), and read_mwpc1_688().
| const Int_t nPlanes = 6 |
Definition at line 19 of file read_mwpc1_688.C.
Referenced by BmnDchTrackFinder::Exec(), FillEfficiency(), FillFitMatrix(), FillFreeCoefVector(), FillResid(), BmnH3LTripleFinder::FindV0ByVirtualPlanes(), BmnHypNuclPairFinder::FindV0ByVirtualPlanes(), BmnPairFinder::FindV0ByVirtualPlanes(), BmnTwoParticleDecay::FindV0ByVirtualPlanes(), BmnVertexFinder::FindVZByVirtualPlanes(), SrcVertexFinder::FindVZByVirtualPlanes(), ProcessSegments(), read_mwpc1_688(), SegmentFinder(), and TestField().
| const Int_t nWires = 96 |
Definition at line 18 of file read_mwpc1_688.C.
Referenced by read_mwpc1_688(), and SegmentFinder().
Definition at line 22 of file read_mwpc1_688.C.
Referenced by FillFitMatrix(), FillFreeCoefVector(), FillResid(), ProcessSegments(), and read_mwpc1_688().
| const Float_t Z_Ch1 = -150 |
Definition at line 27 of file read_mwpc1_688.C.
Referenced by read_mwpc1_688().
| const Float_t Z_Ch2 = 453 |
Definition at line 28 of file read_mwpc1_688.C.
Referenced by read_mwpc1_688().
| const Float_t Z_Ch3 = 486 |
Definition at line 29 of file read_mwpc1_688.C.
Referenced by read_mwpc1_688().
| const Float_t Zmid = 16.5 |
Definition at line 25 of file read_mwpc1_688.C.
Referenced by read_mwpc1_688(), BmnMwpcTrackFinder::SegmentMatching(), and BmnMwpcTrackFinder::SegmentMatchingAfterTarget().
| const Float_t Zmid3 = -16.5 |
Definition at line 26 of file read_mwpc1_688.C.
Referenced by read_mwpc1_688().