Skip to content

Commit 0098dd2

Browse files
committed
Add braces to if-statements to fix build format error
1 parent a861298 commit 0098dd2

1 file changed

Lines changed: 24 additions & 12 deletions

File tree

Analysis/Tasks/PWGHF/taskD0.cxx

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -171,35 +171,47 @@ struct TaskD0MC {
171171
auto ptRec = candidate.pt();
172172
auto yRec = YD0(candidate);
173173
registry.fill(HIST("hPtRecSig"), ptRec); // rec. level pT
174-
if (candidate.isRecoHFFlag() >= d_selectionHFFlag)
174+
if (candidate.isRecoHFFlag() >= d_selectionHFFlag) {
175175
registry.fill(HIST("hPtvsYRecSig_RecoHFFlag"), ptRec, yRec);
176-
if (candidate.isRecoTopol() >= d_selectionTopol)
176+
}
177+
if (candidate.isRecoTopol() >= d_selectionTopol) {
177178
registry.fill(HIST("hPtvsYRecSig_RecoTopol"), ptRec, yRec);
178-
if (candidate.isRecoCand() >= d_selectionCand)
179+
}
180+
if (candidate.isRecoCand() >= d_selectionCand) {
179181
registry.fill(HIST("hPtvsYRecSig_RecoCand"), ptRec, yRec);
180-
if (candidate.isRecoPID() >= d_selectionPID)
182+
}
183+
if (candidate.isRecoPID() >= d_selectionPID) {
181184
registry.fill(HIST("hPtvsYRecSig_RecoPID"), ptRec, yRec);
185+
}
182186

183187
if (candidate.originMCRec() == OriginType::Prompt) {
184188
registry.fill(HIST("hPtRecSigPrompt"), ptRec); // rec. level pT, prompt
185-
if (candidate.isRecoHFFlag() >= d_selectionHFFlag)
189+
if (candidate.isRecoHFFlag() >= d_selectionHFFlag) {
186190
registry.fill(HIST("hPtvsYRecSigPrompt_RecoHFFlag"), ptRec, yRec);
187-
if (candidate.isRecoTopol() >= d_selectionTopol)
191+
}
192+
if (candidate.isRecoTopol() >= d_selectionTopol) {
188193
registry.fill(HIST("hPtvsYRecSigPrompt_RecoTopol"), ptRec, yRec);
189-
if (candidate.isRecoCand() >= d_selectionCand)
194+
}
195+
if (candidate.isRecoCand() >= d_selectionCand) {
190196
registry.fill(HIST("hPtvsYRecSigPrompt_RecoCand"), ptRec, yRec);
191-
if (candidate.isRecoPID() >= d_selectionPID)
197+
}
198+
if (candidate.isRecoPID() >= d_selectionPID) {
192199
registry.fill(HIST("hPtvsYRecSigPrompt_RecoPID"), ptRec, yRec);
200+
}
193201
} else {
194202
registry.fill(HIST("hPtRecSigNonPrompt"), ptRec); // rec. level pT, non-prompt
195-
if (candidate.isRecoHFFlag() >= d_selectionHFFlag)
203+
if (candidate.isRecoHFFlag() >= d_selectionHFFlag) {
196204
registry.fill(HIST("hPtvsYRecSigNonPrompt_RecoHFFlag"), ptRec, yRec);
197-
if (candidate.isRecoTopol() >= d_selectionTopol)
205+
}
206+
if (candidate.isRecoTopol() >= d_selectionTopol) {
198207
registry.fill(HIST("hPtvsYRecSigNonPrompt_RecoTopol"), ptRec, yRec);
199-
if (candidate.isRecoCand() >= d_selectionCand)
208+
}
209+
if (candidate.isRecoCand() >= d_selectionCand) {
200210
registry.fill(HIST("hPtvsYRecSigNonPrompt_RecoCand"), ptRec, yRec);
201-
if (candidate.isRecoPID() >= d_selectionPID)
211+
}
212+
if (candidate.isRecoPID() >= d_selectionPID) {
202213
registry.fill(HIST("hPtvsYRecSigNonPrompt_RecoPID"), ptRec, yRec);
214+
}
203215
}
204216
registry.fill(HIST("hCPARecSig"), candidate.cpa());
205217
registry.fill(HIST("hEtaRecSig"), candidate.eta());

0 commit comments

Comments
 (0)