Skip to content

Commit 2917414

Browse files
authored
Refactor conditional statements and parameter types
1 parent 5ceacf7 commit 2917414

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

PWGCF/EbyEFluctuations/Tasks/nchCumulantsId.cxx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
#include <CommonConstants/PhysicsConstants.h>
2626
// #include <Framework/ASoAHelpers.h>
2727
#include <Framework/AnalysisDataModel.h>
28-
#include <Framework/AnalysisHelpers.h>
28+
// #include <Framework/AnalysisHelpers.h>
2929
#include <Framework/AnalysisTask.h>
3030
#include <Framework/Configurable.h>
3131
#include <Framework/HistogramRegistry.h>
3232
#include <Framework/HistogramSpec.h>
3333
#include <Framework/InitContext.h>
34-
#include <Framework/O2DatabasePDGPlugin.h>
34+
// #include <Framework/O2DatabasePDGPlugin.h>
3535
#include <Framework/OutputObjHeader.h>
3636
#include <Framework/runDataProcessing.h>
3737

@@ -1122,8 +1122,9 @@ struct NchCumulantsId {
11221122
template <int pidMode, typename T>
11231123
bool idTPCTOF(const T& track, const int& pidCutType, const float& nSigmaTPC, const float& nSigmaTOF, const float& nSigmaSquaredRad)
11241124
{
1125-
if (cfgId01CheckVetoCut && !vetoIdOthersTPCTOF<pidMode>(track))
1125+
if (cfgId01CheckVetoCut && !vetoIdOthersTPCTOF<pidMode>(track)) {
11261126
return false;
1127+
}
11271128
if (pidCutType == kRectangularCut) {
11281129
return selIdRectangularCut<pidMode>(track, nSigmaTPC, nSigmaTOF);
11291130
} else if (pidCutType == kCircularCut) {
@@ -1283,7 +1284,7 @@ struct NchCumulantsId {
12831284
}
12841285

12851286
template <int mode, typename T>
1286-
void fillCollQA(const T& coll, const int& nCh, const int& nT)
1287+
void fillCollQA(const T& coll, const float& nCh, const float& nT)
12871288
{
12881289
hist.fill(HIST(HistRegDire[mode]) + HIST("h_VtxZ"), coll.posZ());
12891290
hist.fill(HIST(HistRegDire[mode]) + HIST("h_Counts"), 0.5);
@@ -1395,8 +1396,9 @@ struct NchCumulantsId {
13951396
const int& idMethodKa, const bool& trackIsKaon, float& nAKa, float& nKa,
13961397
const int& idMethodPr, const bool& trackIsProton, float& nPr, float& nAPr, H& hReg)
13971398
{
1398-
if (cfgEventSelection.flagUnusedVariableError)
1399+
if (cfgEventSelection.flagUnusedVariableError) {
13991400
LOG(info) << trackIdTag << idMethodPi << ":" << idMethodKa << ":" << idMethodPr;
1401+
}
14001402
if (track.sign() > 0) {
14011403
// fillRecoTrackQA<kPos>(hReg, track);
14021404
nP++;
@@ -2063,8 +2065,9 @@ struct NchCumulantsId {
20632065
continue;
20642066
}
20652067
auto mcPart = track.mcParticle();
2066-
if (!mcPart.isPhysicalPrimary())
2068+
if (!mcPart.isPhysicalPrimary()) {
20672069
continue;
2070+
}
20682071
int pdg = mcPart.pdgCode();
20692072

20702073
int mcTag = getMCTag(track);

0 commit comments

Comments
 (0)