Skip to content

Commit eb350b5

Browse files
authored
Merge pull request #27 from alibuild/alibot-cleanup-18231
Please consider the following formatting changes to #18231
2 parents 0dc5dc8 + 4e5c48e commit eb350b5

1 file changed

Lines changed: 29 additions & 18 deletions

File tree

‎PWGUD/Tasks/ptSpectraInclusiveUpc.cxx‎

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ struct PtSpectraInclusiveUpc {
5353
HistogramRegistry histos{"histos", {}, OutputObjHandlingPolicy::AnalysisObject};
5454

5555
ConfigurableAxis ptBinning{"ptBinning",
56-
{VARIABLE_WIDTH, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0,
57-
1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2.0,
58-
2.2, 2.4, 2.6, 2.8, 3.0, 3.2, 3.4, 3.6, 3.8, 4.0},
59-
"#it{p}_{T} (GeV/#it{c})"};
56+
{VARIABLE_WIDTH, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0,
57+
1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2.0,
58+
2.2, 2.4, 2.6, 2.8, 3.0, 3.2, 3.4, 3.6, 3.8, 4.0},
59+
"#it{p}_{T} (GeV/#it{c})"};
6060

6161
ConfigurableAxis dcaXYaxis{"dcaXYaxis", {1000, -0.6, 0.6}, "DCA_{xy} (cm) binning"};
6262
Configurable<bool> applyKineCutsInGen{"applyKineCutsInGen", false, "Apply kinematic cuts in the generated level"};
@@ -316,7 +316,7 @@ struct PtSpectraInclusiveUpc {
316316
}
317317
}
318318

319-
if(track.itsChi2NCl() > maxChi2ITS) {
319+
if (track.itsChi2NCl() > maxChi2ITS) {
320320
continue;
321321
}
322322

@@ -359,13 +359,15 @@ struct PtSpectraInclusiveUpc {
359359
if (std::abs(RecoDecay::y(trackMomentum, o2::constants::physics::MassPionCharged)) < yMax) {
360360
if constexpr (isMc) {
361361
if (isPrimary) {
362-
if(passDCAxyCut) histos.fill(HIST("ptReconstructedTPCPion"), track.pt());
362+
if (passDCAxyCut)
363+
histos.fill(HIST("ptReconstructedTPCPion"), track.pt());
363364
histos.fill(HIST("DCAxy_TPC_primary_pions"), track.pt(), track.dcaXY());
364365
} else {
365366
histos.fill(HIST("DCAxy_TPC_secondary_pions"), track.pt(), track.dcaXY());
366367
}
367368
} else {
368-
if(passDCAxyCut) histos.fill(HIST("ptDataTPCPion"), track.pt());
369+
if (passDCAxyCut)
370+
histos.fill(HIST("ptDataTPCPion"), track.pt());
369371
histos.fill(HIST("DCAxy_TPC_data_pions"), track.pt(), track.dcaXY());
370372
}
371373
}
@@ -374,13 +376,15 @@ struct PtSpectraInclusiveUpc {
374376
if (std::abs(RecoDecay::y(trackMomentum, o2::constants::physics::MassKaonCharged)) < yMax) {
375377
if constexpr (isMc) {
376378
if (isPrimary) {
377-
if(passDCAxyCut) histos.fill(HIST("ptReconstructedTPCKaon"), track.pt());
379+
if (passDCAxyCut)
380+
histos.fill(HIST("ptReconstructedTPCKaon"), track.pt());
378381
histos.fill(HIST("DCAxy_TPC_primary_kaons"), track.pt(), track.dcaXY());
379382
} else {
380383
histos.fill(HIST("DCAxy_TPC_secondary_kaons"), track.pt(), track.dcaXY());
381384
}
382385
} else {
383-
if(passDCAxyCut) histos.fill(HIST("ptDataTPCKaon"), track.pt());
386+
if (passDCAxyCut)
387+
histos.fill(HIST("ptDataTPCKaon"), track.pt());
384388
histos.fill(HIST("DCAxy_TPC_data_kaons"), track.pt(), track.dcaXY());
385389
}
386390
}
@@ -390,7 +394,8 @@ struct PtSpectraInclusiveUpc {
390394
if (std::abs(RecoDecay::y(trackMomentum, o2::constants::physics::MassProton)) < yMax) {
391395
if constexpr (isMc) {
392396
if (isPrimary) {
393-
if(passDCAxyCut) histos.fill(HIST("ptReconstructedTPCProton"), track.pt());
397+
if (passDCAxyCut)
398+
histos.fill(HIST("ptReconstructedTPCProton"), track.pt());
394399
histos.fill(HIST("DCAxy_TPC_primary_protons"), track.pt(), track.dcaXY());
395400
} else {
396401
if (isDecay) {
@@ -400,7 +405,8 @@ struct PtSpectraInclusiveUpc {
400405
}
401406
}
402407
} else {
403-
if(passDCAxyCut) histos.fill(HIST("ptDataTPCProton"), track.pt());
408+
if (passDCAxyCut)
409+
histos.fill(HIST("ptDataTPCProton"), track.pt());
404410
histos.fill(HIST("DCAxy_TPC_data_protons"), track.pt(), track.dcaXY());
405411
}
406412
}
@@ -417,13 +423,15 @@ struct PtSpectraInclusiveUpc {
417423
if (std::abs(RecoDecay::y(trackMomentum, o2::constants::physics::MassPionCharged)) < yMax) {
418424
if constexpr (isMc) {
419425
if (isPrimary) {
420-
if(passDCAxyCut) histos.fill(HIST("ptReconstructedTOFPion"), track.pt());
426+
if (passDCAxyCut)
427+
histos.fill(HIST("ptReconstructedTOFPion"), track.pt());
421428
histos.fill(HIST("DCAxy_TOF_primary_pions"), track.pt(), track.dcaXY());
422429
} else {
423430
histos.fill(HIST("DCAxy_TOF_secondary_pions"), track.pt(), track.dcaXY());
424431
}
425432
} else {
426-
if(passDCAxyCut) histos.fill(HIST("ptDataTOFPion"), track.pt());
433+
if (passDCAxyCut)
434+
histos.fill(HIST("ptDataTOFPion"), track.pt());
427435
histos.fill(HIST("DCAxy_TOF_data_pions"), track.pt(), track.dcaXY());
428436
}
429437
}
@@ -433,13 +441,15 @@ struct PtSpectraInclusiveUpc {
433441
if (std::abs(RecoDecay::y(trackMomentum, o2::constants::physics::MassKaonCharged)) < yMax) {
434442
if constexpr (isMc) {
435443
if (isPrimary) {
436-
if(passDCAxyCut) histos.fill(HIST("ptReconstructedTOFKaon"), track.pt());
444+
if (passDCAxyCut)
445+
histos.fill(HIST("ptReconstructedTOFKaon"), track.pt());
437446
histos.fill(HIST("DCAxy_TOF_primary_kaons"), track.pt(), track.dcaXY());
438447
} else {
439448
histos.fill(HIST("DCAxy_TOF_secondary_kaons"), track.pt(), track.dcaXY());
440449
}
441450
} else {
442-
if(passDCAxyCut) histos.fill(HIST("ptDataTOFKaon"), track.pt());
451+
if (passDCAxyCut)
452+
histos.fill(HIST("ptDataTOFKaon"), track.pt());
443453
histos.fill(HIST("DCAxy_TOF_data_kaons"), track.pt(), track.dcaXY());
444454
}
445455
}
@@ -449,7 +459,8 @@ struct PtSpectraInclusiveUpc {
449459
if (std::abs(RecoDecay::y(trackMomentum, o2::constants::physics::MassProton)) < yMax) {
450460
if constexpr (isMc) {
451461
if (isPrimary) {
452-
if(passDCAxyCut) histos.fill(HIST("ptReconstructedTOFProton"), track.pt());
462+
if (passDCAxyCut)
463+
histos.fill(HIST("ptReconstructedTOFProton"), track.pt());
453464
histos.fill(HIST("DCAxy_TOF_primary_protons"), track.pt(), track.dcaXY());
454465
} else {
455466
if (isDecay) {
@@ -459,12 +470,12 @@ struct PtSpectraInclusiveUpc {
459470
}
460471
}
461472
} else {
462-
if(passDCAxyCut) histos.fill(HIST("ptDataTOFProton"), track.pt());
473+
if (passDCAxyCut)
474+
histos.fill(HIST("ptDataTOFProton"), track.pt());
463475
histos.fill(HIST("DCAxy_TOF_data_protons"), track.pt(), track.dcaXY());
464476
}
465477
}
466478
}
467-
468479
}
469480
}
470481
}

0 commit comments

Comments
 (0)