diff --git a/Common/TableProducer/Converters/bcFlagsCreator.cxx b/Common/TableProducer/Converters/bcFlagsCreator.cxx index 8ac9d6e1516..11f30d18bb6 100644 --- a/Common/TableProducer/Converters/bcFlagsCreator.cxx +++ b/Common/TableProducer/Converters/bcFlagsCreator.cxx @@ -22,7 +22,7 @@ struct bcFlagsCreator { void process(aod::BCs const& bcTable) { - for (auto& bc : bcTable) { + for (auto& _ : bcTable) { bcFlags(0); } } diff --git a/Common/TableProducer/match-mft-ft0.cxx b/Common/TableProducer/match-mft-ft0.cxx index 268548255cd..a4b208a03c9 100644 --- a/Common/TableProducer/match-mft-ft0.cxx +++ b/Common/TableProducer/match-mft-ft0.cxx @@ -109,11 +109,9 @@ T getCompatibleBCs(aod::AmbiguousMFTTrack const& atrack, aod::Collision const& c } int64_t maxBCId = bcIt.globalIndex(); - auto maxGlobalBC = bcIt.globalBC(); while (bcIt != bcs.end() && bcIt.globalBC() < lastBC + deltaBC) { maxBCId = bcIt.globalIndex(); - maxGlobalBC = bcIt.globalBC(); ++bcIt; } @@ -149,12 +147,10 @@ T getCompatibleBCs(aod::MFTTracks::iterator const& track, aod::Collision const& // int64_t collLastBC = collFirstBC + 2*collOrig.collisionTimeRes()/o2::constants::lhc::LHCBunchSpacingNS +1; int64_t minBCId = bcIt.globalIndex(); - uint64_t minGlobalBC = bcIt.globalBC(); if ((int64_t)bcIt.globalBC() < firstBC + deltaBC) { while (bcIt != bcs.end() && (int64_t)bcIt.globalBC() < firstBC + deltaBC) { minBCId = bcIt.globalIndex(); - minGlobalBC = bcIt.globalBC(); ++bcIt; } @@ -164,19 +160,16 @@ T getCompatibleBCs(aod::MFTTracks::iterator const& track, aod::Collision const& } // minGlobalBC needs to be >= to firstBC+deltaBC minBCId = bcIt.globalIndex(); - minGlobalBC = bcIt.globalBC(); } else { // here bcIt.globalBC() >= firstBC + deltaBC while (bcIt != bcs.begin() && (int64_t)bcIt.globalBC() >= (int64_t)firstBC + deltaBC) { minBCId = bcIt.globalIndex(); - minGlobalBC = bcIt.globalBC(); --bcIt; } if (bcIt == bcs.begin() && (int64_t)bcIt.globalBC() >= (int64_t)firstBC + deltaBC) { minBCId = bcIt.globalIndex(); - minGlobalBC = bcIt.globalBC(); } ++bcIt; // retrieve the pointer which gave minBCId and minGlobalBC if (bcIt == bcs.end()) { @@ -185,7 +178,6 @@ T getCompatibleBCs(aod::MFTTracks::iterator const& track, aod::Collision const& } int64_t maxBCId = bcIt.globalIndex(); - uint64_t maxGlobalBC = bcIt.globalBC(); if ((int64_t)bcIt.globalBC() > (int64_t)lastBC + deltaBC) { // the previous minimum is actually bigger than the right boundary @@ -218,7 +210,6 @@ T getCompatibleBCs(aod::MFTTracks::iterator const& track, aod::Collision const& while (bcIt != bcs.end() && (int64_t)bcIt.globalBC() <= (int64_t)lastBC + deltaBC) { maxBCId = bcIt.globalIndex(); - maxGlobalBC = bcIt.globalBC(); ++bcIt; } diff --git a/Common/TableProducer/multiplicityTable.cxx b/Common/TableProducer/multiplicityTable.cxx index 08b3852e65a..b18e4c7ed39 100644 --- a/Common/TableProducer/multiplicityTable.cxx +++ b/Common/TableProducer/multiplicityTable.cxx @@ -565,8 +565,6 @@ struct MultiplicityTable { } } - int bcNumber = bc.globalBC() % 3564; - tableExtra(collision.numContrib(), collision.chi2(), collision.collisionTimeRes(), mRunNumber, collision.posZ(), collision.sel8(), nHasITS, nHasTPC, nHasTOF, nHasTRD, nITSonly, nTPConly, nITSTPC, diff --git a/Common/TableProducer/zdc-task-intercalib.cxx b/Common/TableProducer/zdc-task-intercalib.cxx index 62596ee1f43..e8b541c45b8 100644 --- a/Common/TableProducer/zdc-task-intercalib.cxx +++ b/Common/TableProducer/zdc-task-intercalib.cxx @@ -38,10 +38,6 @@ using namespace o2::framework::expressions; using namespace o2::aod::evsel; constexpr double kVeryNegative = -1.e12; -constexpr int ndet = 2; -constexpr int npar = 6; -static double mSum[ndet][npar][npar]; -static double mAdd[npar][npar]; using BCsRun3 = soa::Join; using ColEvSels = soa::Join;