Skip to content

Commit 0553e56

Browse files
committed
Please consider the following formatting changes
1 parent 4127978 commit 0553e56

File tree

1 file changed

+31
-32
lines changed

1 file changed

+31
-32
lines changed

PWGMM/UE/Tasks/dedxAnalysis.cxx

Lines changed: 31 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,13 @@ struct DedxAnalysis {
131131
registryDeDx.add(
132132
"hdEdx_vs_eta_vs_p_Pos_El", "dE/dx", HistType::kTH3F,
133133
{{etaAxis}, {dedxAxis}, {pAxis}});
134-
//Pions from TOF
135-
registryDeDx.add(
136-
"hdEdx_vs_eta_vs_p_Neg_TOF", "dE/dx", HistType::kTH3F,
137-
{{etaAxis}, {dedxAxis}, {pAxis}});
138-
registryDeDx.add(
139-
"hdEdx_vs_eta_vs_p_Pos_TOF", "dE/dx", HistType::kTH3F,
140-
{{etaAxis}, {dedxAxis}, {pAxis}});
134+
// Pions from TOF
135+
registryDeDx.add(
136+
"hdEdx_vs_eta_vs_p_Neg_TOF", "dE/dx", HistType::kTH3F,
137+
{{etaAxis}, {dedxAxis}, {pAxis}});
138+
registryDeDx.add(
139+
"hdEdx_vs_eta_vs_p_Pos_TOF", "dE/dx", HistType::kTH3F,
140+
{{etaAxis}, {dedxAxis}, {pAxis}});
141141

142142
} else {
143143
// MIP for pions
@@ -157,15 +157,15 @@ struct DedxAnalysis {
157157
registryDeDx.add(
158158
"hdEdx_vs_eta_vs_p_Pos_calibrated_El", "dE/dx", HistType::kTH3F,
159159
{{etaAxis}, {dedxAxis}, {pAxis}});
160-
161-
// Pions from TOF
162-
registryDeDx.add(
163-
"hdEdx_vs_eta_vs_p_Neg_calibrated_TOF", "dE/dx", HistType::kTH3F,
164-
{{etaAxis}, {dedxAxis}, {pAxis}});
165160

166-
registryDeDx.add(
167-
"hdEdx_vs_eta_vs_p_Pos_calibrated_TOF", "dE/dx", HistType::kTH3F,
168-
{{etaAxis}, {dedxAxis}, {pAxis}});
161+
// Pions from TOF
162+
registryDeDx.add(
163+
"hdEdx_vs_eta_vs_p_Neg_calibrated_TOF", "dE/dx", HistType::kTH3F,
164+
{{etaAxis}, {dedxAxis}, {pAxis}});
165+
166+
registryDeDx.add(
167+
"hdEdx_vs_eta_vs_p_Pos_calibrated_TOF", "dE/dx", HistType::kTH3F,
168+
{{etaAxis}, {dedxAxis}, {pAxis}});
169169

170170
// De/Dx for ch and v0 particles
171171
for (int i = 0; i < 4; ++i) {
@@ -174,7 +174,6 @@ struct DedxAnalysis {
174174
registryDeDx.add(kDedxvsMomentumNeg[i].data(), "dE/dx", HistType::kTH3F,
175175
{{pAxis}, {dedxAxis}, {etaAxis}});
176176
}
177-
178177
}
179178

180179
registryDeDx.add(
@@ -409,7 +408,7 @@ struct DedxAnalysis {
409408
} else {
410409
registryDeDx.fill(HIST("hbeta_vs_p_Pos"), signedP, trk.beta());
411410
}
412-
// Electrons from TOF
411+
// Electrons from TOF
413412
if (std::abs(trk.beta() - 1) < 0.1) { // beta cut
414413
if (calibrationMode) {
415414
if (signedP < 0) {
@@ -429,26 +428,26 @@ struct DedxAnalysis {
429428
}
430429
}
431430
}
432-
//pions from TOF
433-
if (trk.beta() > 1. && trk.beta() < 1.05) { // beta cut
434-
if (calibrationMode) {
435-
if (signedP < 0) {
436-
registryDeDx.fill(HIST("hdEdx_vs_eta_vs_p_Neg_TOF"), trk.eta(), trk.tpcSignal(), std::abs(signedP));
437-
} else {
438-
registryDeDx.fill(HIST("hdEdx_vs_eta_vs_p_Pos_TOF"), trk.eta(), trk.tpcSignal(), signedP);
439-
}
431+
// pions from TOF
432+
if (trk.beta() > 1. && trk.beta() < 1.05) { // beta cut
433+
if (calibrationMode) {
434+
if (signedP < 0) {
435+
registryDeDx.fill(HIST("hdEdx_vs_eta_vs_p_Neg_TOF"), trk.eta(), trk.tpcSignal(), std::abs(signedP));
440436
} else {
441-
for (int i = 0; i < 8; ++i) {
442-
if (trk.eta() > EtaCut[i] && trk.eta() < EtaCut[i + 1]) {
443-
if (signedP < 0) {
444-
registryDeDx.fill(HIST("hdEdx_vs_eta_vs_p_Neg_calibrated_TOF"), trk.eta(), trk.tpcSignal() * 50 / calibrationFactorNeg->at(i), std::abs(signedP));
445-
} else {
446-
registryDeDx.fill(HIST("hdEdx_vs_eta_vs_p_Pos_calibrated_TOF"), trk.eta(), trk.tpcSignal() * 50 / calibrationFactorPos->at(i), signedP);
447-
}
437+
registryDeDx.fill(HIST("hdEdx_vs_eta_vs_p_Pos_TOF"), trk.eta(), trk.tpcSignal(), signedP);
438+
}
439+
} else {
440+
for (int i = 0; i < 8; ++i) {
441+
if (trk.eta() > EtaCut[i] && trk.eta() < EtaCut[i + 1]) {
442+
if (signedP < 0) {
443+
registryDeDx.fill(HIST("hdEdx_vs_eta_vs_p_Neg_calibrated_TOF"), trk.eta(), trk.tpcSignal() * 50 / calibrationFactorNeg->at(i), std::abs(signedP));
444+
} else {
445+
registryDeDx.fill(HIST("hdEdx_vs_eta_vs_p_Pos_calibrated_TOF"), trk.eta(), trk.tpcSignal() * 50 / calibrationFactorPos->at(i), signedP);
448446
}
449447
}
450448
}
451449
}
450+
}
452451

453452
registryDeDx.fill(HIST("hdEdx_vs_phi"), trk.phi(), trk.tpcSignal());
454453

0 commit comments

Comments
 (0)