Skip to content
Merged
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 PWGJE/TableProducer/emcalClusterHadronicCorrectionTask.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 warning on line 1 in PWGJE/TableProducer/emcalClusterHadronicCorrectionTask.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Provide mandatory file documentation.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
Expand All @@ -8,12 +8,12 @@
// In applying this license CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.

Check warning on line 11 in PWGJE/TableProducer/emcalClusterHadronicCorrectionTask.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \file is missing, incorrect or misplaced.

Check warning on line 11 in PWGJE/TableProducer/emcalClusterHadronicCorrectionTask.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \brief is missing, incorrect or misplaced.

Check warning on line 11 in PWGJE/TableProducer/emcalClusterHadronicCorrectionTask.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \author is missing, incorrect or misplaced.
// **Hadronic Correction in the EMCAL framework: to avoid the double counting of the charged particles' contribution in jets**
/// \author Archita Rani Dash <archita.rani.dash@cern.ch>

#include <algorithm>
#include <iostream>

Check warning on line 16 in PWGJE/TableProducer/emcalClusterHadronicCorrectionTask.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[include-iostream]

Including iostream is discouraged. Use O2 logging instead.
#include <memory>
#include <unordered_map>
#include <cmath>
Expand Down Expand Up @@ -78,8 +78,8 @@
Configurable<double> fConstantSubtractionValue{"ConstantSubtractionValue", 0.236, "Value to be used for constant MIP subtraction (only applicable if using constant subtraction in M02 scheme)"};

// pT-dependent track-matching configurables
Configurable<float> Eta0{"eta0", 0.04, "Param 0 in eta for pt-dependent matching"};

Check warning on line 81 in PWGJE/TableProducer/emcalClusterHadronicCorrectionTask.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/function-variable]

Use lowerCamelCase for names of functions and variables.
Configurable<float> Eta1{"eta1", 0.010, "Param 1 in eta for pt-dependent matching"};

Check warning on line 82 in PWGJE/TableProducer/emcalClusterHadronicCorrectionTask.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/function-variable]

Use lowerCamelCase for names of functions and variables.
Configurable<float> Eta2{"eta2", 2.5, "Param 2 in eta for pt-dependent matching"};
Configurable<float> Phi0{"phi0", 0.09, "Param 0 in phi for pt-dependent matching"};
Configurable<float> Phi1{"phi1", 0.015, "Param 1 in phi for pt-dependent matching"};
Expand Down Expand Up @@ -180,7 +180,7 @@
// Total number of matched tracks = 20 (hard-coded)
for (const auto& match : tracksofcluster) {

double mom = abs(match.track_as<myTracks>().p());

Check warning on line 183 in PWGJE/TableProducer/emcalClusterHadronicCorrectionTask.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
registry.fill(HIST("h_matchedtracks"), 1);

// CASE 1: skip tracks with a very low pT
Expand All @@ -206,7 +206,7 @@
auto trackPhiHigh = +funcPtDepPhi.Eval(mom);
auto trackPhiLow = -funcPtDepPhi.Eval(mom);

if ((dPhi < trackPhiHigh && dPhi > trackPhiLow) && fabs(dEta) < trackEtaMax) {

Check warning on line 209 in PWGJE/TableProducer/emcalClusterHadronicCorrectionTask.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
if (Nmatches == 0) {
closestTrkP = mom;
}
Expand All @@ -215,7 +215,7 @@
}
} else {
// Do fixed dEta/dPhi matching (non-pT dependent)
if (fabs(dEta) >= minDEta || fabs(dPhi) >= minDPhi) {

Check warning on line 218 in PWGJE/TableProducer/emcalClusterHadronicCorrectionTask.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
continue; // Skip this track if outside the fixed cut region
}

Expand Down Expand Up @@ -287,7 +287,7 @@

// For M02 in the single photon region, the signal is primarily: Single photons, single electrons, single MIPs
if (m02 > 0.1 && m02 < 0.4) { // circular clusters(electron/photon)
Ecorr = 0; // Single electron, single MIP
Ecorr = 0; // Single electron, single MIP
} else if (m02 > 0.4) {
// Large M02 region (M02 > 0.4), more complex overlaps and hadronic showers.
// The signal is primarily: Single hadronic shower, photon-photon overlap, photon-MIP overlap, MIP-MIP overlap,
Expand Down
Loading