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
10 changes: 5 additions & 5 deletions PWGHF/HFL/Tasks/taskSingleElectron.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
/// \brief task for electrons from heavy-flavour hadron decays
/// \author Jonghan Park (Jeonbuk National University)

#include "PWGHF/vertexing/RecoDecay.h"

#include "Common/DataModel/EventSelection.h"
#include "Common/DataModel/PIDResponse.h"
#include "Common/DataModel/TrackSelectionTables.h"
Expand All @@ -21,8 +23,6 @@
#include "Framework/AnalysisTask.h"
#include "Framework/runDataProcessing.h"

#include "PWGHF/vertexing/RecoDecay.h"

using namespace o2;
using namespace o2::constants::math;
using namespace o2::framework;
Expand Down Expand Up @@ -58,7 +58,7 @@
using TracksEl = soa::Join<aod::Tracks, aod::TrackExtra, aod::TracksDCA, aod::pidTOFFullEl, aod::pidTPCFullEl>;

// Filter
Filter collZFilter = nabs(aod::collision::posZ) < 10.0f;

Check failure on line 61 in PWGHF/HFL/Tasks/taskSingleElectron.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.

// Partition

Expand Down Expand Up @@ -161,9 +161,9 @@
template <typename TrackType>
bool assoTrackSel(TrackType track)
{
float ptAssoTrackMin = 4.0f;
float ptAssoTrackMax = 6.0f;
int tpcNClsAssoTrackMin = 60;
float ptAssoTrackMin = 4.0f;
float ptAssoTrackMax = 6.0f;
int tpcNClsAssoTrackMin = 60;

if (std::abs(track.eta()) > etaTrackMax)
return false;
Expand Down Expand Up @@ -207,7 +207,7 @@
return;
histos.fill(HIST("hEventCounter"), 1.5);

if (collision.numContrib() < 2)

Check failure on line 210 in PWGHF/HFL/Tasks/taskSingleElectron.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;
histos.fill(HIST("hEventCounter"), 2.5);

Expand Down
Loading