Skip to content

Commit cd2d1a2

Browse files
authored
Merge branch 'AliceO2Group:master' into main
2 parents 063d268 + 5a8d6d3 commit cd2d1a2

File tree

58 files changed

+2995
-1414
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+2995
-1414
lines changed

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
/PWGLF/TableProducer/Resonances @alibuild @sustripathy @skundu692 @dmallick2 @smaff92
5151
/PWGLF/Tasks/Strangeness @alibuild @sustripathy @skundu692 @ercolessi @romainschotter
5252
/PWGLF/TableProducer/Strangeness @alibuild @sustripathy @skundu692 @ercolessi @romainschotter
53+
/PWGLF/Utils @alibuild @sustripathy @skundu692 @gbencedi @abmodak @fmazzasc @maciacco @dmallick2 @smaff92 @ercolessi @romainschotter
5354

5455
# PWG-MM
5556
/PWGMM @alibuild @sustripathy @skundu692 @aalkin @jgcn

Common/Core/RecoDecay.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ struct RecoDecay {
732732
if (!arrDaughters[iProng].has_mcParticle()) {
733733
return -1;
734734
}
735-
auto particleI = arrDaughters[iProng].mcParticle(); // ith daughter particle
735+
auto particleI = arrDaughters[iProng].template mcParticle_as<T>(); // ith daughter particle
736736
if (std::abs(particleI.getGenStatusCode()) == StatusCodeAfterFlavourOscillation) { // oscillation decay product spotted
737737
coefFlavourOscillation = -1; // select the sign of the mother after oscillation (and not before)
738738
break;
@@ -744,7 +744,7 @@ struct RecoDecay {
744744
if (!arrDaughters[iProng].has_mcParticle()) {
745745
return -1;
746746
}
747-
auto particleI = arrDaughters[iProng].mcParticle(); // ith daughter particle
747+
auto particleI = arrDaughters[iProng].template mcParticle_as<T>(); // ith daughter particle
748748
if constexpr (acceptTrackDecay) {
749749
// Replace the MC particle associated with the prong by its mother for π → μ and K → π.
750750
auto motherI = particleI.template mothers_first_as<T>();

Common/Core/TableHelper.cxx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717

1818
#include "Common/Core/TableHelper.h"
1919

20-
#include <string>
21-
2220
#include "Framework/InitContext.h"
2321
#include "Framework/RunningWorkflowInfo.h"
2422

23+
#include <string>
24+
2525
/// Function to print the table required in the full workflow
2626
/// @param initContext initContext of the init function
27-
void printTablesInWorkflow(o2::framework::InitContext& initContext)
27+
void o2::common::core::printTablesInWorkflow(o2::framework::InitContext& initContext)
2828
{
2929
auto& workflows = initContext.services().get<o2::framework::RunningWorkflowInfo const>();
3030
for (auto const& device : workflows.devices) {
@@ -37,7 +37,7 @@ void printTablesInWorkflow(o2::framework::InitContext& initContext)
3737
/// Function to check if a table is required in a workflow
3838
/// @param initContext initContext of the init function
3939
/// @param table name of the table to check for
40-
bool isTableRequiredInWorkflow(o2::framework::InitContext& initContext, const std::string& table)
40+
bool o2::common::core::isTableRequiredInWorkflow(o2::framework::InitContext& initContext, const std::string& table)
4141
{
4242
LOG(debug) << "Checking if table " << table << " is needed";
4343
bool tableNeeded = false;
@@ -57,7 +57,7 @@ bool isTableRequiredInWorkflow(o2::framework::InitContext& initContext, const st
5757
/// @param initContext initContext of the init function
5858
/// @param table name of the table to check for
5959
/// @param flag bool value of flag to set, if the given value is true it will be kept, disregarding the table usage in the workflow.
60-
void enableFlagIfTableRequired(o2::framework::InitContext& initContext, const std::string& table, bool& flag)
60+
void o2::common::core::enableFlagIfTableRequired(o2::framework::InitContext& initContext, const std::string& table, bool& flag)
6161
{
6262
if (flag) {
6363
LOG(info) << "Table enabled: " + table;
@@ -75,7 +75,7 @@ void enableFlagIfTableRequired(o2::framework::InitContext& initContext, const st
7575
/// @param initContext initContext of the init function
7676
/// @param table name of the table to check for
7777
/// @param flag int value of flag to set, only if initially set to -1. Initial values of 0 or 1 will be kept disregarding the table usage in the workflow.
78-
void enableFlagIfTableRequired(o2::framework::InitContext& initContext, const std::string& table, int& flag)
78+
void o2::common::core::enableFlagIfTableRequired(o2::framework::InitContext& initContext, const std::string& table, int& flag)
7979
{
8080
if (flag > 0) {
8181
flag = 1;

Common/Core/TableHelper.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424

2525
#include <string>
2626

27+
namespace o2::common::core
28+
{
29+
2730
/// Function to print the table required in the full workflow
2831
/// @param initContext initContext of the init function
2932
void printTablesInWorkflow(o2::framework::InitContext& initContext);
@@ -109,4 +112,11 @@ bool getTaskOptionValue(o2::framework::InitContext& initContext, const std::stri
109112
return getTaskOptionValue(initContext, taskName, configurable.name, configurable.value, verbose);
110113
}
111114

115+
} // namespace o2::common::core
116+
117+
using o2::common::core::enableFlagIfTableRequired;
118+
using o2::common::core::getTaskOptionValue;
119+
using o2::common::core::isTableRequiredInWorkflow;
120+
using o2::common::core::printTablesInWorkflow;
121+
112122
#endif // COMMON_CORE_TABLEHELPER_H_

Common/Tasks/centralityStudy.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ struct centralityStudy {
327327
histos.fill(HIST("hCollisionSelection"), 15 /* pass em/upc rejection */);
328328

329329
// if we got here, we also finally fill the FT0C histogram, please
330-
histos.fill(HIST("hNPVContributors"), collision.multPVTotalContributors());
330+
histos.fill(HIST("hNPVContributors"), collision.multNTracksPV());
331331
histos.fill(HIST("hFT0C_Collisions"), collision.multFT0C() * scaleSignalFT0C);
332332
histos.fill(HIST("hFT0M_Collisions"), (collision.multFT0A() + collision.multFT0C()) * scaleSignalFT0M);
333333
histos.fill(HIST("hFV0A_Collisions"), collision.multFV0A() * scaleSignalFV0A);

0 commit comments

Comments
 (0)