Skip to content
Merged
Show file tree
Hide file tree
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
32 changes: 16 additions & 16 deletions Common/DataModel/Centrality.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@ DECLARE_SOA_COLUMN(CentRun2CL1, centRun2CL1, float); //! Run 2
DECLARE_SOA_COLUMN(CentRun2RefMult5, centRun2RefMult5, float); //! Run 2 cent. from ref. mult. estimator, eta 0.5
DECLARE_SOA_COLUMN(CentRun2RefMult8, centRun2RefMult8, float); //! Run 2 cent. from ref. mult. estimator, eta 0.8

DECLARE_SOA_COLUMN(CentFV0A, centFV0A, float); //! Run 3 cent. from FV0A multiplicities
DECLARE_SOA_COLUMN(CentFT0M, centFT0M, float); //! Run 3 cent. from FT0A+FT0C multiplicities
DECLARE_SOA_COLUMN(CentFT0MLightIonAnchorCol, centFT0MLightIonAnchorCol, float); //! Run 3 cent. from FT0A+FT0C multiplicities - light ion only - 90% anchor - collision based (NOT recommended, cross-check only!)
DECLARE_SOA_COLUMN(CentFT0MLightIonAnchorBC, centFT0MLightIonAnchorBC, float); //! Run 3 cent. from FT0A+FT0C multiplicities - light ion only - 90% anchor - bunch crossing based (NOT recommended, cross-check only!)
DECLARE_SOA_COLUMN(CentFT0A, centFT0A, float); //! Run 3 cent. from FT0A multiplicity
DECLARE_SOA_COLUMN(CentFT0C, centFT0C, float); //! Run 3 cent. from FT0C multiplicity
DECLARE_SOA_COLUMN(CentFT0CVariant1, centFT0CVariant1, float); //! Run 3 cent. from FT0C multiplicity
DECLARE_SOA_COLUMN(CentFT0CVariant2, centFT0CVariant2, float); //! Run 3 cent. from FT0C multiplicity, uses classical truncated Nancestors (NOT recommended, cross-check only!)
DECLARE_SOA_COLUMN(CentFDDM, centFDDM, float); //! Run 3 cent. from FDDA+FDDC multiplicity
DECLARE_SOA_COLUMN(CentNTPV, centNTPV, float); //! Run 3 cent. from the number of tracks contributing to the PV
DECLARE_SOA_COLUMN(CentNGlobal, centNGlobal, float); //! Run 3 cent. from the number of global tracks
DECLARE_SOA_COLUMN(CentMFT, centMFT, float); //! Run 3 cent. from the number of tracks in the MFT
DECLARE_SOA_COLUMN(CentFV0A, centFV0A, float); //! Run 3 cent. from FV0A multiplicities
DECLARE_SOA_COLUMN(CentFT0M, centFT0M, float); //! Run 3 cent. from FT0A+FT0C multiplicities
DECLARE_SOA_COLUMN(CentFT0MAnchorCol, centFT0MAnchorCol, float); //! Run 3 cent. from FT0A+FT0C multiplicities - anchored glauber - collision based (NOT recommended, cross-check only!)
DECLARE_SOA_COLUMN(CentFT0MAnchorBC, centFT0MAnchorBC, float); //! Run 3 cent. from FT0A+FT0C multiplicities - anchored glauber - bunch crossing based (NOT recommended, cross-check only!)
DECLARE_SOA_COLUMN(CentFT0A, centFT0A, float); //! Run 3 cent. from FT0A multiplicity
DECLARE_SOA_COLUMN(CentFT0C, centFT0C, float); //! Run 3 cent. from FT0C multiplicity
DECLARE_SOA_COLUMN(CentFT0CVariant1, centFT0CVariant1, float); //! Run 3 cent. from FT0C multiplicity
DECLARE_SOA_COLUMN(CentFT0CVariant2, centFT0CVariant2, float); //! Run 3 cent. from FT0C multiplicity, uses classical truncated Nancestors (NOT recommended, cross-check only!)
DECLARE_SOA_COLUMN(CentFDDM, centFDDM, float); //! Run 3 cent. from FDDA+FDDC multiplicity
DECLARE_SOA_COLUMN(CentNTPV, centNTPV, float); //! Run 3 cent. from the number of tracks contributing to the PV
DECLARE_SOA_COLUMN(CentNGlobal, centNGlobal, float); //! Run 3 cent. from the number of global tracks
DECLARE_SOA_COLUMN(CentMFT, centMFT, float); //! Run 3 cent. from the number of tracks in the MFT
} // namespace cent

// Run 2 tables
Expand All @@ -61,10 +61,10 @@ DECLARE_SOA_TABLE(CentNGlobals, "AOD", "CENTNGLOBAL", cent::CentNGlobal); //! Ru
DECLARE_SOA_TABLE(CentMFTs, "AOD", "CENTMFT", cent::CentMFT); //! Run 3 MFT tracks centrality table

// Run 3 variant tables
DECLARE_SOA_TABLE(CentFT0CVariant1s, "AOD", "CENTFT0Cvar1", cent::CentFT0CVariant1); //! Run 3 FT0C variant 1
DECLARE_SOA_TABLE(CentFT0CVariant2s, "AOD", "CENTFT0Cvar2", cent::CentFT0CVariant2); //! Run 3 FT0C variant 1 - uses truncated Nancestors in glauber fit. Not recommended! for cross-checks only
DECLARE_SOA_TABLE(CentFT0MLightIonAnchorCols, "AOD", "CENTFT0MLICOL", cent::CentFT0MLightIonAnchorCol); //! Run 3 Light ions FT0M - Traditional anchor at 90% with Glauber. Colliison based calibration. Not recommended! for cross-checks only
DECLARE_SOA_TABLE(CentFT0MLightIonAnchorBCs, "AOD", "CENTFT0MLIBC", cent::CentFT0MLightIonAnchorBC); //! Run 3 Light ions FT0M - Traditional anchor at 90% with Glauber. Bunch crossing based calibration. Not recommended! for cross-checks only
DECLARE_SOA_TABLE(CentFT0CVariant1s, "AOD", "CENTFT0Cvar1", cent::CentFT0CVariant1); //! Run 3 FT0C variant 1
DECLARE_SOA_TABLE(CentFT0CVariant2s, "AOD", "CENTFT0Cvar2", cent::CentFT0CVariant2); //! Run 3 FT0C variant 2 - uses truncated Nancestors in glauber fit. Not recommended! for cross-checks only
DECLARE_SOA_TABLE(CentFT0MAnchorCols, "AOD", "CENTFT0MCOL", cent::CentFT0MAnchorCol); //! Run 3 FT0M with anchored Glauber. Colliison based calibration. Not recommended! for cross-checks only
DECLARE_SOA_TABLE(CentFT0MAnchorBCs, "AOD", "CENTFT0MBC", cent::CentFT0MAnchorBC); //! Run 3 FT0M with anchored Glauber. Bunch crossing based calibration. Not recommended! for cross-checks only

// Run 3 centrality per BC (joinable with BC)
DECLARE_SOA_TABLE(BCCentFT0Ms, "AOD", "BCCENTFT0M", cent::CentFT0M, o2::soa::Marker<1>); //! Run 3 FT0M BC centrality table
Expand Down
32 changes: 16 additions & 16 deletions Common/Tasks/centralityQa.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@
histos.add("hCentNTPV", ";NTPV centrality (%)", kTH1D, {{nBins, 0, 105.}});
histos.add("hCentNGlobal", ";NGlobal centrality (%)", kTH1D, {{nBins, 0, 105.}});
histos.add("hCentMFT", ";MFT centrality (%)", kTH1D, {{nBins, 0, 105.}});
histos.add("hCentFT0MLightIonAnchorCols", ";FT0MLightIonAnchorCols centrality (%)", kTH1D, {{nBins, 0, 105.}});
histos.add("hCentFT0MLightIonAnchorBCs", ";FT0MLightIonAnchorBCs centrality (%)", kTH1D, {{nBins, 0, 105.}});
histos.add("hCentFT0MAnchorCols", ";FT0MAnchorCols centrality (%)", kTH1D, {{nBins, 0, 105.}});
histos.add("hCentFT0MAnchorBCs", ";FT0MAnchorBCs centrality (%)", kTH1D, {{nBins, 0, 105.}});

// profiles of midrapidity multiplicity density
histos.add("hCentProfileFV0A", ";FV0A centrality (%)", kTProfile, {{nBins, 0, 105.}});
Expand All @@ -193,8 +193,8 @@
histos.add("hCentProfileNTPV", ";NTPV centrality (%)", kTProfile, {{nBins, 0, 105.}});
histos.add("hCentProfileNGlobal", ";NGlobal centrality (%)", kTProfile, {{nBins, 0, 105.}});
histos.add("hCentProfileMFT", ";MFT centrality (%)", kTProfile, {{nBins, 0, 105.}});
histos.add("hCentProfileFT0MLightIonAnchorCols", ";FT0MLightIonAnchorCols centrality (%)", kTProfile, {{nBins, 0, 105.}});
histos.add("hCentProfileFT0MLightIonAnchorBCs", ";FT0MLightIonAnchorBCs centrality (%)", kTProfile, {{nBins, 0, 105.}});
histos.add("hCentProfileFT0MAnchorCols", ";FT0MAnchorCols centrality (%)", kTProfile, {{nBins, 0, 105.}});
histos.add("hCentProfileFT0MAnchorBCs", ";FT0MAnchorBCs centrality (%)", kTProfile, {{nBins, 0, 105.}});

histos.add("hMultEta05VsCentFV0A", ";FV0A centrality (%); Multiplicity PV contributors (|#it{#eta}| < 0.5)", kTH2D, {{nBins, 0, 105.}, axisMultiplicityPV});
histos.add("hMultEta05VsCentFT0M", ";FT0M centrality (%); Multiplicity PV contributors (|#it{#eta}| < 0.5)", kTH2D, {{nBins, 0, 105.}, axisMultiplicityPV});
Expand All @@ -206,8 +206,8 @@
histos.add("hMultEta05VsCentNTPV", ";NTPV centrality (%); Multiplicity PV contributors (|#it{#eta}| < 0.5)", kTH2D, {{nBins, 0, 105.}, axisMultiplicityPV});
histos.add("hMultEta05VsCentNGlobal", ";NGlobal centrality (%); Multiplicity PV contributors (|#it{#eta}| < 0.5)", kTH2D, {{nBins, 0, 105.}, axisMultiplicityPV});
histos.add("hMultEta05VsCentMFT", ";MFT centrality (%); Multiplicity PV contributors (|#it{#eta}| < 0.5)", kTH2D, {{nBins, 0, 105.}, axisMultiplicityPV});
histos.add("hMultEta05VsCentFT0MLightIonAnchorCols", ";FT0MLightIonAnchorCols centrality (%); Multiplicity PV contributors (|#it{#eta}| < 0.5)", kTH2D, {{nBins, 0, 105.}, axisMultiplicityPV});
histos.add("hMultEta05VsCentFT0MLightIonAnchorBCs", ";FT0MLightIonAnchorBCs centrality (%); Multiplicity PV contributors (|#it{#eta}| < 0.5)", kTH2D, {{nBins, 0, 105.}, axisMultiplicityPV});
histos.add("hMultEta05VsCentFT0MAnchorCols", ";FT0MAnchorCols centrality (%); Multiplicity PV contributors (|#it{#eta}| < 0.5)", kTH2D, {{nBins, 0, 105.}, axisMultiplicityPV});
histos.add("hMultEta05VsCentFT0MAnchorBCs", ";FT0MAnchorBCs centrality (%); Multiplicity PV contributors (|#it{#eta}| < 0.5)", kTH2D, {{nBins, 0, 105.}, axisMultiplicityPV});

if (isMC) {
histos.add("hMultEta05VsGenMultFV0A", ";Multiplicity FV0A; Multiplicity PV contributors (|#it{#eta}| < 0.5)", kTH2D, {axisMultiplicity, axisMultiplicityPV});
Expand Down Expand Up @@ -381,7 +381,7 @@
return false;
}

if (eventSelections.requireINEL1 && collision.multNTracksPVeta1() < 2) {

Check failure on line 384 in Common/Tasks/centralityQa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
return false;
}

Expand Down Expand Up @@ -477,7 +477,7 @@
return false;
}

if (eventSelections.requireINEL1 && collision.multNTracksPVeta1() < 2) {

Check failure on line 480 in Common/Tasks/centralityQa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
return false;
}
}
Expand Down Expand Up @@ -795,27 +795,27 @@
}
PROCESS_SWITCH(CentralityQa, processRun3_MFT, "Process with Run 3 MFT estimator", false);

void processRun3_FT0MLightIonAnchorCol(soa::Join<aod::Collisions, aod::EvSels, aod::Mults, aod::CentFT0MLightIonAnchorCols>::iterator const& col)
void processRun3_FT0MAnchorCol(soa::Join<aod::Collisions, aod::EvSels, aod::Mults, aod::CentFT0MAnchorCols>::iterator const& col)
{
if (!isCollisionAccepted(col)) {
return;
}
histos.fill(HIST("hCentFT0MLightIonAnchorCols"), col.centFT0MLightIonAnchorCol());
histos.fill(HIST("hCentProfileFT0MLightIonAnchorCols"), col.centFT0MLightIonAnchorCol(), col.multNTracksPVetaHalf());
histos.fill(HIST("hMultEta05VsCentFT0MLightIonAnchorCols"), col.centFT0MLightIonAnchorCol(), col.multNTracksPVetaHalf());
histos.fill(HIST("hCentFT0MAnchorCols"), col.centFT0MAnchorCol());
histos.fill(HIST("hCentProfileFT0MAnchorCols"), col.centFT0MAnchorCol(), col.multNTracksPVetaHalf());
histos.fill(HIST("hMultEta05VsCentFT0MAnchorCols"), col.centFT0MAnchorCol(), col.multNTracksPVetaHalf());
}
PROCESS_SWITCH(CentralityQa, processRun3_FT0MLightIonAnchorCol, "Process with Run 3 FT0MLightIonAnchorCol estimator", false);
PROCESS_SWITCH(CentralityQa, processRun3_FT0MAnchorCol, "Process with Run 3 FT0MAnchorCol estimator", false);

void processRun3_FT0MLightIonAnchorBC(soa::Join<aod::Collisions, aod::EvSels, aod::Mults, aod::CentFT0MLightIonAnchorBCs>::iterator const& col)
void processRun3_FT0MAnchorBC(soa::Join<aod::Collisions, aod::EvSels, aod::Mults, aod::CentFT0MAnchorBCs>::iterator const& col)
{
if (!isCollisionAccepted(col)) {
return;
}
histos.fill(HIST("hCentFT0MLightIonAnchorBCs"), col.centFT0MLightIonAnchorBC());
histos.fill(HIST("hCentProfileFT0MLightIonAnchorBCs"), col.centFT0MLightIonAnchorBC(), col.multNTracksPVetaHalf());
histos.fill(HIST("hMultEta05VsCentFT0MLightIonAnchorBCs"), col.centFT0MLightIonAnchorBC(), col.multNTracksPVetaHalf());
histos.fill(HIST("hCentFT0MAnchorBCs"), col.centFT0MAnchorBC());
histos.fill(HIST("hCentProfileFT0MAnchorBCs"), col.centFT0MAnchorBC(), col.multNTracksPVetaHalf());
histos.fill(HIST("hMultEta05VsCentFT0MAnchorBCs"), col.centFT0MAnchorBC(), col.multNTracksPVetaHalf());
}
PROCESS_SWITCH(CentralityQa, processRun3_FT0MLightIonAnchorBC, "Process with Run 3 FT0MLightIonAnchorBC estimator", false);
PROCESS_SWITCH(CentralityQa, processRun3_FT0MAnchorBC, "Process with Run 3 FT0MAnchorBC estimator", false);

void processMonteCarloRun3_FV0A(soa::Join<aod::Collisions, aod::McCollisionLabels, aod::EvSels, aod::Mults, aod::CentFV0As>::iterator const& col,
soa::Join<aod::McCollisions, aod::MultMCExtras> const& /*mcCollisions*/,
Expand Down
64 changes: 32 additions & 32 deletions Common/Tools/Multiplicity/MultModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@
"BCCentFT0Ms",
"BCCentFT0As",
"BCCentFT0Cs",
"CentFT0MLightIonAnchorCols",
"CentFT0MLightIonAnchorBCs"};
"CentFT0MAnchorCols",
"CentFT0MAnchorBCs"};

static constexpr int nTablesConst = 41;

Expand Down Expand Up @@ -170,27 +170,27 @@
kMultsGlobal, // requires track selection task

// centrality subcomponent
kCentRun2V0Ms, // Run 2
kCentRun2V0As, // Run 2
kCentRun2SPDTrks, // Run 2
kCentRun2SPDClss, // Run 2
kCentRun2CL0s, // Run 2
kCentRun2CL1s, // Run 2
kCentFV0As, // standard Run 3
kCentFT0Ms, // standard Run 3
kCentFT0As, // standard Run 3
kCentFT0Cs, // standard Run 3
kCentFT0CVariant1s, // standard Run 3
kCentFT0CVariant2s, // standard Run 3
kCentFDDMs, // standard Run 3
kCentNTPVs, // standard Run 3
kCentNGlobals, // requires track selection task
kCentMFTs, // requires MFT task
kBCCentFT0Ms, // bc centrality
kBCCentFT0As, // bc centrality
kBCCentFT0Cs, // bc centrality
kCentFT0MLightIonAnchorCols, // light ion specific
kCentFT0MLightIonAnchorBCs, // light ion specific
kCentRun2V0Ms, // Run 2
kCentRun2V0As, // Run 2
kCentRun2SPDTrks, // Run 2
kCentRun2SPDClss, // Run 2
kCentRun2CL0s, // Run 2
kCentRun2CL1s, // Run 2
kCentFV0As, // standard Run 3
kCentFT0Ms, // standard Run 3
kCentFT0As, // standard Run 3
kCentFT0Cs, // standard Run 3
kCentFT0CVariant1s, // standard Run 3
kCentFT0CVariant2s, // standard Run 3
kCentFDDMs, // standard Run 3
kCentNTPVs, // standard Run 3
kCentNGlobals, // requires track selection task
kCentMFTs, // requires MFT task
kBCCentFT0Ms, // bc centrality
kBCCentFT0As, // bc centrality
kBCCentFT0Cs, // bc centrality
kCentFT0MAnchorCols, // standard Run 3
kCentFT0MAnchorBCs, // standard Run 3
kNTables };

struct products : o2::framework::ProducesGroup {
Expand Down Expand Up @@ -239,8 +239,8 @@
o2::framework::Produces<aod::BCCentFT0As> bcCentFT0A;
o2::framework::Produces<aod::BCCentFT0Cs> bcCentFT0C;
o2::framework::Produces<aod::BCCentFT0Ms> bcCentFT0M;
o2::framework::Produces<aod::CentFT0MLightIonAnchorCols> centFT0MLightIonAnchorCol;
o2::framework::Produces<aod::CentFT0MLightIonAnchorBCs> centFT0MLightIonAnchorBC;
o2::framework::Produces<aod::CentFT0MAnchorCols> centFT0MAnchorCol;
o2::framework::Produces<aod::CentFT0MAnchorBCs> centFT0MAnchorBC;

//__________________________________________________
// centrality tables per BC
Expand Down Expand Up @@ -451,8 +451,8 @@

CalibrationInfo fv0aInfo = CalibrationInfo("FV0");
CalibrationInfo ft0mInfo = CalibrationInfo("FT0");
CalibrationInfo ft0mColInfo = CalibrationInfo("FT0LightIonAncCol");
CalibrationInfo ft0mBcInfo = CalibrationInfo("FT0LightIonAncBc");
CalibrationInfo ft0mColInfo = CalibrationInfo("FT0AnchorCol");
CalibrationInfo ft0mBcInfo = CalibrationInfo("FT0AnchorBc");
CalibrationInfo ft0aInfo = CalibrationInfo("FT0A");
CalibrationInfo ft0cInfo = CalibrationInfo("FT0C");
CalibrationInfo ft0cVariant1Info = CalibrationInfo("FT0Cvar1");
Expand Down Expand Up @@ -609,9 +609,9 @@
if (internalOpts.mEnabledTables[kPVMults]) {
if (std::abs(track.eta()) < 1.0) {
mults.multNContribsEta1++; // pvmults
if (std::abs(track.eta()) < 0.8) {

Check failure on line 612 in Common/Tools/Multiplicity/MultModule.h

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
mults.multNContribs++; // pvmults
if (std::abs(track.eta()) < 0.5) {

Check failure on line 614 in Common/Tools/Multiplicity/MultModule.h

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
mults.multNContribsEtaHalf++; // pvmults
}
}
Expand Down Expand Up @@ -715,7 +715,7 @@
auto amplitude = fv0.amplitude()[ii];
auto channel = fv0.channel()[ii];
mults.multFV0A += amplitude;
if (channel > 7) {

Check failure on line 718 in Common/Tools/Multiplicity/MultModule.h

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
mults.multFV0AOuter += amplitude;
}
}
Expand Down Expand Up @@ -794,7 +794,7 @@
//_______________________________________________________________________
// vertex-Z equalized signals
if (internalOpts.mEnabledTables[kFV0MultZeqs]) {
if (mults.multFV0A > -1.0f && std::fabs(collision.posZ()) < 15.0f && lCalibLoaded) {

Check failure on line 797 in Common/Tools/Multiplicity/MultModule.h

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
mults.multFV0AZeq = hVtxZFV0A->Interpolate(0.0) * mults.multFV0A / hVtxZFV0A->Interpolate(collision.posZ());
} else {
mults.multFV0AZeq = 0.0f;
Expand All @@ -802,12 +802,12 @@
cursors.tableFV0Zeqs(mults.multFV0AZeq);
}
if (internalOpts.mEnabledTables[kFT0MultZeqs]) {
if (mults.multFT0A > -1.0f && std::fabs(collision.posZ()) < 15.0f && lCalibLoaded) {

Check failure on line 805 in Common/Tools/Multiplicity/MultModule.h

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
mults.multFT0AZeq = hVtxZFT0A->Interpolate(0.0) * mults.multFT0A / hVtxZFT0A->Interpolate(collision.posZ());
} else {
mults.multFT0AZeq = 0.0f;
}
if (mults.multFT0C > -1.0f && std::fabs(collision.posZ()) < 15.0f && lCalibLoaded) {

Check failure on line 810 in Common/Tools/Multiplicity/MultModule.h

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
mults.multFT0CZeq = hVtxZFT0C->Interpolate(0.0) * mults.multFT0C / hVtxZFT0C->Interpolate(collision.posZ());
} else {
mults.multFT0CZeq = 0.0f;
Expand All @@ -815,12 +815,12 @@
cursors.tableFT0Zeqs(mults.multFT0AZeq, mults.multFT0CZeq);
}
if (internalOpts.mEnabledTables[kFDDMultZeqs]) {
if (mults.multFDDA > -1.0f && std::fabs(collision.posZ()) < 15.0f && lCalibLoaded) {

Check failure on line 818 in Common/Tools/Multiplicity/MultModule.h

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
mults.multFDDAZeq = hVtxZFDDA->Interpolate(0.0) * mults.multFDDA / hVtxZFDDA->Interpolate(collision.posZ());
} else {
mults.multFDDAZeq = 0.0f;
}
if (mults.multFDDC > -1.0f && std::fabs(collision.posZ()) < 15.0f && lCalibLoaded) {

Check failure on line 823 in Common/Tools/Multiplicity/MultModule.h

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
mults.multFDDCZeq = hVtxZFDDC->Interpolate(0.0) * mults.multFDDC / hVtxZFDDC->Interpolate(collision.posZ());
} else {
mults.multFDDCZeq = 0.0f;
Expand Down Expand Up @@ -1261,9 +1261,9 @@
getccdb(fv0aInfo, internalOpts.generatorName);
if (internalOpts.mEnabledTables[kCentFT0Ms] || internalOpts.mEnabledTables[kBCCentFT0Ms])
getccdb(ft0mInfo, internalOpts.generatorName);
if (internalOpts.mEnabledTables[kCentFT0MLightIonAnchorCols])
if (internalOpts.mEnabledTables[kCentFT0MAnchorCols])
getccdb(ft0mColInfo, internalOpts.generatorName);
if (internalOpts.mEnabledTables[kCentFT0MLightIonAnchorBCs])
if (internalOpts.mEnabledTables[kCentFT0MAnchorBCs])
getccdb(ft0mBcInfo, internalOpts.generatorName);
if (internalOpts.mEnabledTables[kCentFT0As] || internalOpts.mEnabledTables[kBCCentFT0As])
getccdb(ft0aInfo, internalOpts.generatorName);
Expand Down Expand Up @@ -1303,7 +1303,7 @@
internalOpts.mEnabledTables[kCentNTPVs] || internalOpts.mEnabledTables[kCentNGlobals] ||
internalOpts.mEnabledTables[kCentMFTs] || internalOpts.mEnabledTables[kBCCentFT0Ms] ||
internalOpts.mEnabledTables[kBCCentFT0As] || internalOpts.mEnabledTables[kBCCentFT0Cs] ||
internalOpts.mEnabledTables[kCentFT0MLightIonAnchorCols] || internalOpts.mEnabledTables[kCentFT0MLightIonAnchorBCs]) {
internalOpts.mEnabledTables[kCentFT0MAnchorCols] || internalOpts.mEnabledTables[kCentFT0MAnchorBCs]) {
// check and update centrality calibration objects for Run 3
const auto& firstbc = bcs.begin();
ConfigureCentralityRun3(ccdb, metadataInfo, firstbc);
Expand Down Expand Up @@ -1350,9 +1350,9 @@
if (internalOpts.mEnabledTables[kCentFT0Ms])
populateTable(cursors.centFT0M, ft0mInfo, mults[iEv].multFT0AZeq + mults[iEv].multFT0CZeq, isInelGt0);
if (internalOpts.mEnabledTables[kCentFT0Ms])
populateTable(cursors.centFT0MLightIonAnchorCol, ft0mColInfo, mults[iEv].multFT0AZeq + mults[iEv].multFT0CZeq, isInelGt0);
populateTable(cursors.centFT0MAnchorCol, ft0mColInfo, mults[iEv].multFT0AZeq + mults[iEv].multFT0CZeq, isInelGt0);
if (internalOpts.mEnabledTables[kCentFT0Ms])
populateTable(cursors.centFT0MLightIonAnchorBC, ft0mBcInfo, mults[iEv].multFT0AZeq + mults[iEv].multFT0CZeq, isInelGt0);
populateTable(cursors.centFT0MAnchorBC, ft0mBcInfo, mults[iEv].multFT0AZeq + mults[iEv].multFT0CZeq, isInelGt0);
if (internalOpts.mEnabledTables[kCentFT0As])
populateTable(cursors.centFT0A, ft0aInfo, mults[iEv].multFT0AZeq, isInelGt0);
if (internalOpts.mEnabledTables[kCentFT0Cs])
Expand Down
Loading