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
2 changes: 1 addition & 1 deletion PWGLF/Tasks/Nuspex/nucleiFromHypertritonMap.cxx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.

Check failure on line 1 in PWGLF/Tasks/Nuspex/nucleiFromHypertritonMap.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/workflow-file]

Name of a workflow file must match the name of the main struct in it (without the PWG prefix). (Class implementation files should be in "Core" directories.)
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
Expand Down Expand Up @@ -34,15 +34,15 @@
#include "ReconstructionDataFormats/PID.h"
#include "ReconstructionDataFormats/Track.h"

#include <TDatabasePDG.h>

Check failure on line 37 in PWGLF/Tasks/Nuspex/nucleiFromHypertritonMap.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/database]

Do not use TDatabasePDG directly. Use o2::constants::physics::Mass... or Service<o2::framework::O2DatabasePDG> instead.
#include <TMath.h>
#include <TPDGCode.h>
#include <TRandom.h>
#include <TVector2.h>
#include <TVector3.h>

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

using namespace std;
using namespace o2;
Expand Down Expand Up @@ -73,12 +73,12 @@
true};

// Track Parameters
Configurable<int> min_ITS_nClusters{"min_ITS_nClusters", 7, "minimum number of found ITS clusters"};

Check failure on line 76 in PWGLF/Tasks/Nuspex/nucleiFromHypertritonMap.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/configurable]

Use lowerCamelCase for names of configurables and use the same name for the struct member as for the JSON string. (Declare the type and names on the same line.)
Configurable<int> min_ITS_InnerBarrel_nClusters{"min_ITS_InnerBarrel_nClusters", 1, "minimum number of found ITS Inner Barrel clusters"};

Check failure on line 77 in PWGLF/Tasks/Nuspex/nucleiFromHypertritonMap.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/configurable]

Use lowerCamelCase for names of configurables and use the same name for the struct member as for the JSON string. (Declare the type and names on the same line.)
Configurable<int> max_ITS_InnerBarrel_nClusters{"max_ITS_InnerBarrel_nClusters", 3, "maximum number of found ITS Inner Barrel clusters"};

Check failure on line 78 in PWGLF/Tasks/Nuspex/nucleiFromHypertritonMap.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/configurable]

Use lowerCamelCase for names of configurables and use the same name for the struct member as for the JSON string. (Declare the type and names on the same line.)
Configurable<int> min_TPC_nClusters{"min_TPC_nClusters", 100, "minimum number of found TPC clusters"};

Check failure on line 79 in PWGLF/Tasks/Nuspex/nucleiFromHypertritonMap.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/configurable]

Use lowerCamelCase for names of configurables and use the same name for the struct member as for the JSON string. (Declare the type and names on the same line.)
Configurable<int> min_TPC_nCrossedRows{"min_TPC_nCrossedRows", 70, "minimum number of TPC crossed pad rows"};

Check failure on line 80 in PWGLF/Tasks/Nuspex/nucleiFromHypertritonMap.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/configurable]

Use lowerCamelCase for names of configurables and use the same name for the struct member as for the JSON string. (Declare the type and names on the same line.)
Configurable<float> max_chi2_TPC{"max_chi2_TPC", 4.0f, "maximum TPC chi^2/Ncls"};

Check failure on line 81 in PWGLF/Tasks/Nuspex/nucleiFromHypertritonMap.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/configurable]

Use lowerCamelCase for names of configurables and use the same name for the struct member as for the JSON string. (Declare the type and names on the same line.)
Configurable<float> min_chi2_TPC{"min_chi2_ITS", 0.5f, "minimum TPC chi^2/Ncls"};
Configurable<float> min_eta{"min_eta", -0.8f, "minimum_eta"};
Configurable<float> max_eta{"max_eta", +0.8f, "maximum_eta"};
Expand Down Expand Up @@ -234,13 +234,13 @@
track.itsNClsInnerBarrel() > max_ITS_InnerBarrel_nClusters ||
track.tpcNClsFound() < min_TPC_nClusters ||
track.tpcNClsCrossedRows() < min_TPC_nCrossedRows ||
track.tpcNClsCrossedRows() < 0.8 * track.tpcNClsFindable() ||

Check failure on line 237 in PWGLF/Tasks/Nuspex/nucleiFromHypertritonMap.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.tpcChi2NCl() > max_chi2_TPC ||
track.tpcChi2NCl() < min_chi2_TPC ||
track.eta() < min_eta || track.eta() > max_eta ||
dcaXY > max_dcaxy || dcaXY < -max_dcaxy ||
dcaZ > max_dcaz || dcaZ < -max_dcaz ||
track.itsChi2NCl() > 36.f) {

Check failure on line 243 in PWGLF/Tasks/Nuspex/nucleiFromHypertritonMap.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.
continue;
}

Expand Down
Loading