Skip to content

Commit 8843dd8

Browse files
authored
Drop unused variables (AliceO2Group#8058)
1 parent 96babb3 commit 8843dd8

File tree

4 files changed

+1
-16
lines changed

4 files changed

+1
-16
lines changed

Common/TableProducer/Converters/bcFlagsCreator.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ struct bcFlagsCreator {
2222

2323
void process(aod::BCs const& bcTable)
2424
{
25-
for (auto& bc : bcTable) {
25+
for (auto& _ : bcTable) {
2626
bcFlags(0);
2727
}
2828
}

Common/TableProducer/match-mft-ft0.cxx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,9 @@ T getCompatibleBCs(aod::AmbiguousMFTTrack const& atrack, aod::Collision const& c
109109
}
110110

111111
int64_t maxBCId = bcIt.globalIndex();
112-
auto maxGlobalBC = bcIt.globalBC();
113112

114113
while (bcIt != bcs.end() && bcIt.globalBC() < lastBC + deltaBC) {
115114
maxBCId = bcIt.globalIndex();
116-
maxGlobalBC = bcIt.globalBC();
117115

118116
++bcIt;
119117
}
@@ -149,12 +147,10 @@ T getCompatibleBCs(aod::MFTTracks::iterator const& track, aod::Collision const&
149147
// int64_t collLastBC = collFirstBC + 2*collOrig.collisionTimeRes()/o2::constants::lhc::LHCBunchSpacingNS +1;
150148

151149
int64_t minBCId = bcIt.globalIndex();
152-
uint64_t minGlobalBC = bcIt.globalBC();
153150

154151
if ((int64_t)bcIt.globalBC() < firstBC + deltaBC) {
155152
while (bcIt != bcs.end() && (int64_t)bcIt.globalBC() < firstBC + deltaBC) {
156153
minBCId = bcIt.globalIndex();
157-
minGlobalBC = bcIt.globalBC();
158154

159155
++bcIt;
160156
}
@@ -164,19 +160,16 @@ T getCompatibleBCs(aod::MFTTracks::iterator const& track, aod::Collision const&
164160
}
165161
// minGlobalBC needs to be >= to firstBC+deltaBC
166162
minBCId = bcIt.globalIndex();
167-
minGlobalBC = bcIt.globalBC();
168163

169164
} else {
170165
// here bcIt.globalBC() >= firstBC + deltaBC
171166

172167
while (bcIt != bcs.begin() && (int64_t)bcIt.globalBC() >= (int64_t)firstBC + deltaBC) {
173168
minBCId = bcIt.globalIndex();
174-
minGlobalBC = bcIt.globalBC();
175169
--bcIt;
176170
}
177171
if (bcIt == bcs.begin() && (int64_t)bcIt.globalBC() >= (int64_t)firstBC + deltaBC) {
178172
minBCId = bcIt.globalIndex();
179-
minGlobalBC = bcIt.globalBC();
180173
}
181174
++bcIt; // retrieve the pointer which gave minBCId and minGlobalBC
182175
if (bcIt == bcs.end()) {
@@ -185,7 +178,6 @@ T getCompatibleBCs(aod::MFTTracks::iterator const& track, aod::Collision const&
185178
}
186179

187180
int64_t maxBCId = bcIt.globalIndex();
188-
uint64_t maxGlobalBC = bcIt.globalBC();
189181

190182
if ((int64_t)bcIt.globalBC() > (int64_t)lastBC + deltaBC) {
191183
// the previous minimum is actually bigger than the right boundary
@@ -218,7 +210,6 @@ T getCompatibleBCs(aod::MFTTracks::iterator const& track, aod::Collision const&
218210

219211
while (bcIt != bcs.end() && (int64_t)bcIt.globalBC() <= (int64_t)lastBC + deltaBC) {
220212
maxBCId = bcIt.globalIndex();
221-
maxGlobalBC = bcIt.globalBC();
222213

223214
++bcIt;
224215
}

Common/TableProducer/multiplicityTable.cxx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,8 +565,6 @@ struct MultiplicityTable {
565565
}
566566
}
567567

568-
int bcNumber = bc.globalBC() % 3564;
569-
570568
tableExtra(collision.numContrib(), collision.chi2(), collision.collisionTimeRes(),
571569
mRunNumber, collision.posZ(), collision.sel8(),
572570
nHasITS, nHasTPC, nHasTOF, nHasTRD, nITSonly, nTPConly, nITSTPC,

Common/TableProducer/zdc-task-intercalib.cxx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ using namespace o2::framework::expressions;
3838
using namespace o2::aod::evsel;
3939

4040
constexpr double kVeryNegative = -1.e12;
41-
constexpr int ndet = 2;
42-
constexpr int npar = 6;
43-
static double mSum[ndet][npar][npar];
44-
static double mAdd[npar][npar];
4541

4642
using BCsRun3 = soa::Join<aod::BCs, aod::Timestamps, aod::BcSels, aod::Run3MatchedToBCSparse>;
4743
using ColEvSels = soa::Join<aod::Collisions, aod::EvSels>;

0 commit comments

Comments
 (0)