Skip to content

Commit d5d72af

Browse files
author
Nicolas Strangmann
committed
Make new parts O2Linter complient
1 parent e238fe8 commit d5d72af

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

PWGMM/Lumi/Tasks/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ o2physics_add_dpl_workflow(lumistab
4141
O2::ReconstructionDataFormats
4242
COMPONENT_NAME Analysis)
4343

44-
o2physics_add_dpl_workflow(lumistablightions
44+
o2physics_add_dpl_workflow(lumi-stability-light-ions
4545
SOURCES lumiStabilityLightIons.cxx
4646
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCCDB O2Physics::AnalysisCore
4747
COMPONENT_NAME Analysis)

PWGMM/Lumi/Tasks/lumiStabilityLightIons.cxx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ o2::common::core::MetadataHelper metadataInfo; // Metadata helper
3838

3939
using MyBCs = soa::Join<aod::BCs, aod::BcSels, aod::Timestamps, aod::Run3MatchedToBCSparse>;
4040

41-
struct lumiStabilityLightIons {
41+
struct LumiStabilityLightIons {
4242
Configurable<bool> cfgRequireGoodRCTQuality{"cfgRequireGoodRCTQuality", false, "Only store BCs with good quality of FT0 in RCT"};
4343
Configurable<bool> cfgDoFT0Vtx{"cfgDoFT0Vtx", true, "Create and fill histograms for the FT0 vertex trigger"};
4444
Configurable<bool> cfgDoFT0CE{"cfgDoFT0CE", true, "Create and fill histograms for the FT0 centrality trigger"};
@@ -69,13 +69,13 @@ struct lumiStabilityLightIons {
6969
HistogramRegistry mHistManager{"output", {}, OutputObjHandlingPolicy::AnalysisObject, false, false};
7070

7171
const int nTriggers = 5;
72-
enum triggerAliases { kAllBCs = 0,
72+
enum TriggerAliases { kAllBCs = 0,
7373
kFT0Vtx = 1,
7474
kFT0CE = 2,
7575
kFDD = 3,
7676
k1ZNC = 4 };
7777
const int nBCCategories = 5;
78-
enum bccategories { kBCA = 0,
78+
enum BCCategories { kBCA = 0,
7979
kBCB = 1,
8080
kBCC = 2,
8181
kBCE = 3,
@@ -110,9 +110,9 @@ struct lumiStabilityLightIons {
110110
AxisSpec timeAxis{1200, 0., 1200., "#bf{t-t_{SOF} (min)}"}, bcIDAxis{3600, 0., 3600., "#bf{BC ID in orbit}"};
111111

112112
for (int iTrigger = 0; iTrigger < nTriggers; iTrigger++) {
113-
if ((iTrigger == 0) || (iTrigger == 1 && cfgDoFT0Vtx) || (iTrigger == 2 && cfgDoFT0CE) || (iTrigger == 3 && cfgDoFDD) || (iTrigger == 4 && cfgDo1ZNC)) {
113+
if ((iTrigger == kAllBCs) || (iTrigger == kFT0Vtx && cfgDoFT0Vtx) || (iTrigger == kFT0CE && cfgDoFT0CE) || (iTrigger == kFDD && cfgDoFDD) || (iTrigger == k1ZNC && cfgDo1ZNC)) {
114114
for (int iBCCategory = 0; iBCCategory < nBCCategories; iBCCategory++) {
115-
if ((iBCCategory == 0 && cfgDoBCA) || (iBCCategory == 1 && cfgDoBCB) || (iBCCategory == 2 && cfgDoBCC) || (iBCCategory == 3 && cfgDoBCE) || (iBCCategory == 4 && cfgDoBCL)) {
115+
if ((iBCCategory == kBCA && cfgDoBCA) || (iBCCategory == kBCB && cfgDoBCB) || (iBCCategory == kBCC && cfgDoBCC) || (iBCCategory == kBCE && cfgDoBCE) || (iBCCategory == kBCL && cfgDoBCL)) {
116116
mHistManager.add(Form("%s", std::string(NBCsVsTimeHistNames[iTrigger][iBCCategory]).c_str()), "Time of triggered BCs since the start of fill;#bf{t-t_{SOF} (min)};#bf{#it{N}_{BC}}", HistType::kTH1F, {timeAxis});
117117
mHistManager.add(Form("%s", std::string(NBCsVsBCIDHistNames[iTrigger][iBCCategory]).c_str()), "BC ID of triggered BCs;#bf{BC ID in orbit};#bf{#it{N}_{BC}}", HistType::kTH1F, {bcIDAxis});
118118
}
@@ -306,5 +306,5 @@ struct lumiStabilityLightIons {
306306
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
307307
{
308308
metadataInfo.initMetadata(cfgc);
309-
return WorkflowSpec{adaptAnalysisTask<lumiStabilityLightIons>(cfgc)};
309+
return WorkflowSpec{adaptAnalysisTask<LumiStabilityLightIons>(cfgc)};
310310
}

0 commit comments

Comments
 (0)