@@ -231,15 +231,16 @@ struct sigma0builder {
231231 histos.add (" h3dMassSigmasBeforeSel" , " h3dMassSigmasBeforeSel" , kTH3F , {axisCentrality, axisPt, axisSigmaMass});
232232 histos.add (" h3dMassSigmasAfterSel" , " h3dMassSigmasAfterSel" , kTH3F , {axisCentrality, axisPt, axisSigmaMass});
233233 }
234- template <typename TV0Object>
235- void runPi0QA (TV0Object const & gamma1, TV0Object const & gamma2) {
234+ template <typename TV0Object>
235+ void runPi0QA (TV0Object const & gamma1, TV0Object const & gamma2)
236+ {
236237
237238 // Check if both V0s are made of the same tracks
238- if (gamma1.posTrackExtraId () == gamma2.posTrackExtraId () ||
239- gamma1.negTrackExtraId () == gamma2.negTrackExtraId () ||
240- gamma1.posTrackExtraId () == gamma2.negTrackExtraId () ||
239+ if (gamma1.posTrackExtraId () == gamma2.posTrackExtraId () ||
240+ gamma1.negTrackExtraId () == gamma2.negTrackExtraId () ||
241+ gamma1.posTrackExtraId () == gamma2.negTrackExtraId () ||
241242 gamma1.negTrackExtraId () == gamma2.posTrackExtraId ()) {
242- return ;
243+ return ;
243244 }
244245
245246 // Calculate pi0 properties
@@ -255,15 +256,15 @@ void runPi0QA(TV0Object const& gamma1, TV0Object const& gamma2) {
255256
256257 // Check if MC data and populate fIsMC, fIsPi0
257258 if constexpr (requires { gamma1.pdgCode (); gamma2.pdgCode (); }) {
258- fIsMC = true ;
259- if (gamma1.pdgCode () == 22 && gamma2.pdgCode () == 22 &&
260- gamma1.pdgCodeMother () == 111 && gamma2.pdgCodeMother () == 111 &&
261- gamma1.motherMCPartId () == gamma2.motherMCPartId ()) {
262- fIsPi0 = true ;
263- histos.fill (HIST (" MC/h2dPtVsMassPi0BeforeSel_SignalOnly" ), pi0Pt, pi0Mass);
264- }
259+ fIsMC = true ;
260+ if (gamma1.pdgCode () == 22 && gamma2.pdgCode () == 22 &&
261+ gamma1.pdgCodeMother () == 111 && gamma2.pdgCodeMother () == 111 &&
262+ gamma1.motherMCPartId () == gamma2.motherMCPartId ()) {
263+ fIsPi0 = true ;
264+ histos.fill (HIST (" MC/h2dPtVsMassPi0BeforeSel_SignalOnly" ), pi0Pt, pi0Mass);
265+ }
265266 } else {
266- histos.fill (HIST (" GeneralQA/h2dPtVsMassPi0BeforeSel_Candidates" ), pi0Pt, pi0Mass);
267+ histos.fill (HIST (" GeneralQA/h2dPtVsMassPi0BeforeSel_Candidates" ), pi0Pt, pi0Mass);
267268 }
268269
269270 // Photon-specific selections
@@ -290,7 +291,7 @@ void runPi0QA(TV0Object const& gamma1, TV0Object const& gamma2) {
290291 posTrackGamma1.tpcCrossedRows () < Pi0PhotonMinTPCCrossedRows ||
291292 negTrackGamma1.tpcCrossedRows () < Pi0PhotonMinTPCCrossedRows ||
292293 !passedTPCGamma1) {
293- return ;
294+ return ;
294295 }
295296
296297 // Gamma2 Selection
@@ -311,7 +312,7 @@ void runPi0QA(TV0Object const& gamma1, TV0Object const& gamma2) {
311312 posTrackGamma2.tpcCrossedRows () < Pi0PhotonMinTPCCrossedRows ||
312313 negTrackGamma2.tpcCrossedRows () < Pi0PhotonMinTPCCrossedRows ||
313314 !passedTPCGamma2) {
314- return ;
315+ return ;
315316 }
316317
317318 // Pi0-specific selections:
@@ -323,8 +324,7 @@ void runPi0QA(TV0Object const& gamma1, TV0Object const& gamma2) {
323324 if (fIsMC ) {
324325 if (fIsPi0 )
325326 histos.fill (HIST (" MC/h2dPtVsMassPi0AfterSel_SignalOnly" ), pi0Pt, pi0Mass);
326- }
327- else
327+ } else
328328 histos.fill (HIST (" GeneralQA/h2dPtVsMassPi0AfterSel_Candidates" ), pi0Pt, pi0Mass);
329329 }
330330
@@ -464,7 +464,7 @@ void runPi0QA(TV0Object const& gamma1, TV0Object const& gamma2) {
464464 histos.fill (HIST (" hCandidateBuilderSelection" ), 13 .);
465465 return true ;
466466 }
467-
467+
468468 // Fill tables with reconstructed sigma0 candidate
469469 template <typename TV0Object, typename TCollision>
470470 void fillTables (TV0Object const & lambda, TV0Object const & gamma, TCollision const & coll)
@@ -646,7 +646,7 @@ void runPi0QA(TV0Object const& gamma1, TV0Object const& gamma2) {
646646 }
647647
648648 for (auto & lambda : V0Table_thisCollision) { // selecting lambdas from Sigma0
649- if (doPi0QA) // Pi0 QA study
649+ if (doPi0QA) // Pi0 QA study
650650 runPi0QA (gamma, lambda);
651651
652652 // Sigma0 candidate properties
@@ -711,7 +711,7 @@ void runPi0QA(TV0Object const& gamma1, TV0Object const& gamma2) {
711711 // V0 table sliced
712712 for (auto & gamma : V0Table_thisCollision) { // selecting photons from Sigma0
713713 for (auto & lambda : V0Table_thisCollision) { // selecting lambdas from Sigma0
714- if (doPi0QA) // Pi0 QA study
714+ if (doPi0QA) // Pi0 QA study
715715 runPi0QA (gamma, lambda);
716716
717717 // Sigma0 candidate properties
0 commit comments