Skip to content

Commit d7b7489

Browse files
committed
clang format
1 parent b9ae968 commit d7b7489

1 file changed

Lines changed: 16 additions & 21 deletions

File tree

PWGDQ/Tasks/DalitzSelection.cxx

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ using namespace o2::framework::expressions;
6161
using namespace o2::aod;
6262
using namespace o2::soa;
6363

64-
6564
// using MyEvents = soa::Join<aod::Collisions, aod::EvSels>
6665
using MyEventsWithCent = soa::Join<aod::Collisions, aod::EvSels, aod::CentFT0Cs, aod::CentFT0As, aod::CentFT0Ms>;
6766

@@ -72,8 +71,8 @@ using MyBarrelTracks = soa::Join<aod::Tracks, aod::TracksExtra, aod::TracksDCA,
7271
aod::pidTOFFullKa, aod::pidTOFFullPr, aod::pidTOFbeta>;
7372

7473
using MyBarrelTracksNoTOF = soa::Join<aod::Tracks, aod::TracksExtra, aod::TracksDCA,
75-
aod::pidTPCFullEl, aod::pidTPCFullPi, aod::pidTPCFullMu,
76-
aod::pidTPCFullKa, aod::pidTPCFullPr>;
74+
aod::pidTPCFullEl, aod::pidTPCFullPi, aod::pidTPCFullMu,
75+
aod::pidTPCFullKa, aod::pidTPCFullPr>;
7776

7877
// constexpr static uint32_t EventFillMap = VarManager::ObjTypes::Collision;
7978
constexpr static uint32_t EventFillMapWithCent = VarManager::ObjTypes::Collision | VarManager::ObjTypes::CollisionCent;
@@ -312,7 +311,7 @@ struct DalitzSelection {
312311

313312
VarManager::SetUseVars(fHistMan->GetUsedVars()); // provide the list of required variables so that VarManager knows what to fill
314313
fOutputList.setObject(fHistMan->GetMainHistogramList());
315-
314+
316315
// autodetect whether the dalitz bits are requested
317316
fIsOutputRequested = false;
318317
auto& workflows = context.services().template get<o2::framework::RunningWorkflowInfo const>();
@@ -329,7 +328,7 @@ struct DalitzSelection {
329328
}
330329
}
331330
}
332-
}
331+
}
333332
}
334333

335334
template <bool isReassoc, uint32_t TTrackFillMap, typename TFullTracks, typename TTracks, typename TEvent>
@@ -406,16 +405,15 @@ struct DalitzSelection {
406405
auto const& fullTrack1 = track1.template track_as<TFullTracks>();
407406
trackIdx1 = fullTrack1.globalIndex();
408407
isTrack1P = fullTrack1.sign() > 0;
409-
}
410-
else {
408+
} else {
411409
trackIdx1 = track1.globalIndex();
412410
isTrack1P = track1.sign() > 0;
413411
}
414-
412+
415413
if (!fTrackmap[trackIdx1]) {
416414
continue;
417415
}
418-
416+
419417
for (const auto& track2 : tracks2) {
420418
int trackIdx2;
421419
bool isLikeSign;
@@ -427,7 +425,7 @@ struct DalitzSelection {
427425
trackIdx2 = track2.globalIndex();
428426
isLikeSign = (isTrack1P && (track2.sign() > 0)) || (!isTrack1P && (track2.sign() < 0));
429427
}
430-
428+
431429
if (trackIdx1 == trackIdx2) {
432430
continue;
433431
}
@@ -442,7 +440,7 @@ struct DalitzSelection {
442440
if (!twoTracksFilterMap) {
443441
continue;
444442
}
445-
443+
446444
// pairing
447445
if constexpr (isReassoc) {
448446
auto const& fullTrack1 = track1.template track_as<TFullTracks>();
@@ -479,25 +477,22 @@ struct DalitzSelection {
479477
if (isReassoc & fConfigOptions.fRemoveDoubleCounting) {
480478
// if we want to remove double-counting, we fill separately the map for this event and for previous ones, in order to check if it was previously selected
481479
fDalitzmapAmbiguity[trackIdx1] |= (uint8_t(1) << icut);
482-
}
483-
else {
480+
} else {
484481
fDalitzmap[trackIdx1] |= (uint8_t(1) << icut);
485482
}
486483
if (fIsTagAndProbe) {
487484
if (isReassoc & fConfigOptions.fRemoveDoubleCounting) {
488485
fDalitzmapProbeAmbiguity[trackIdx1] |= (uint8_t(1) << icut);
489-
}
490-
else {
486+
} else {
491487
fDalitzmapProbe[trackIdx2] |= (uint8_t(1) << icut);
492488
}
493489
if (fConfigOptions.fQA && !isPairAlreadySelected) {
494490
fHistMan->FillHistClass(Form("Pair_%s_%s_%s", (*trackCut).GetName(), fTrackCutsProbe.at(icut).GetName(), (*pairCut).GetName()), VarManager::fgValues);
495491
}
496-
} else {
492+
} else {
497493
if (isReassoc & fConfigOptions.fRemoveDoubleCounting) {
498494
fDalitzmapAmbiguity[trackIdx1] |= (uint8_t(1) << icut);
499-
}
500-
else {
495+
} else {
501496
fDalitzmap[trackIdx2] |= (uint8_t(1) << icut);
502497
}
503498
if (fConfigOptions.fQA && !isPairAlreadySelected) {
@@ -510,8 +505,8 @@ struct DalitzSelection {
510505
}
511506
} // end if like-sign
512507
} // end if isSelected
513-
} // end cut loop
514-
}
508+
} // end cut loop
509+
}
515510
} // end of tracksP,N loop
516511

517512
// Fill Hists
@@ -682,7 +677,7 @@ struct DalitzSelection {
682677
}
683678
}
684679
}
685-
680+
686681
void processFullTracksWithAssocNoTOF(MyEventsWithCent const& collisions, aod::BCsWithTimestamps const&, MyBarrelTracksNoTOF const& tracks, TrackAssoc const& trackAssocs)
687682
{
688683

0 commit comments

Comments
 (0)