4 #include "TClonesArray.h"
30 , fMaxNofDrawnEvents(100)
31 , fOutputDir(
"result")
42 , fMaxNofDrawnEvents(100)
43 , fOutputDir(
"result")
48 std::vector<int>& ringIndx,
52 double pmtWidth = 5.20;
53 double pmtHeight = 5.20;
81 gSystem->mkdir(dir.c_str(),
true);
92 c->SetGrid(
true,
true);
93 TPad* pad_event =
new TPad(
"pad_event",
"event", 0, 0.20, 1, 1);
96 pad =
new TH2D(ss.str().c_str(),
97 (ss.str() +
";X [cm];Y [cm]").c_str(),
105 pad =
new TH2D(ss.str().c_str(),
106 (ss.str() +
";X [cm];Y [cm]").c_str(),
115 TPad* pad_time =
new TPad(
"pad_time",
"timeDist", 0, 0, 1, 0.20);
116 TH1D* timeDistRichHit =
new TH1D(
117 (ss.str() +
"timeDistRichHit").c_str(),
";LE [ns];Entries", 200, 0.0, 200.);
118 TH1D* timeDistRichHitToT =
new TH1D((ss.str() +
"timeDistRichHitToT").c_str(),
123 TH1D* timeDistTofTrack =
new TH1D((ss.str() +
"timeDistTofTrack").c_str(),
132 pad->SetStats(
false);
136 for (
unsigned int x = 0;
x < 4; ++
x) {
137 for (
unsigned int y = 0;
y < 9; ++
y) {
138 double pmtLeft = left + (pmtWidth + pmtGap) *
x;
139 double pmtTop = top - (pmtHeight + pmtGap) *
y;
141 new TBox(pmtLeft, pmtTop, pmtLeft + pmtWidth, pmtTop - pmtHeight);
147 for (
unsigned int pX = 0; pX < 8; ++pX) {
148 for (
unsigned int pY = 0; pY < 8; ++pY) {
155 xEnd = pmtLeft + 0.625;
157 xStart = pmtLeft + 0.625 + 0.6 * (pX - 1);
158 xEnd = pmtLeft + 0.625 + 0.6 * (pX);
159 }
else if (pX == 7) {
160 xStart = pmtLeft + 0.625 + 0.6 * 6;
161 xEnd = pmtLeft + 0.625 * 2 + 0.6 * 6;
166 yEnd = pmtTop - 0.625;
168 yStart = pmtTop - 0.625 - 0.6 * (pY - 1);
169 yEnd = pmtTop - 0.625 - 0.6 * (pY);
170 }
else if (pY == 7) {
171 yStart = pmtTop - 0.625 - 0.6 * 6;
172 yEnd = pmtTop - 0.625 * 2 - 0.6 * 6;
175 TBox* box1 =
new TBox(xStart, yStart, xEnd, yEnd);
176 box1->SetLineWidth(1.);
208 uint nofDrawHits = 0;
214 if (
nullptr == hit)
continue;
215 TEllipse* hitDr =
new TEllipse(hit->
GetX(), hit->
GetY(), .25);
218 hitDr->SetFillColor(kCyan);
221 hitDr->SetFillColor(kBlue);
238 circle->SetFillStyle(0);
239 circle->SetLineWidth(3);
246 Int_t hitInd = ring->
GetHit(
i);
248 if (
nullptr == hit)
continue;
249 TEllipse* hitDr =
new TEllipse(hit->
GetX(), hit->
GetY(), .125);
251 hitDr->SetFillColor(kMagenta);
253 hitDr->SetFillColor(kRed);
265 for (
int j = 0; j < nofTofTracks; j++) {
269 if (
nullptr == track)
continue;
273 hitDr->SetFillColor(kGreen);
281 pad_time->SetTitle(
"");
282 pad_time->SetTopMargin(0);
283 pad_time->SetBottomMargin(0.25);
284 timeDistRichHit->SetFillColor(kBlue);
285 timeDistRichHit->SetStats(
false);
286 timeDistRichHit->GetXaxis()->SetLabelSize(0.06);
287 timeDistRichHit->GetXaxis()->SetTitleSize(0.08);
288 timeDistRichHit->GetYaxis()->SetLabelSize(0.06);
289 timeDistRichHit->GetYaxis()->SetTitleSize(0.08);
290 timeDistRichHit->GetYaxis()->SetTitleOffset(0.52);
291 timeDistRichHit->Draw(
"HIST");
292 timeDistRichHitToT->SetFillColor(kCyan);
293 timeDistRichHitToT->Draw(
"HIST SAME");
294 timeDistTofTrack->SetFillColor(kGreen);
295 timeDistTofTrack->Draw(
"HIST SAME");