Skip to content

Commit cf3f75d

Browse files
authored
Merge pull request #12 from alibuild/alibot-cleanup-9868
[PWGCF] Please consider the following formatting changes to AliceO2Group#9868
2 parents 911449c + 5d12768 commit cf3f75d

4 files changed

Lines changed: 9 additions & 13 deletions

File tree

PWGCF/JCorran/Core/FlowJHistManager.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ class FlowJHistManager
161161
break;
162162
}
163163

164-
if (mDebugLog) LOGF(info, "The EventQA has been filled.");
164+
if (mDebugLog)
165+
LOGF(info, "The EventQA has been filled.");
165166
}
166167

167168
/// \brief Hardcode the cBin for FillThisTrackQA if not constant.

PWGCF/JCorran/Core/FlowJSPCAnalysis.cxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ void FlowJSPCAnalysis::FillQAHistograms(const Int_t fCentBin, Double_t phi, Doub
232232
}
233233
}
234234

235-
236235
void FlowJSPCAnalysis::Correlation(Int_t c_nPart, Int_t c_nHarmo, Int_t* harmo, Double_t* correlData)
237236
{
238237
// Calculate the correlators for the provided set of harmonics using Q-vectors.

PWGCF/JCorran/Tasks/flowJSPCAnalysis.cxx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
#include "Common/Core/TrackSelection.h"
3636
#include "Common/DataModel/TrackSelectionTables.h"
3737

38-
3938
#include "PWGCF/DataModel/CorrelationsDerived.h"
4039
#include "PWGCF/JCorran/DataModel/JCatalyst.h"
4140
#include "PWGCF/JCorran/Core/FlowJSPCAnalysis.h"
@@ -112,7 +111,7 @@ struct flowJSPCAnalysis {
112111

113112
template <class CollisionT, class TrackT>
114113
void analyze(CollisionT const& collision, TrackT const& tracks)
115-
// void process(soa::Filtered<MyCollisions>::iterator const& coll, soa::Filtered<soa::Join<aod::MyTracks, aod::JWeights>> const& tracks)
114+
// void process(soa::Filtered<MyCollisions>::iterator const& coll, soa::Filtered<soa::Join<aod::MyTracks, aod::JWeights>> const& tracks)
116115
{
117116
if (tracks.size() < cfgEventCuts.cfgMultMin)
118117
return;
@@ -125,12 +124,12 @@ struct flowJSPCAnalysis {
125124
SPCHistograms.fill(HIST("FullCentrality"), cent);
126125
int nTracks = tracks.size();
127126
for (auto& track : tracks) {
128-
if (cfgFillQA){
127+
if (cfgFillQA) {
129128
// histManager.FillTrackQA<0>(track, cBin, collision.posZ());
130129

131130
using JInputClassIter = typename TrackT::iterator;
132131
if constexpr (std::experimental::is_detected<hasWeightNUA, const JInputClassIter>::value) {
133-
spcAnalysis.FillQAHistograms(cBin, track.phi(), 1./track.weightNUA());
132+
spcAnalysis.FillQAHistograms(cBin, track.phi(), 1. / track.weightNUA());
134133
}
135134
}
136135
}
@@ -143,7 +142,6 @@ struct flowJSPCAnalysis {
143142
spcAnalysis.CalculateCorrelators(cBin);
144143
}
145144

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

172-
173-
174170
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
175171
{
176172
return WorkflowSpec{

PWGCF/JCorran/Tasks/jflucWeightsLoader.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ struct jflucWeightsLoader {
6363
}
6464
}
6565

66-
void initCCDB(int runNum, int ts) {
66+
void initCCDB(int runNum, int ts)
67+
{
6768
if (cfgForRunNumber) {
6869
ph = ccdb->getForRun<THnF>(cfgCCDBPath, runNum);
6970
} else
70-
ph = ccdb->getForTimeStamp<THnF>(cfgCCDBPath,ts);
71+
ph = ccdb->getForTimeStamp<THnF>(cfgCCDBPath, ts);
7172
}
7273

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

0 commit comments

Comments
 (0)