Skip to content

Commit cf277e6

Browse files
authored
[Common] Update QA histograms of FT0 (#10005)
1 parent 2e977ec commit cf277e6

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

Common/TableProducer/ft0CorrectedTable.cxx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ struct ft0CorrectedTable {
7373
histos.add("t0A", "t0A", kTH1D, {{1000, -1, 1, "t0A (ns)"}});
7474
histos.add("t0C", "t0C", kTH1D, {{1000, -1, 1, "t0C (ns)"}});
7575
histos.add("t0AC", "t0AC", kTH1D, {{1000, -1000, 1000, "t0AC (ns)"}});
76-
histos.add("deltat0AC", "deltat0AC", kTH1D, {{1000, -10, 10, "#Deltat0AC (ns)"}});
76+
histos.add("deltat0AC", "deltat0AC", kTH1D, {{1000, -1, 1, "#Deltat0AC (ns)"}});
77+
histos.add("deltat0ACps", "deltat0ACps", kTH1D, {{1000, -1000, 1000, "#Deltat0AC (ps)"}});
7778
if (doprocessWithBypassFT0timeInMC) {
7879
histos.add("MC/deltat0A", "t0A", kTH1D, {{1000, -50, 50, "t0A (ps)"}});
7980
histos.add("MC/deltat0C", "t0C", kTH1D, {{1000, -50, 50, "t0C (ps)"}});
@@ -88,7 +89,7 @@ struct ft0CorrectedTable {
8889
table.reserve(collisions.size());
8990
float t0A = 1e10f;
9091
float t0C = 1e10f;
91-
for (auto& collision : collisions) {
92+
for (const auto& collision : collisions) {
9293
t0A = 1e10f;
9394
t0C = 1e10f;
9495
const float vertexPV = collision.posZ();
@@ -112,8 +113,11 @@ struct ft0CorrectedTable {
112113
if (addHistograms) {
113114
histos.fill(HIST("t0A"), t0A);
114115
histos.fill(HIST("t0C"), t0C);
115-
histos.fill(HIST("t0AC"), (t0A + t0C) * 0.5f);
116-
histos.fill(HIST("deltat0AC"), t0A - t0C);
116+
if (t0A < 1e10f && t0C < 1e10f) {
117+
histos.fill(HIST("t0AC"), (t0A + t0C) * 0.5f);
118+
histos.fill(HIST("deltat0AC"), (t0A - t0C) * 0.5f);
119+
histos.fill(HIST("deltat0ACps"), (t0A - t0C) * 500.f);
120+
}
117121
}
118122
table(t0A, t0C);
119123
}
@@ -152,7 +156,7 @@ struct ft0CorrectedTable {
152156
float posZMC = 0;
153157
bool hasMCcoll = false;
154158

155-
for (auto& collision : collisions) {
159+
for (const auto& collision : collisions) {
156160
hasMCcoll = false;
157161
eventtimeMC = 1e10f;
158162
t0A = 1e10f;

0 commit comments

Comments
 (0)