Skip to content

Commit 2b3eaf8

Browse files
authored
[Common] populate FT0C variant 1 in centTable (#9541)
1 parent f9944ec commit 2b3eaf8

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed

Common/TableProducer/centralityTable.cxx

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,12 @@ static constexpr int kCentFV0As = 6;
4242
static constexpr int kCentFT0Ms = 7;
4343
static constexpr int kCentFT0As = 8;
4444
static constexpr int kCentFT0Cs = 9;
45-
static constexpr int kCentFDDMs = 10;
46-
static constexpr int kCentNTPVs = 11;
47-
static constexpr int kCentNGlobals = 12;
48-
static constexpr int kCentMFTs = 13;
49-
static constexpr int nTables = 14;
45+
static constexpr int kCentFT0CVariant1s = 10;
46+
static constexpr int kCentFDDMs = 11;
47+
static constexpr int kCentNTPVs = 12;
48+
static constexpr int kCentNGlobals = 13;
49+
static constexpr int kCentMFTs = 14;
50+
static constexpr int nTables = 15;
5051
static constexpr int nParameters = 1;
5152
static const std::vector<std::string> tableNames{"CentRun2V0Ms",
5253
"CentRun2V0As",
@@ -58,12 +59,13 @@ static const std::vector<std::string> tableNames{"CentRun2V0Ms",
5859
"CentFT0Ms",
5960
"CentFT0As",
6061
"CentFT0Cs",
62+
"CentFT0CVariant1s",
6163
"CentFDDMs",
6264
"CentNTPVs",
6365
"CentNGlobals",
6466
"CentMFTs"};
6567
static const std::vector<std::string> parameterNames{"Enable"};
66-
static const int defaultParameters[nTables][nParameters]{{-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}};
68+
static const int defaultParameters[nTables][nParameters]{{-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}};
6769

6870
struct CentralityTable {
6971
Produces<aod::CentRun2V0Ms> centRun2V0M;
@@ -76,6 +78,7 @@ struct CentralityTable {
7678
Produces<aod::CentFT0Ms> centFT0M;
7779
Produces<aod::CentFT0As> centFT0A;
7880
Produces<aod::CentFT0Cs> centFT0C;
81+
Produces<aod::CentFT0CVariant1s> centFT0CVariant1;
7982
Produces<aod::CentFDDMs> centFDDM;
8083
Produces<aod::CentNTPVs> centNTPV;
8184
Produces<aod::CentNGlobals> centNGlobals;
@@ -166,6 +169,7 @@ struct CentralityTable {
166169
calibrationInfo FT0MInfo = calibrationInfo("FT0");
167170
calibrationInfo FT0AInfo = calibrationInfo("FT0A");
168171
calibrationInfo FT0CInfo = calibrationInfo("FT0C");
172+
calibrationInfo FT0CVariant1Info = calibrationInfo("FT0Cvar1");
169173
calibrationInfo FDDMInfo = calibrationInfo("FDD");
170174
calibrationInfo NTPVInfo = calibrationInfo("NTracksPV");
171175
calibrationInfo NGlobalInfo = calibrationInfo("NGlobal");
@@ -183,8 +187,8 @@ struct CentralityTable {
183187
if (doprocessRun3FT0 == true) {
184188
LOG(fatal) << "FT0 only mode is automatically enabled in Run3 mode. Please disable it and enable processRun3.";
185189
}
186-
if (doprocessRun2 == false && doprocessRun3 == false) {
187-
LOGF(fatal, "Neither processRun2 nor processRun3 enabled. Please choose one.");
190+
if (doprocessRun2 == false && doprocessRun3 == false && doprocessRun3Complete == false) {
191+
LOGF(fatal, "Neither processRun2 nor processRun3 nor processRun3Complete enabled. Please choose one.");
188192
}
189193
if (doprocessRun2 == true && doprocessRun3 == true) {
190194
LOGF(fatal, "Cannot enable processRun2 and processRun3 at the same time. Please choose one.");
@@ -466,6 +470,9 @@ struct CentralityTable {
466470
case kCentFT0Cs:
467471
centFT0C.reserve(collisions.size());
468472
break;
473+
case kCentFT0CVariant1s:
474+
centFT0CVariant1.reserve(collisions.size());
475+
break;
469476
case kCentFDDMs:
470477
centFDDM.reserve(collisions.size());
471478
break;
@@ -519,6 +526,7 @@ struct CentralityTable {
519526
FT0MInfo.mCalibrationStored = false;
520527
FT0AInfo.mCalibrationStored = false;
521528
FT0CInfo.mCalibrationStored = false;
529+
FT0CVariant1Info.mCalibrationStored = false;
522530
FDDMInfo.mCalibrationStored = false;
523531
NTPVInfo.mCalibrationStored = false;
524532
NGlobalInfo.mCalibrationStored = false;
@@ -564,6 +572,9 @@ struct CentralityTable {
564572
case kCentFT0Cs:
565573
getccdb(FT0CInfo, ccdbConfig.genName);
566574
break;
575+
case kCentFT0CVariant1s:
576+
getccdb(FT0CInfo, ccdbConfig.genName);
577+
break;
567578
case kCentFDDMs:
568579
getccdb(FDDMInfo, ccdbConfig.genName);
569580
break;
@@ -672,6 +683,11 @@ struct CentralityTable {
672683
}
673684
}
674685
break;
686+
case kCentFT0CVariant1s:
687+
if constexpr (enableCentFT0) {
688+
populateTable(centFT0CVariant1, FT0CVariant1Info, collision.multZeqFT0C());
689+
}
690+
break;
675691
case kCentFDDMs:
676692
if constexpr (enableCentFDD) {
677693
populateTable(centFDDM, FDDMInfo, collision.multZeqFDDA() + collision.multZeqFDDC());

0 commit comments

Comments
 (0)