Skip to content

Commit

Permalink
Merge pull request #8 from alibuild/alibot-cleanup-6705
Browse files Browse the repository at this point in the history
Please consider the following formatting changes to AliceO2Group#6705
  • Loading branch information
cnkoster authored Jul 1, 2024
2 parents 525012d + fd482dc commit 09662ad
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions PWGCF/Flow/Tasks/flowAnalysisGF.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -313,15 +313,15 @@ struct flowAnalysisGF {
}
}
}

static constexpr std::string_view moment[] = {
"before/",
"after/"};

enum QAtime {
kBefore,
kAfter
};
kBefore,
kAfter
};

void AddConfigObjectsToObjArray(TObjArray* oba, const std::vector<GFW::CorrConfig>& configs)
{
Expand Down Expand Up @@ -565,7 +565,8 @@ struct flowAnalysisGF {
float weff = 1, wacc = 1;

auto handleReco = [&](auto const& particle) -> bool {
if (cfgFillQA) FillTrackQA<kBefore>(track, vtxz);
if (cfgFillQA)
FillTrackQA<kBefore>(track, vtxz);

if (cfgUseAdditionalTrackCut && !trackSelected(track, field))
return false;
Expand All @@ -576,8 +577,8 @@ struct flowAnalysisGF {
if (!setCurrentParticleWeights(weff, wacc, particle.phi(), particle.eta(), particle.pt(), vtxz))
return false;

if (cfgFillQA) FillTrackQA<kAfter>(track, vtxz);

if (cfgFillQA)
FillTrackQA<kAfter>(track, vtxz);

FillGFW(particle, weff, wacc);

Expand Down Expand Up @@ -634,7 +635,7 @@ struct flowAnalysisGF {
template <QAtime qt, typename TrackObject>
inline void FillTrackQA(TrackObject track, const float vtxz)
{

if constexpr (framework::has_type_v<aod::mcparticle::McCollisionId, typename TrackObject::all_columns>) {
registry.fill(HIST("phi_eta_vtxZ_gen"), track.phi(), track.eta(), vtxz);
registry.fill(HIST("pt_gen"), track.pt());
Expand Down Expand Up @@ -685,7 +686,8 @@ struct flowAnalysisGF {
registry.fill(HIST("hEventCount"), 1.5);
centrality = collision.centFT0C();

if (cfgFillQA) FillEventQA<kBefore>(collision, tracks);
if (cfgFillQA)
FillEventQA<kBefore>(collision, tracks);
}

if (cfgDoOccupancySel) {
Expand All @@ -698,8 +700,9 @@ struct flowAnalysisGF {
auto bc = collision.template bc_as<aod::BCsWithTimestamps>();
if (cfgUseAdditionalEventCut && !eventSelected(collision, tracks.size(), centrality))
return;
if (cfgFillQA) FillEventQA<kAfter>(collision, tracks);

if (cfgFillQA)
FillEventQA<kAfter>(collision, tracks);

loadCorrections(bc.timestamp());
auto field = (cfgMagField == 99999) ? getMagneticField(bc.timestamp()) : cfgMagField;
processCollision(kReco, collision, tracks, centrality, field);
Expand Down

0 comments on commit 09662ad

Please sign in to comment.