Skip to content

Commit a5a9d0e

Browse files
authored
[PWGEM/Dilepton] remove unnecessary lines (#13627)
1 parent 342fd8b commit a5a9d0e

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

PWGEM/Dilepton/Core/Dilepton.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,13 +1042,7 @@ struct Dilepton {
10421042
if constexpr (ev_id == 0) {
10431043
std::pair<int, int> key_df_collision = std::make_pair(ndf, collision.globalIndex());
10441044

1045-
std::vector<int> possibleIds1;
1046-
std::vector<int> possibleIds2;
1047-
10481045
if constexpr (pairtype == o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDielectron) {
1049-
std::copy(t1.ambiguousElectronsIds().begin(), t1.ambiguousElectronsIds().end(), std::back_inserter(possibleIds1));
1050-
std::copy(t2.ambiguousElectronsIds().begin(), t2.ambiguousElectronsIds().end(), std::back_inserter(possibleIds2));
1051-
10521046
if (std::find(used_trackIds_per_col.begin(), used_trackIds_per_col.end(), t1.globalIndex()) == used_trackIds_per_col.end()) {
10531047
used_trackIds_per_col.emplace_back(t1.globalIndex());
10541048
if (cfgDoMix) {
@@ -1070,9 +1064,6 @@ struct Dilepton {
10701064
}
10711065
}
10721066
} else if (pairtype == o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDimuon) {
1073-
std::copy(t1.ambiguousMuonsIds().begin(), t1.ambiguousMuonsIds().end(), std::back_inserter(possibleIds1));
1074-
std::copy(t2.ambiguousMuonsIds().begin(), t2.ambiguousMuonsIds().end(), std::back_inserter(possibleIds2));
1075-
10761067
if (std::find(used_trackIds_per_col.begin(), used_trackIds_per_col.end(), t1.globalIndex()) == used_trackIds_per_col.end()) {
10771068
used_trackIds_per_col.emplace_back(t1.globalIndex());
10781069
if (cfgDoMix) {

PWGEM/Dilepton/Core/DileptonHadronMPC.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,6 @@ struct DileptonHadronMPC {
10591059

10601060
auto posTracks_per_coll = posTracks.sliceByCached(perCollision, collision.globalIndex(), cache);
10611061
auto negTracks_per_coll = negTracks.sliceByCached(perCollision, collision.globalIndex(), cache);
1062-
10631062
used_trackIds_per_col.reserve(posTracks_per_coll.size() + negTracks_per_coll.size());
10641063

10651064
int nuls = 0, nlspp = 0, nlsmm = 0;

PWGEM/Dilepton/Utils/MCUtilities.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ int searchMothers(T& p, U& mcParticles, int pdg, bool equal)
513513
int quark_id = -1;
514514
for (int i : allmothersids) {
515515
auto mother = mcParticles.iteratorAt(i);
516-
int mpdg = abs(mother.pdgCode());
516+
int mpdg = std::abs(mother.pdgCode());
517517
if (mpdg == pdg && mother.pdgCode() == p.pdgCode()) { // found the quark
518518
if (quark_id > -1) { // we already found a possible candidate in the list of mothers, so now we have (at least) two
519519
// LOG(warning) << "Flavour tracking is ambiguous. Stopping here.";

0 commit comments

Comments
 (0)