Skip to content

Commit

Permalink
Please consider the following formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alibuild committed Feb 11, 2025
1 parent 911449c commit 5d12768
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
3 changes: 2 additions & 1 deletion PWGCF/JCorran/Core/FlowJHistManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ class FlowJHistManager
break;
}

if (mDebugLog) LOGF(info, "The EventQA has been filled.");
if (mDebugLog)
LOGF(info, "The EventQA has been filled.");
}

/// \brief Hardcode the cBin for FillThisTrackQA if not constant.
Expand Down
1 change: 0 additions & 1 deletion PWGCF/JCorran/Core/FlowJSPCAnalysis.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ void FlowJSPCAnalysis::FillQAHistograms(const Int_t fCentBin, Double_t phi, Doub
}
}


void FlowJSPCAnalysis::Correlation(Int_t c_nPart, Int_t c_nHarmo, Int_t* harmo, Double_t* correlData)
{
// Calculate the correlators for the provided set of harmonics using Q-vectors.
Expand Down
10 changes: 3 additions & 7 deletions PWGCF/JCorran/Tasks/flowJSPCAnalysis.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#include "Common/Core/TrackSelection.h"
#include "Common/DataModel/TrackSelectionTables.h"


#include "PWGCF/DataModel/CorrelationsDerived.h"
#include "PWGCF/JCorran/DataModel/JCatalyst.h"
#include "PWGCF/JCorran/Core/FlowJSPCAnalysis.h"
Expand Down Expand Up @@ -112,7 +111,7 @@ struct flowJSPCAnalysis {

template <class CollisionT, class TrackT>
void analyze(CollisionT const& collision, TrackT const& tracks)
// void process(soa::Filtered<MyCollisions>::iterator const& coll, soa::Filtered<soa::Join<aod::MyTracks, aod::JWeights>> const& tracks)
// void process(soa::Filtered<MyCollisions>::iterator const& coll, soa::Filtered<soa::Join<aod::MyTracks, aod::JWeights>> const& tracks)
{
if (tracks.size() < cfgEventCuts.cfgMultMin)
return;
Expand All @@ -125,12 +124,12 @@ struct flowJSPCAnalysis {
SPCHistograms.fill(HIST("FullCentrality"), cent);
int nTracks = tracks.size();
for (auto& track : tracks) {
if (cfgFillQA){
if (cfgFillQA) {
// histManager.FillTrackQA<0>(track, cBin, collision.posZ());

using JInputClassIter = typename TrackT::iterator;
if constexpr (std::experimental::is_detected<hasWeightNUA, const JInputClassIter>::value) {
spcAnalysis.FillQAHistograms(cBin, track.phi(), 1./track.weightNUA());
spcAnalysis.FillQAHistograms(cBin, track.phi(), 1. / track.weightNUA());
}
}
}
Expand All @@ -143,7 +142,6 @@ struct flowJSPCAnalysis {
spcAnalysis.CalculateCorrelators(cBin);
}


void processJDerived(aod::JCollision const& collision, soa::Filtered<aod::JTracks> const& tracks)
{
analyze(collision, tracks);
Expand All @@ -169,8 +167,6 @@ struct flowJSPCAnalysis {
PROCESS_SWITCH(flowJSPCAnalysis, processCFDerivedCorrected, "Process CF derived data with corrections", true);
};



WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
{
return WorkflowSpec{
Expand Down
8 changes: 4 additions & 4 deletions PWGCF/JCorran/Tasks/jflucWeightsLoader.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ struct jflucWeightsLoader {
}
}

void initCCDB(int runNum, int ts) {
void initCCDB(int runNum, int ts)
{
if (cfgForRunNumber) {
ph = ccdb->getForRun<THnF>(cfgCCDBPath, runNum);
} else
ph = ccdb->getForTimeStamp<THnF>(cfgCCDBPath,ts);
ph = ccdb->getForTimeStamp<THnF>(cfgCCDBPath, ts);
}


void init(InitContext const&)
{
if (!doprocessLoadWeights && !doprocessLoadWeightsCF) {
Expand All @@ -94,7 +94,7 @@ struct jflucWeightsLoader {
pf = 0;
LOGF(fatal, "NUA correction weights file not found: %s", cfgPathPhiWeights.value.substr(8).c_str());
}
useCCDB=false;
useCCDB = false;
} else {
LOGF(info, "Didn't find \"local://\" or \"ccdb\"");
return;
Expand Down

0 comments on commit 5d12768

Please sign in to comment.