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
6 changes: 3 additions & 3 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 @@ -60,7 +60,7 @@
"CentFT0Cs",
"CentFDDMs",
"CentNTPVs",
"CentNGlobals",
"CentNGlobals",
"CentMFTs"};
static const std::vector<std::string> parameterNames{"Enable"};
static const int defaultParameters[nTables][nParameters]{{-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}};
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 @@ -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 @@ -446,7 +446,7 @@
bool enableCentFT0 = true,
bool enableCentFDD = true,
bool enableCentNTPV = true,
bool enableCentNGlobal = false,
bool enableCentNGlobal = false,
bool enableCentMFT = false,
typename CollisionType>
void produceRun3Tables(CollisionType const& collisions)
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 Expand Up @@ -702,7 +702,7 @@

void processRun3Complete(soa::Join<aod::Collisions, aod::PVMults, aod::MultZeqs, aod::EvSels, aod::MultsGlobal, aod::MFTMults> const& collisions, BCsWithTimestamps const&)
{
produceRun3Tables<true,true,true,true,true,true>(collisions);
produceRun3Tables<true, true, true, true, true, true>(collisions);
}

void processRun3(soa::Join<aod::Collisions, aod::PVMults, aod::MultZeqs, aod::EvSels> const& collisions, BCsWithTimestamps const&)
Expand Down
Loading