46#if !(!defined(__CLING__) || defined(__MAKECLING__))
50 const Int_t nColors = 16;
51 Int_t ColorMap[nColors] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 49, 11, 12, 13, 14, 15, 16};
53 const Int_t boxWidth = 40;
54 TString inFileNameCbm =
Form(
"/home/ilnur/nica/cbm/%04d_Ext_v5.root", runID);
55 TString inFileNameCbm2Bmn =
"dst-emb.root";
56 TString inFileNameBmn =
"dst-emb.root";
58 TString fnames[
COLS] = {inFileNameCbm, inFileNameCbm2Bmn, inFileNameBmn};
59 TString treeNames[
COLS] = {
"bmndata",
"bmndata",
"bmndata"};
60 TString hitNames[
COLS] = {
"StsHit",
"BmnInnerHits",
"BmnInnerHits"};
61 TString trackNames[
COLS] = {
"StsTrack",
"BmnGlobalTrack",
"BmnGlobalTrack"};
71 for (
Int_t ic = 0; ic < nColors; ic++) {
72 h[0][0][ic] =
new TH2D(
Form(
"h0-0-%d", ic),
"Hits XZ CBM", 400, -boxWidth, boxWidth, 400, 0, 200);
73 h[0][1][ic] =
new TH2D(
Form(
"h0-1-%d", ic),
"Hits YZ CBM", 400, -boxWidth, boxWidth, 400, 0, 200);
76 h[1][0][ic] =
new TH2D(
Form(
"h1-0-%d", ic),
"Hits XZ CBM2BMN", 400, -boxWidth, boxWidth, 400, 0, 200);
77 h[1][1][ic] =
new TH2D(
Form(
"h1-1-%d", ic),
"Hits YZ CBM2BMN", 400, -boxWidth, boxWidth, 400, 0, 200);
80 h[2][0][ic] =
new TH2D(
Form(
"h2-0-%d", ic),
"Hits XZ BMN", 400, -boxWidth, boxWidth, 400, 0, 200);
81 h[2][1][ic] =
new TH2D(
Form(
"h2-1-%d", ic),
"Hits YZ BMN", 400, -boxWidth, boxWidth, 400, 0, 200);
90 files[
i] =
new TFile(fnames[
i],
"READ");
91 if (files[
i]->IsOpen())
92 printf(
"file %s opened\n", fnames[
i].Data());
94 fprintf(stderr,
"file %s open error\n", fnames[
i].Data());
98 trees[
i] = (
TTree*)files[
i]->Get(treeNames[
i]);
102 for (
Int_t ic = 0; ic < nColors; ic++) {
123 cout <<
"#recorded entries = " << nEvs <<
" in file" << endl;
130 for (
Int_t ic = 0; ic < nColors; ic++)
131 h[
i][row][ic]->Reset();
135 h[
i][0][0]->
Fill(hit->GetX(), hit->GetZ());
136 h[
i][1][0]->
Fill(hit->GetY(), hit->GetZ());
140 if (tracks[1]->GetEntriesFast() < 2) {
145 printf(
"%d branch %d tracks\n",
i, tracks[
i]->GetEntriesFast());
148 if (track->GetSilTrackIndex() != -1) {
149 BmnTrack* silTr = (
BmnTrack*)silTrack[
i]->UncheckedAt(track->GetSilTrackIndex());
155 h[
i][0][iTrack + 1]->
Fill(hit->GetX(), hit->GetZ());
156 h[
i][1][iTrack + 1]->
Fill(hit->GetY(), hit->GetZ());
166 h[
i][0][iTrack + 1]->
Fill(hit->GetX(), hit->GetZ());
167 h[
i][1][iTrack + 1]->
Fill(hit->GetY(), hit->GetZ());
182 h[
i][0][iTrack + 1]->
Fill(hit->GetX(), hit->GetZ());
183 h[
i][1][iTrack + 1]->
Fill(hit->GetY(), hit->GetZ());
203 for (
Int_t iTrack = 0; iTrack < nColors; iTrack++)
205 h[col][row][iTrack]->
Draw(
"SAME");
207 h[col][row][iTrack]->
Draw(
"");
211 can->SaveAs(
Form(
"can-%d.pdf", runID));
212 cout <<
" Ev# " << iEv << endl;
216 iEv = (iEv == 0) ? iEv : iEv - 1;
219 iEv = (iEv < nEvs) ? iEv + 1 : iEv;
229 for (
Int_t ic = 0; ic < nColors; ic++) {