Skip to content

Commit eeba816

Browse files
committed
removed unused var
1 parent 04ee42a commit eeba816

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

PWGLF/Tasks/Nuspex/antinucleiInJets.cxx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ struct AntinucleiInJets {
204204
Configurable<int> shrinkInterval{"shrinkInterval", 1000, "variable that controls how often shrinking happens"};
205205

206206
// Coalescence momentum
207-
Configurable<bool> coalescenceMomentum{"coalescenceMomentum", 0.15, "p0 (GeV/c)"};
207+
Configurable<double> coalescenceMomentum{"coalescenceMomentum", 0.15, "p0 (GeV/c)"};
208208

209209
// Reweighting histograms
210210
TH1F* primaryAntiprotons;
@@ -678,7 +678,7 @@ struct AntinucleiInJets {
678678
// Boost individual nucleons to the pair center-of-mass frame
679679
ROOT::Math::Boost boostToCM(p4tot.BoostToCM());
680680
const LorentzVector p4pcm = boostToCM(p4p);
681-
const LorentzVector p4ncm = boostToCM(p4n);
681+
// const LorentzVector p4ncm = boostToCM(p4n);
682682

683683
// Relative momentum magnitude in the CM frame
684684
const double relativeMomentum = p4pcm.P();
@@ -3173,12 +3173,12 @@ struct AntinucleiInJets {
31733173
registryMC.fill(HIST("genEventsCoalescence"), 2.5);
31743174

31753175
// Build deuterons
3176-
for (int ip = 0; ip < protons.size(); ip++) {
3176+
for (int ip = 0; ip < static_cast<int>(protons.size()); ip++) {
31773177
auto& proton = protons[ip];
31783178
if (proton.used)
31793179
continue;
31803180

3181-
for (int in = 0; in < neutrons.size(); in++) {
3181+
for (int in = 0; in < static_cast<int>(neutrons.size()); in++) {
31823182
auto& neutron = neutrons[in];
31833183
if (neutron.used)
31843184
continue;
@@ -3197,7 +3197,7 @@ struct AntinucleiInJets {
31973197
continue;
31983198

31993199
// Store Deuteron
3200-
chargedParticles.push_back({pxDeut, pyDeut, pzDeut, deuteronPdg, proton.mcId, false});
3200+
chargedParticles.push_back({pxDeut, pyDeut, pzDeut, deuteronPdg, proton.mcIndex, false});
32013201

32023202
neutron.used = true;
32033203
proton.used = true;

0 commit comments

Comments
 (0)