Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Common] Update message in centrality #9519

Merged
merged 3 commits into from
Jan 27, 2025
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
4 changes: 2 additions & 2 deletions Common/TableProducer/centralityTable.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 Common/TableProducer/centralityTable.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 @@ -10,7 +10,7 @@
// or submit itself to any jurisdiction.

/// \file centrality.cxx
/// \brief Task to produce the centrality tables associated to each of the required centrality estimators

Check warning on line 13 in Common/TableProducer/centralityTable.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 13 in Common/TableProducer/centralityTable.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \author is missing, incorrect or misplaced.

#include <CCDB/BasicCCDBManager.h>
#include <TH1F.h>
Expand Down Expand Up @@ -162,11 +162,11 @@
return true;
}
};
calibrationInfo FV0AInfo = calibrationInfo("FV0");

Check warning on line 165 in Common/TableProducer/centralityTable.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/function-variable]

Use lowerCamelCase for names of functions and variables.
calibrationInfo FT0MInfo = calibrationInfo("FT0");

Check warning on line 166 in Common/TableProducer/centralityTable.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/function-variable]

Use lowerCamelCase for names of functions and variables.
calibrationInfo FT0AInfo = calibrationInfo("FT0A");

Check warning on line 167 in Common/TableProducer/centralityTable.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/function-variable]

Use lowerCamelCase for names of functions and variables.
calibrationInfo FT0CInfo = calibrationInfo("FT0C");

Check warning on line 168 in Common/TableProducer/centralityTable.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/function-variable]

Use lowerCamelCase for names of functions and variables.
calibrationInfo FDDMInfo = calibrationInfo("FDD");

Check warning on line 169 in Common/TableProducer/centralityTable.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/function-variable]

Use lowerCamelCase for names of functions and variables.
calibrationInfo NTPVInfo = calibrationInfo("NTracksPV");
calibrationInfo NGlobalInfo = calibrationInfo("NGlobal");
calibrationInfo MFTInfo = calibrationInfo("MFT");
Expand Down Expand Up @@ -197,11 +197,11 @@
if (f == 1) {
if (tableNames[i].find("Run2") != std::string::npos) {
if (doprocessRun3) {
LOGF(fatal, "Cannot enable Run2 tables in Run3 mode. Please check and disable them.");
LOG(fatal) << "Cannot enable Run2 table `" << tableNames[i] << "` while running in Run3 mode. Please check and disable them.";
}
} else {
if (doprocessRun2) {
LOGF(fatal, "Cannot enable Run3 tables in Run2 mode. Please check and disable them.");
LOG(fatal) << "Cannot enable Run3 table `" << tableNames[i] << "` while running in Run2 mode. Please check and disable them.";
}
}
isTableEnabled[i] = true;
Expand Down Expand Up @@ -371,7 +371,7 @@
}

auto scaleMC = [](float x, float pars[6]) {
return pow(((pars[0] + pars[1] * pow(x, pars[2])) - pars[3]) / pars[4], 1.0f / pars[5]);

Check warning on line 374 in Common/TableProducer/centralityTable.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
};

if (isTableEnabled[kCentRun2V0Ms]) {
Expand Down Expand Up @@ -601,7 +601,7 @@
auto populateTable = [&](auto& table, struct calibrationInfo& estimator, float multiplicity) {
const bool assignOutOfRange = embedINELgtZEROselection && !collision.isInelGt0();
auto scaleMC = [](float x, float pars[6]) {
return pow(((pars[0] + pars[1] * pow(x, pars[2])) - pars[3]) / pars[4], 1.0f / pars[5]);

Check warning on line 604 in Common/TableProducer/centralityTable.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
};

float percentile = 105.0f;
Expand Down
Loading