62 double pmtWidth = 5.20;
63 double pmtHeight = 5.20;
91 gSystem->mkdir(dir.c_str(),
true);
103 c->SetGrid(
true,
true);
104 TPad* pad_event =
new TPad(
"pad_event",
"event", 0, 0.20, 1, 1);
107 pad =
new TH2D(ss.str().c_str(), (ss.str() +
";X [cm];Y [cm]").c_str(), 1, -18. +
fXOffsetHisto + 6.225,
111 pad =
new TH2D(ss.str().c_str(), (ss.str() +
";X [cm];Y [cm]").c_str(), 1, -15. +
fXOffsetHisto + 6.225,
116 TPad* pad_time =
new TPad(
"pad_time",
"timeDist", 0, 0, 1, 0.20);
117 TH1D* timeDistRichHit =
new TH1D((ss.str() +
"timeDistRichHit").c_str(),
";LE [ns];Entries", BinSize,
fLEMin,
fLEMax);
118 TH1D* timeDistRichHitToT =
119 new TH1D((ss.str() +
"timeDistRichHitToT").c_str(),
";LE [ns];Entries", BinSize,
fLEMin,
fLEMax);
120 TH1D* timeDistTofTrack =
121 new TH1D((ss.str() +
"timeDistTofTrack").c_str(),
";LE [ns];Entries", BinSize,
fLEMin,
fLEMax);
126 pad->SetStats(
false);
130 for (
unsigned int x = 0;
x < 4; ++
x) {
131 for (
unsigned int y = 0;
y < 9; ++
y) {
132 double pmtLeft = left + (pmtWidth + pmtGap) *
x;
133 double pmtTop = top - (pmtHeight + pmtGap) *
y;
134 TBox* box =
new TBox(pmtLeft, pmtTop, pmtLeft + pmtWidth, pmtTop - pmtHeight);
140 for (
unsigned int pX = 0; pX < 8; ++pX) {
141 for (
unsigned int pY = 0; pY < 8; ++pY) {
148 xEnd = pmtLeft + 0.625;
151 xStart = pmtLeft + 0.625 + 0.6 * (pX - 1);
152 xEnd = pmtLeft + 0.625 + 0.6 * (pX);
155 xStart = pmtLeft + 0.625 + 0.6 * 6;
156 xEnd = pmtLeft + 0.625 * 2 + 0.6 * 6;
161 yEnd = pmtTop - 0.625;
164 yStart = pmtTop - 0.625 - 0.6 * (pY - 1);
165 yEnd = pmtTop - 0.625 - 0.6 * (pY);
168 yStart = pmtTop - 0.625 - 0.6 * 6;
169 yEnd = pmtTop - 0.625 * 2 - 0.6 * 6;
172 TBox* box1 =
new TBox(xStart, yStart, xEnd, yEnd);
173 box1->SetLineWidth(1.);
205 uint nofDrawHits = 0;
211 if (
nullptr == hit)
continue;
212 TEllipse* hitDr =
new TEllipse(hit->
GetX(), hit->
GetY(), .25);
215 hitDr->SetFillColor(kCyan);
219 hitDr->SetFillColor(kBlue);
234 circle->SetFillStyle(0);
235 circle->SetLineWidth(3);
241 for (
int i = 0; i < ring->
GetNofHits(); i++) {
242 Int_t hitInd = ring->
GetHit(i);
244 if (
nullptr == hit)
continue;
245 TEllipse* hitDr =
new TEllipse(hit->
GetX(), hit->
GetY(), .125);
247 hitDr->SetFillColor(kMagenta);
250 hitDr->SetFillColor(kRed);
262 for (
size_t j = 0; j < nofTofTracks; j++) {
265 if (
nullptr == track)
continue;
267 TEllipse* hitDr =
new TEllipse(track->
GetFitX(hitZ), track->
GetFitY(hitZ), .25);
268 hitDr->SetFillColor(kGreen);
276 pad_time->SetTitle(
"");
277 pad_time->SetTopMargin(0);
278 pad_time->SetBottomMargin(0.25);
279 timeDistRichHit->SetFillColor(kBlue);
280 timeDistRichHit->SetStats(
false);
281 timeDistRichHit->GetXaxis()->SetLabelSize(0.06);
282 timeDistRichHit->GetXaxis()->SetTitleSize(0.08);
283 timeDistRichHit->GetYaxis()->SetLabelSize(0.06);
284 timeDistRichHit->GetYaxis()->SetTitleSize(0.08);
285 timeDistRichHit->GetYaxis()->SetTitleOffset(0.52);
286 timeDistRichHit->Draw(
"HIST");
287 timeDistRichHitToT->SetFillColor(kCyan);
288 timeDistRichHitToT->Draw(
"HIST SAME");
289 timeDistTofTrack->SetFillColor(kGreen);
290 timeDistTofTrack->Draw(
"HIST SAME");