|
BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
|
#include <Rtypes.h>#include <fstream>#include "bmndata/BmnEnums.h"#include "macro/run/bmnloadlibs.C"Go to the source code of this file.
Macros | |
| #define | XYCALIBRATION false |
| #define | MINSTAT 50 |
| #define | WRITE_NEW_CALIBRATION_FILES 0 |
| #define | WRITE_CALIBRATION_X false |
| #define | WRITE_CALIBRATION_Y false |
| #define | WRITE_CALIBRATION_X_CHAMBER false |
| #define | WRITE_CALIBRATION_Y_CHAMBER false |
| #define | CALRUNNAME 1 |
| #define | CALIBFILE "bmn_run9687_digi_calibration.root" |
| #define | CORRECTIONFILE "bmn_argon_protonbased_time_corrections.root" |
| #define | GEMTYPE 2 |
| #define | DTXDCH +0.0 |
| #define | DTYDCH +0.0 |
| #define | DXDCH -9.2454 |
| #define | DYDCH +3.7912 |
| #define | DZDCH -0.1655 |
| #define | MINGEMNDF 4 |
| #define | MINSIHITS 2 |
| #define | TRACKFILE "argon_tracks_gleb_chi2_files.txt" |
| #define | DTX0DCH +0.0 |
| #define | DTY0DCH +0.0 |
| #define | DX0DCH -10.3038 |
| #define | DY0DCH +2.55 |
| #define | DZ0DCH +1.94 |
| #define | MINTIME true |
| #define | GEMDEBUG false |
| #define | XYPANIN 0 |
| #define | XYPETNEW 1 |
| #define | DXGEMDCHMAX 2.5 |
| #define | DYGEMDCHMAX 1.5 |
| #define | USE_CLUSTERS 1 |
| #define | STRIP_CORRECTIONS 1 |
| #define | LIST_STRIP_CORRECTIONS 0 |
| #define | CALIBRATION 0 |
| #define | PRIMARY_VERTEX_CUTS 1 |
| #define | GEMCUTS 1 |
| #define | CVERS 1 |
| #define | CFACTOR 0.97f |
| #define | FLAG 0 |
| #define | BETAMAX 1.00f |
| #define | PMIN 0.5f |
| #define | PMAX 5.0f |
| #define | PMAX1 3.0f |
| #define | PMAX2 2.5f |
| #define | PRES 2.0f |
| #define | PRES1 3.0f |
| #define | PMAXPI 3.0f |
| #define | MPIMAX 0.2f |
| #define | MP 0.938f |
| #define | MP2 (MP * MP) |
| #define | MPI 0.139 |
| #define | MPI2 (MPI * MPI) |
| #define | DMPSCALE1 1. |
| #define | DMPSCALE2 1. |
| #define | DMPSCALET1 1. |
| #define | DMPSCALET2 1.5 |
| #define | DMPISCALE 1. |
| #define | PSCALE 0.99f |
| #define | WRITE_CALIBRATION 0 |
| #define | XFACTOR 1.0f |
| #define | DISTMAX 20.0f |
| #define | DXMAX 5.0f |
| #define | DYMAX 3.0f |
| #define | DXMAXPAN 5.0f |
| #define | DYMAXPAN 5.0f |
| #define | TOFMAX 39.0f |
| #define | IN_WIDTH_LIMITS 0 |
| #define | WMIN 2900 |
| #define | WMAX 9000 |
| #define | NUMBER_CHAMBERS 59 |
Functions | |
| void | FitChambersX () |
| void | FitStripsX () |
| Int_t | readMCTimeFile (const char *MCTimeFile="TOF700_MC_argon_qgsm_time_run7.txt") |
| int | ReadXYCalibration () |
| void | BmnXTIdentificationTOF700 (const char *TracksGemDch=TRACKFILE, const char *DigitsTOF700="argon_tof700_digits_files_pro_full.txt") |
| void | select_hist () |
| #define BETAMAX 1.00f |
Definition at line 138 of file BmnXTIdentificationTOF700.C.
| #define CALIBFILE "bmn_run9687_digi_calibration.root" |
Definition at line 16 of file BmnXTIdentificationTOF700.C.
| #define CALIBRATION 0 |
Definition at line 120 of file BmnXTIdentificationTOF700.C.
| #define CALRUNNAME 1 |
Definition at line 15 of file BmnXTIdentificationTOF700.C.
| #define CFACTOR 0.97f |
Definition at line 132 of file BmnXTIdentificationTOF700.C.
| #define CORRECTIONFILE "bmn_argon_protonbased_time_corrections.root" |
Definition at line 17 of file BmnXTIdentificationTOF700.C.
| #define CVERS 1 |
Definition at line 129 of file BmnXTIdentificationTOF700.C.
| #define DISTMAX 20.0f |
Definition at line 200 of file BmnXTIdentificationTOF700.C.
| #define DMPISCALE 1. |
Definition at line 189 of file BmnXTIdentificationTOF700.C.
| #define DMPSCALE1 1. |
Definition at line 177 of file BmnXTIdentificationTOF700.C.
| #define DMPSCALE2 1. |
Definition at line 180 of file BmnXTIdentificationTOF700.C.
| #define DMPSCALET1 1. |
Definition at line 183 of file BmnXTIdentificationTOF700.C.
| #define DMPSCALET2 1.5 |
Definition at line 186 of file BmnXTIdentificationTOF700.C.
| #define DTX0DCH +0.0 |
Definition at line 91 of file BmnXTIdentificationTOF700.C.
| #define DTXDCH +0.0 |
Definition at line 24 of file BmnXTIdentificationTOF700.C.
| #define DTY0DCH +0.0 |
Definition at line 92 of file BmnXTIdentificationTOF700.C.
| #define DTYDCH +0.0 |
Definition at line 25 of file BmnXTIdentificationTOF700.C.
| #define DX0DCH -10.3038 |
Definition at line 93 of file BmnXTIdentificationTOF700.C.
| #define DXDCH -9.2454 |
Definition at line 26 of file BmnXTIdentificationTOF700.C.
| #define DXGEMDCHMAX 2.5 |
Definition at line 106 of file BmnXTIdentificationTOF700.C.
| #define DXMAX 5.0f |
Definition at line 201 of file BmnXTIdentificationTOF700.C.
| #define DXMAXPAN 5.0f |
Definition at line 203 of file BmnXTIdentificationTOF700.C.
| #define DY0DCH +2.55 |
Definition at line 94 of file BmnXTIdentificationTOF700.C.
| #define DYDCH +3.7912 |
Definition at line 27 of file BmnXTIdentificationTOF700.C.
| #define DYGEMDCHMAX 1.5 |
Definition at line 107 of file BmnXTIdentificationTOF700.C.
| #define DYMAX 3.0f |
Definition at line 202 of file BmnXTIdentificationTOF700.C.
| #define DYMAXPAN 5.0f |
Definition at line 204 of file BmnXTIdentificationTOF700.C.
| #define DZ0DCH +1.94 |
Definition at line 95 of file BmnXTIdentificationTOF700.C.
| #define DZDCH -0.1655 |
Definition at line 28 of file BmnXTIdentificationTOF700.C.
| #define FLAG 0 |
Definition at line 135 of file BmnXTIdentificationTOF700.C.
Referenced by BmnXTIdentificationTOF700().
| #define GEMCUTS 1 |
Definition at line 126 of file BmnXTIdentificationTOF700.C.
| #define GEMDEBUG false |
Definition at line 99 of file BmnXTIdentificationTOF700.C.
| #define GEMTYPE 2 |
Definition at line 19 of file BmnXTIdentificationTOF700.C.
| #define IN_WIDTH_LIMITS 0 |
Definition at line 208 of file BmnXTIdentificationTOF700.C.
| #define LIST_STRIP_CORRECTIONS 0 |
Definition at line 112 of file BmnXTIdentificationTOF700.C.
| #define MINGEMNDF 4 |
Definition at line 29 of file BmnXTIdentificationTOF700.C.
| #define MINSIHITS 2 |
Definition at line 30 of file BmnXTIdentificationTOF700.C.
| #define MINSTAT 50 |
Definition at line 8 of file BmnXTIdentificationTOF700.C.
| #define MINTIME true |
Definition at line 97 of file BmnXTIdentificationTOF700.C.
| #define MP 0.938f |
Definition at line 165 of file BmnXTIdentificationTOF700.C.
Definition at line 168 of file BmnXTIdentificationTOF700.C.
| #define MPI 0.139 |
Definition at line 171 of file BmnXTIdentificationTOF700.C.
Definition at line 174 of file BmnXTIdentificationTOF700.C.
| #define MPIMAX 0.2f |
Definition at line 162 of file BmnXTIdentificationTOF700.C.
| #define NUMBER_CHAMBERS 59 |
Definition at line 212 of file BmnXTIdentificationTOF700.C.
| #define PMAX 5.0f |
Definition at line 144 of file BmnXTIdentificationTOF700.C.
| #define PMAX1 3.0f |
Definition at line 147 of file BmnXTIdentificationTOF700.C.
| #define PMAX2 2.5f |
Definition at line 150 of file BmnXTIdentificationTOF700.C.
| #define PMAXPI 3.0f |
Definition at line 159 of file BmnXTIdentificationTOF700.C.
| #define PMIN 0.5f |
Definition at line 141 of file BmnXTIdentificationTOF700.C.
| #define PRES 2.0f |
Definition at line 153 of file BmnXTIdentificationTOF700.C.
| #define PRES1 3.0f |
Definition at line 156 of file BmnXTIdentificationTOF700.C.
| #define PRIMARY_VERTEX_CUTS 1 |
Definition at line 123 of file BmnXTIdentificationTOF700.C.
| #define PSCALE 0.99f |
Definition at line 193 of file BmnXTIdentificationTOF700.C.
| #define STRIP_CORRECTIONS 1 |
Definition at line 111 of file BmnXTIdentificationTOF700.C.
| #define TOFMAX 39.0f |
Definition at line 206 of file BmnXTIdentificationTOF700.C.
| #define TRACKFILE "argon_tracks_gleb_chi2_files.txt" |
Definition at line 31 of file BmnXTIdentificationTOF700.C.
| #define USE_CLUSTERS 1 |
Definition at line 109 of file BmnXTIdentificationTOF700.C.
| #define WMAX 9000 |
Definition at line 210 of file BmnXTIdentificationTOF700.C.
| #define WMIN 2900 |
Definition at line 209 of file BmnXTIdentificationTOF700.C.
| #define WRITE_CALIBRATION 0 |
Definition at line 196 of file BmnXTIdentificationTOF700.C.
| #define WRITE_CALIBRATION_X false |
Definition at line 10 of file BmnXTIdentificationTOF700.C.
| #define WRITE_CALIBRATION_X_CHAMBER false |
Definition at line 12 of file BmnXTIdentificationTOF700.C.
| #define WRITE_CALIBRATION_Y false |
Definition at line 11 of file BmnXTIdentificationTOF700.C.
| #define WRITE_CALIBRATION_Y_CHAMBER false |
Definition at line 13 of file BmnXTIdentificationTOF700.C.
| #define WRITE_NEW_CALIBRATION_FILES 0 |
Definition at line 9 of file BmnXTIdentificationTOF700.C.
| #define XFACTOR 1.0f |
Definition at line 199 of file BmnXTIdentificationTOF700.C.
| #define XYCALIBRATION false |
Definition at line 7 of file BmnXTIdentificationTOF700.C.
| #define XYPANIN 0 |
Definition at line 101 of file BmnXTIdentificationTOF700.C.
| #define XYPETNEW 1 |
Definition at line 102 of file BmnXTIdentificationTOF700.C.
| void BmnXTIdentificationTOF700 | ( | const char * | TracksGemDch = TRACKFILE, |
| const char * | DigitsTOF700 = "argon_tof700_digits_files_pro_full.txt" ) |
Definition at line 282 of file BmnXTIdentificationTOF700.C.
References TMath::Abs(), TChain::Add(), TObjArray::At(), bmnloadlibs(), CALIBFILE, CALIBRATION, CFACTOR, TFile::Close(), CORRECTIONFILE, CVERS, TString::Data(), dist(), DISTMAX, TH1::Divide(), DMPSCALE1, DMPSCALE2, DMPSCALET1, DMPSCALET2, DTX0DCH, DTXDCH, DTY0DCH, DTYDCH, DX0DCH, DXDCH, DXGEMDCHMAX, DXMAX, DXMAXPAN, DY0DCH, DYDCH, DYGEMDCHMAX, DYMAX, DYMAXPAN, DZ0DCH, DZDCH, f, fabs(), TH1::Fill(), TH2::Fill(), TProfile2D::Fill(), TProfile::Fill(), FitChambersX(), FitStripsX(), FLAG, fnametof700, GEMCUTS, GEMDEBUG, TDirectoryFile::Get(), BmnTof1Digit::GetAmplitude(), BmnGemDchTrack::GetChi2(), BmnGemDchTrack::GetDchTrack(), BmnGemDchTrack::GetDdtx(), BmnGemDchTrack::GetDdty(), BmnGemDchTrack::GetDdx(), BmnGemDchTrack::GetDdy(), BmnGemDchTrack::GetDtx(), BmnGemDchTrack::GetDty(), BmnGemDchTrack::GetDx(), BmnGemDchTrack::GetDy(), TChain::GetEntries(), TObjArray::GetEntriesFast(), TChain::GetEntry(), BmnEventHeader::GetEventId(), BmnGemDchTrack::GetEventId(), BmnTrack::GetFlag(), BmnGemDchTrack::GetGemHits(), BmnGemDchTrack::GetGemTrack(), BmnGemDchTrack::GetLength(), BmnTrack::GetNHits(), BmnTrack::GetParamLast(), BmnTof1Digit::GetPlane(), BmnGemDchTrack::GetSiHits(), BmnTof1Digit::GetStrip(), BmnTof1Digit::GetTime(), TObject::GetUniqueID(), CbmVertex::GetX(), BmnGemDchTrack::GetXpv(), CbmVertex::GetY(), BmnGemDchTrack::GetYpv(), CbmVertex::GetZ(), halfwidthx, halfwidthy, hfitx0, hfitx0run, hfitx1, hfitx1run, hfitx1s0, hfitx1s1, hfitx1s1a, hfitxs0, hfitxs0a, hfitxs1, hfitxs1a, hfity, hfityc, i, idchambers, IN_WIDTH_LIMITS, TMath::IsNaN(), itcalibr, itcalibrc, TObject::kOverwrite, LIST_STRIP_CORRECTIONS, lrd, MINGEMNDF, MINSIHITS, MINTIME, MP, MP2, MPI2, MPIMAX, nhi, nhit, nhits, NUMBER_CHAMBERS, PMAX, PMAX1, PMAX2, PMAXPI, PMIN, PRES, PRES1, PRIMARY_VERTEX_CUTS, TH2::ProjectionX(), TH2::ProjectionY(), PSCALE, readMCTimeFile(), TChain::SetBranchAddress(), TH1::SetOption(), TMath::Sqrt(), STRIP_CORRECTIONS, tof, TOF2, tofcalc, tofcalmc, tofcals, TOFMAX, tofWidths, TRACKFILE, USE_CLUSTERS, wma, WMAX, wmi, WMIN, TObject::Write(), WRITE_CALIBRATION, x, XFACTOR, xhi, xhic, XvsLR, XvsLRp, XvsLRvsRun, XvsLRvsStrip, XvsLRvsStrip1, XYCALIBRATION, XYPANIN, XYPETNEW, y, yhi, yhic, YvsY, z, z0, zhi, and zhic.
| void FitChambersX | ( | ) |
Definition at line 1723 of file BmnXTIdentificationTOF700.C.
References fcalc, TH1::Fit(), fnametof700, TProfile::GetBinContent(), TH1::GetEntries(), TH1::GetFunction(), TF1::GetParameter(), hfitx0, hfitx0run, hfitx1, hfitx1run, hfity, hfityc, idchambers, MINSTAT, NUMBER_CHAMBERS, shiftyc, TObject::Write(), WRITE_CALIBRATION_X_CHAMBER, WRITE_CALIBRATION_Y, WRITE_CALIBRATION_Y_CHAMBER, WRITE_NEW_CALIBRATION_FILES, XvsLR, XvsLRvsRun, and YvsY.
Referenced by BmnXTIdentificationTOF700().
| void FitStripsX | ( | ) |
Definition at line 1596 of file BmnXTIdentificationTOF700.C.
References fcals, TH1::Fit(), fnametof700, TH1::GetEntries(), TH1::GetFunction(), TF1::GetParameter(), hfitx1s0, hfitx1s1, hfitx1s1a, hfitxs0, hfitxs0a, hfitxs1, hfitxs1a, idchambers, MINSTAT, NUMBER_CHAMBERS, TObject::Write(), WRITE_CALIBRATION_X, WRITE_NEW_CALIBRATION_FILES, XvsLRvsStrip, and XvsLRvsStrip1.
Referenced by BmnXTIdentificationTOF700().
| Int_t readMCTimeFile | ( | const char * | MCTimeFile = "TOF700_MC_argon_qgsm_time_run7.txt" | ) |
Definition at line 1533 of file BmnXTIdentificationTOF700.C.
References TString::Data(), idchambers, order, and tofcalmc.
Referenced by BmnXTIdentificationTOF700().
| int ReadXYCalibration | ( | ) |
| void select_hist | ( | ) |
Definition at line 1475 of file BmnXTIdentificationTOF700.C.
References TCanvas::cd(), TH1::Draw(), select(), and TCanvas::Update().
| TFile* fcalc = 0 |
Definition at line 235 of file BmnXTIdentificationTOF700.C.
| TFile * fcals = 0 |
Definition at line 235 of file BmnXTIdentificationTOF700.C.
| char fnametof700[256] |
Definition at line 280 of file BmnXTIdentificationTOF700.C.
| Float_t halfwidthx[NUMBER_CHAMBERS] = {8.0} |
Definition at line 214 of file BmnXTIdentificationTOF700.C.
| Float_t halfwidthy[NUMBER_CHAMBERS] = {0.5} |
Definition at line 215 of file BmnXTIdentificationTOF700.C.
| TH1F* hfitx0 = 0 |
Definition at line 247 of file BmnXTIdentificationTOF700.C.
| TH1F* hfitx0run = 0 |
Definition at line 249 of file BmnXTIdentificationTOF700.C.
| TH1F* hfitx1 = 0 |
Definition at line 248 of file BmnXTIdentificationTOF700.C.
| TH1F* hfitx1run = 0 |
Definition at line 250 of file BmnXTIdentificationTOF700.C.
| TH1F* hfitx1s0 = 0 |
Definition at line 255 of file BmnXTIdentificationTOF700.C.
| TH1F* hfitx1s1 = 0 |
Definition at line 256 of file BmnXTIdentificationTOF700.C.
| TH1F* hfitx1s1a = 0 |
Definition at line 257 of file BmnXTIdentificationTOF700.C.
| TH1F* hfitxs0 = 0 |
Definition at line 251 of file BmnXTIdentificationTOF700.C.
| TH1F* hfitxs0a = 0 |
Definition at line 253 of file BmnXTIdentificationTOF700.C.
| TH1F* hfitxs1 = 0 |
Definition at line 252 of file BmnXTIdentificationTOF700.C.
| TH1F* hfitxs1a = 0 |
Definition at line 254 of file BmnXTIdentificationTOF700.C.
| TH1F* hfity = 0 |
Definition at line 258 of file BmnXTIdentificationTOF700.C.
| TH1F* hfityc = 0 |
Definition at line 259 of file BmnXTIdentificationTOF700.C.
| float idchambers[59] |
Definition at line 261 of file BmnXTIdentificationTOF700.C.
| Double_t interxc[NUMBER_CHAMBERS] = {0.} |
Definition at line 276 of file BmnXTIdentificationTOF700.C.
| Double_t interxg[NUMBER_CHAMBERS][32] = {{0.}} |
Definition at line 275 of file BmnXTIdentificationTOF700.C.
| Double_t interxl[NUMBER_CHAMBERS][32] = {{0.}} |
Definition at line 274 of file BmnXTIdentificationTOF700.C.
| TProfile2D* itcalibr = 0 |
Definition at line 233 of file BmnXTIdentificationTOF700.C.
| TProfile* itcalibrc = 0 |
Definition at line 234 of file BmnXTIdentificationTOF700.C.
| double lrd[1000] |
Definition at line 226 of file BmnXTIdentificationTOF700.C.
| int nhi = 0 |
Definition at line 220 of file BmnXTIdentificationTOF700.C.
| int nhit[NUMBER_CHAMBERS] = {0} |
Definition at line 221 of file BmnXTIdentificationTOF700.C.
| int nhits[NUMBER_CHAMBERS][32] = {{0}} |
Definition at line 222 of file BmnXTIdentificationTOF700.C.
| Double_t shifty[NUMBER_CHAMBERS][32] = {{0.}} |
Definition at line 277 of file BmnXTIdentificationTOF700.C.
| Double_t shiftyc[NUMBER_CHAMBERS] = {0.} |
Definition at line 278 of file BmnXTIdentificationTOF700.C.
| Double_t slopexc[NUMBER_CHAMBERS] = {0.} |
Definition at line 276 of file BmnXTIdentificationTOF700.C.
| Double_t slopexg[NUMBER_CHAMBERS][32] = {{0.}} |
Definition at line 275 of file BmnXTIdentificationTOF700.C.
| Double_t slopexl[NUMBER_CHAMBERS][32] = {{0.}} |
Definition at line 274 of file BmnXTIdentificationTOF700.C.
| float tof[NUMBER_CHAMBERS][32] = {{0.}} |
Definition at line 223 of file BmnXTIdentificationTOF700.C.
| BmnTof2Raw2DigitNew* TOF2 = NULL |
Definition at line 231 of file BmnXTIdentificationTOF700.C.
| Double_t tofcalc[NUMBER_CHAMBERS] = {0.f} |
Definition at line 268 of file BmnXTIdentificationTOF700.C.
| Double_t tofcalmc[NUMBER_CHAMBERS] = {0.f} |
Definition at line 267 of file BmnXTIdentificationTOF700.C.
| Double_t tofcals[NUMBER_CHAMBERS][32] = {{0.f}} |
Definition at line 269 of file BmnXTIdentificationTOF700.C.
| float tofWidths[NUMBER_CHAMBERS][32] = {{0.}} |
Definition at line 224 of file BmnXTIdentificationTOF700.C.
| int wma[NUMBER_CHAMBERS] = {9000} |
Definition at line 218 of file BmnXTIdentificationTOF700.C.
| int wmi[NUMBER_CHAMBERS] = {2900} |
Definition at line 217 of file BmnXTIdentificationTOF700.C.
| double xhi[1000] |
Definition at line 225 of file BmnXTIdentificationTOF700.C.
| double xhic[1000] |
Definition at line 227 of file BmnXTIdentificationTOF700.C.
| TProfile2D* XvsLR = 0 |
Definition at line 243 of file BmnXTIdentificationTOF700.C.
| TH2F* XvsLRp[NUMBER_CHAMBERS] = {0} |
Definition at line 246 of file BmnXTIdentificationTOF700.C.
| TProfile2D* XvsLRvsRun[10] = {0} |
Definition at line 244 of file BmnXTIdentificationTOF700.C.
| TProfile2D* XvsLRvsStrip[NUMBER_CHAMBERS] = {0} |
Definition at line 241 of file BmnXTIdentificationTOF700.C.
| TProfile2D* XvsLRvsStrip1[NUMBER_CHAMBERS] = {0} |
Definition at line 242 of file BmnXTIdentificationTOF700.C.
| double yhi[1000] |
Definition at line 225 of file BmnXTIdentificationTOF700.C.
| double yhic[1000] |
Definition at line 227 of file BmnXTIdentificationTOF700.C.
| TProfile2D* YvsY = 0 |
Definition at line 245 of file BmnXTIdentificationTOF700.C.
| double zhi[1000] |
Definition at line 225 of file BmnXTIdentificationTOF700.C.
| double zhic[1000] |
Definition at line 227 of file BmnXTIdentificationTOF700.C.