Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 15 additions & 14 deletions PWGCF/EbyEFluctuations/Tasks/meanPtFlucId.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -442,11 +442,11 @@
template <typename T>
bool rejectTracks(T const& track)
{
if (((track.tpcNSigmaEl()) > -3. &&

Check failure on line 445 in PWGCF/EbyEFluctuations/Tasks/meanPtFlucId.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
(track.tpcNSigmaEl()) < 5.) &&

Check failure on line 446 in PWGCF/EbyEFluctuations/Tasks/meanPtFlucId.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
(std::fabs(track.tpcNSigmaPi()) > 3 &&

Check failure on line 447 in PWGCF/EbyEFluctuations/Tasks/meanPtFlucId.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
std::fabs(track.tpcNSigmaKa()) > 3 &&

Check failure on line 448 in PWGCF/EbyEFluctuations/Tasks/meanPtFlucId.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
std::fabs(track.tpcNSigmaPr()) > 3)) {

Check failure on line 449 in PWGCF/EbyEFluctuations/Tasks/meanPtFlucId.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
return true;
}

Expand Down Expand Up @@ -612,7 +612,7 @@
float phi = track.phi();
float weight = getCorrectedWeight(hWeightPt, hPurePt, pt, cfgWeightPtId, cfgPurityId);

if (std::abs(weight) < 1e-6)

Check failure on line 615 in PWGCF/EbyEFluctuations/Tasks/meanPtFlucId.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
return;

NW += weight;
Expand Down Expand Up @@ -780,7 +780,7 @@
// Charged particles:
wghtCh = getCorrectedWeight(hWeightPt, hPurePt, pt, cfgWeightPtCh, false);

if (std::abs(wghtCh) < 1e-6)

Check failure on line 783 in PWGCF/EbyEFluctuations/Tasks/meanPtFlucId.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
return;

nChW += wghtCh;
Expand Down Expand Up @@ -875,11 +875,11 @@
pt = mcPart.pt();
eta = mcPart.eta();
phi = mcPart.phi();
if (std::abs(eta) < 0.8) {

Check failure on line 878 in PWGCF/EbyEFluctuations/Tasks/meanPtFlucId.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
nSim++;
}

if (pt >= cfgCutPtMin && pt < cfgCutPtMax && std::abs(eta) < 0.8) {

Check failure on line 882 in PWGCF/EbyEFluctuations/Tasks/meanPtFlucId.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
nChSim++;
moments(pt, 1.0, q1ChSim, q2ChSim);
hist.fill(HIST("Gen/Charged/h_PtTruth"), pt);
Expand Down Expand Up @@ -997,26 +997,27 @@
///
/// \author Tanu Gahlaut <tanu.gahlaut@cern.ch>

#include <utility>
#include <vector>
#include <string>
#include <TPDGCode.h>
#include "Common/Core/RecoDecay.h"
#include "Common/DataModel/Centrality.h"
#include "Common/DataModel/EventSelection.h"
#include "Common/DataModel/Multiplicity.h"
#include "Common/DataModel/PIDResponse.h"
#include "Common/DataModel/TrackSelectionTables.h"

#include "Framework/runDataProcessing.h"
#include "Framework/AnalysisTask.h"
#include "Framework/AnalysisDataModel.h"
#include "CCDB/BasicCCDBManager.h"
#include "Framework/ASoAHelpers.h"
#include "Framework/AnalysisDataModel.h"
#include "Framework/AnalysisTask.h"
#include "Framework/HistogramRegistry.h"
#include "Framework/HistogramSpec.h"
#include "Framework/O2DatabasePDGPlugin.h"
#include "Framework/runDataProcessing.h"

#include "Common/DataModel/TrackSelectionTables.h"
#include "Common/DataModel/EventSelection.h"
#include "Common/DataModel/PIDResponse.h"
#include "Common/DataModel/Multiplicity.h"
#include "Common/DataModel/Centrality.h"
#include "Common/Core/RecoDecay.h"
#include "CCDB/BasicCCDBManager.h"
#include <TPDGCode.h>

#include <string>
#include <utility>
#include <vector>

using namespace o2;
using namespace o2::framework;
Expand Down Expand Up @@ -1423,7 +1424,7 @@
template <typename T>
bool rejectTracks(T const& track)
{
if (((track.tpcNSigmaEl()) > -3. &&

Check failure on line 1427 in PWGCF/EbyEFluctuations/Tasks/meanPtFlucId.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
(track.tpcNSigmaEl()) < 5.) &&
(std::fabs(track.tpcNSigmaPi()) > 3 &&
std::fabs(track.tpcNSigmaKa()) > 3 &&
Expand Down
Loading