Skip to content

Commit

Permalink
fix temporary in emplace, implicit conversion to bool (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-fila authored Dec 15, 2024
1 parent f85ad5f commit d27c9e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions k4MarlinWrapper/src/components/Lcio2EDM4hep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,11 @@ StatusCode Lcio2EDM4hepTool::convertCollections(lcio::LCEventImpl* the_event) {
// We deal with subset collections and LCRelations once we have all data
// converted
if (lcio_coll->isSubset()) {
subsetColls.emplace_back(std::make_tuple(edm4hepName, lcio_coll, lcio_coll_type_str));
subsetColls.emplace_back(edm4hepName, lcio_coll, lcio_coll_type_str);
continue;
}
if (lcio_coll_type_str == "LCRelation") {
lcRelationColls.emplace_back(std::make_pair(edm4hepName, lcio_coll));
lcRelationColls.emplace_back(edm4hepName, lcio_coll);
}
if (lcio_coll_type_str == "ReconstructedParticle") {
// Collect the ParticleID meta information because that has to go to the
Expand Down
4 changes: 2 additions & 2 deletions k4MarlinWrapper/src/components/LcioEventOutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ void LcioEventOutput::dropCollections(lcio::LCEventImpl* event, std::vector<lcio
// don't store hit pointers if hits are dropped
if (evt_coll_type == lcio::LCIO::TRACK && th_drop) {
std::bitset<32> flag(evt_coll->getFlag());
flag[lcio::LCIO::TRBIT_HITS] = 0;
flag[lcio::LCIO::TRBIT_HITS] = false;
evt_coll->setFlag(flag.to_ulong());
}
if (evt_coll_type == lcio::LCIO::CLUSTER && ch_drop) {
std::bitset<32> flag(evt_coll->getFlag());
flag[lcio::LCIO::CLBIT_HITS] = 0;
flag[lcio::LCIO::CLBIT_HITS] = false;
evt_coll->setFlag(flag.to_ulong());
}
}
Expand Down

0 comments on commit d27c9e6

Please sign in to comment.