Skip to content

Commit 4bc2c8c

Browse files
authored
[PWGLF,PWGMM] Fix unused variables, parameters, values (#18646)
1 parent 6b46975 commit 4bc2c8c

8 files changed

Lines changed: 20 additions & 19 deletions

File tree

‎PWGMM/Lumi/Tasks/LumiFDDFT0.cxx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ struct LumiFDDFT0 {
226226
Pvtx.setCov(collision.covXX(), collision.covXY(), collision.covYY(),
227227
collision.covXZ(), collision.covYZ(), collision.covZZ());
228228
// configure PVertexer
229-
o2::dataformats::VertexBase PVbase_recalculated;
229+
// o2::dataformats::VertexBase PVbase_recalculated; // FIXME: unused
230230
o2::vertexing::PVertexer vertexer;
231231
o2::conf::ConfigurableParam::updateFromString(
232232
"pvertexer.useMeanVertexConstraint=false"); // we want to refit w/o

‎PWGMM/Lumi/Tasks/lumi.cxx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ struct lumiTask {
179179
collision.covXZ(), collision.covYZ(), collision.covZZ());
180180
// configure PVertexer
181181

182-
o2::dataformats::VertexBase PVbase_recalculated;
182+
// o2::dataformats::VertexBase PVbase_recalculated; // FIXME: unused
183183

184184
o2::vertexing::PVertexer vertexer;
185185
o2::conf::ConfigurableParam::updateFromString(

‎PWGMM/Lumi/Tasks/lumiStability.cxx‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -276,11 +276,11 @@ struct LumiStabilityTask {
276276
int executionCounter = 0;
277277
int nbin = o2::constants::lhc::LHCMaxBunches;
278278
uint32_t nOrbitsPerTF = 0; // 128 in 2022, 32 in 2023
279-
if (is2022Data) {
280-
nOrbitsPerTF = 128; // 128 in 2022, 32 in 2023
281-
} else {
282-
nOrbitsPerTF = 32; // 128 in 2022, 32 in 2023
283-
}
279+
// if (is2022Data) {
280+
// nOrbitsPerTF = 128; // 128 in 2022, 32 in 2023 // FIXME: unused
281+
// } else {
282+
// nOrbitsPerTF = 32; // 128 in 2022, 32 in 2023 // FIXME: unused
283+
// }
284284
int runNumber = bcs.iteratorAt(0).runNumber();
285285
if (runNumber != lastRunNumber && executionCounter < 1) {
286286
tsSOR = 0;
@@ -497,8 +497,8 @@ struct LumiStabilityTask {
497497
pastActivityFDDVertex |= (vertexPast);
498498
}
499499
}
500-
deltaIndex = 0;
501-
deltaBC = 0;
500+
// deltaIndex = 0; // FIXME: unused
501+
// deltaBC = 0; // FIXME: unused
502502

503503
if (pastActivityFDDVertex == false) {
504504
histos.fill(HIST("FDD/hCounts"), 2);
@@ -645,8 +645,8 @@ struct LumiStabilityTask {
645645
pastActivityFDDTriggerCCoincidenceC |= (triggerCPast & isCoinCPast);
646646
}
647647
}
648-
deltaIndex = 0;
649-
deltaBC = 0;
648+
// deltaIndex = 0; // FIXME: unused
649+
// deltaBC = 0; // FIXME: unused
650650

651651
if (pastActivityFDDVertexCoincidences == false) {
652652
histos.fill(HIST("FDD/hCounts"), 4);
@@ -782,8 +782,8 @@ struct LumiStabilityTask {
782782
pastActivityFT0TriggerC |= triggerCPast;
783783
}
784784
}
785-
deltaIndex = 0;
786-
deltaBC = 0;
785+
// deltaIndex = 0; // FIXME: unused
786+
// deltaBC = 0; // FIXME: unused
787787

788788
histos.fill(HIST("FT0/hCounts"), 1);
789789
if (pastActivityFT0Vertex == false) {

‎PWGMM/Lumi/macros/merger.C‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ void merger()
3030
TFile* fout = new TFile("mergedOutput.root", "recreate");
3131
TTree* tin = new TTree("EventInfo_merged", "");
3232

33-
TList* list = fin->GetListOfKeys();
33+
// TList* list = fin->GetListOfKeys(); // FIXME: unused
3434
TIter next(fin->GetListOfKeys());
3535

3636
ULong64_t fTimeStamp;

‎PWGMM/Lumi/macros/non_fac.C‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ double tmax;
4545

4646
int Countig;
4747

48-
void chi2(Int_t& npar, Double_t* gin, Double_t& f, Double_t* par, Int_t flag)
48+
void chi2(Int_t& /*npar*/, Double_t* /*gin*/, Double_t& f, Double_t* par, Int_t /*flag*/)
4949
{
5050
TMatrixD sigma(2, 2);
5151
double results = 0.;
@@ -241,4 +241,5 @@ void non_fac()
241241
for (int i = 0; i < 10; i++) {
242242
hParam[i]->Write();
243243
}
244+
fout->Close();
244245
}

‎PWGMM/Mult/TableProducer/ambiguousTrackPropagation.cxx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ struct AmbiguousTrackPropagation {
292292
o2::track::TrackParCovFwd bestTrackPar;
293293

294294
for (auto const& atrack : atracks) {
295-
dcaInfo = 999; // DCAxy
295+
// dcaInfo = 999; // DCAxy // FIXME: unused
296296
bestDCA = 999;
297297

298298
auto track = atrack.mfttrack();
@@ -375,7 +375,7 @@ struct AmbiguousTrackPropagation {
375375
o2::track::TrackParCovFwd bestTrackPar;
376376

377377
for (auto const& track : tracks) {
378-
dcaInfo = 999; // DCAxy
378+
// dcaInfo = 999; // DCAxy // FIXME: unused
379379
bestDCA = 999;
380380

381381
auto bestCol = track.has_collision() ? track.collisionId() : -1;

‎PWGMM/Mult/Tasks/dndeta-hi.cxx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ struct MultiplicityCounter {
835835
auto pTrack = v0.template posTrack_as<DaughterTracks>();
836836
auto nTrack = v0.template negTrack_as<DaughterTracks>();
837837

838-
if (0 && v0.v0radius() > v0radius &&
838+
if (0 && v0.v0radius() > v0radius && // FIXME: always false
839839
v0.v0cosPA() > v0cospa &&
840840
abs(pTrack.eta()) < etadau &&
841841
abs(nTrack.eta()) < etadau) {

‎PWGMM/Mult/Tasks/vertexing-fwd.cxx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ struct vertexingfwd {
148148

149149
for (auto& atrack : atracks) {
150150

151-
dcaXY = 999; // DCAxy
151+
// dcaXY = 999; // DCAxy // FIXME: unused
152152
bestDCA = 999;
153153

154154
auto track = atrack.mfttrack_as<MFTTracksLabeled>();

0 commit comments

Comments
 (0)