Skip to content

Commit

Permalink
Remove the dQ/dx information from the tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed May 28, 2024
1 parent 5f9a69f commit 23dc144
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,10 @@ struct ExampleFunctionalConsumerMultiple final
}

if ((tracks[0].getType() != 1) || (std::abs(tracks[0].getChi2() - 2.1) > 1e-6) || (tracks[0].getNdf() != 3) ||
(std::abs(tracks[0].getDEdx() - 4.1) > 1e-6) || (std::abs(tracks[0].getDEdxError() - 5.1) > 1e-6) ||
(std::abs(tracks[0].getRadiusOfInnermostHit() - 6.1) > 1e-6)) {
std::stringstream error;
error << "Wrong data in tracks collection, expected 1, 2.1, 3, 4.1, 5.1, 6.1 got " << tracks[0].getType() << ", "
<< tracks[0].getChi2() << ", " << tracks[0].getNdf() << ", " << tracks[0].getDEdx() << ", "
<< tracks[0].getDEdxError() << ", " << tracks[0].getRadiusOfInnermostHit() << "";
<< tracks[0].getChi2() << ", " << tracks[0].getNdf() << ", " << tracks[0].getRadiusOfInnermostHit() << "";
throw std::runtime_error(error.str());
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,11 @@ struct ExampleFunctionalConsumerRuntimeCollectionsMultiple final
}
for (auto& [key, tracks] : trackMap) {
if ((tracks[0].getType() != 1) || (std::abs(tracks[0].getChi2() - 2.1) > 1e-6) || (tracks[0].getNdf() != 3) ||
(std::abs(tracks[0].getDEdx() - 4.1) > 1e-6) || (std::abs(tracks[0].getDEdxError() - 5.1) > 1e-6) ||
(std::abs(tracks[0].getRadiusOfInnermostHit() - 6.1) > 1e-6)) {
std::stringstream error;
error << "Wrong data in tracks collection, expected 1, 2.1, 3, 4.1, 5.1, 6.1 got " << tracks[0].getType()
<< ", " << tracks[0].getChi2() << ", " << tracks[0].getNdf() << ", " << tracks[0].getDEdx() << ", "
<< tracks[0].getDEdxError() << ", " << tracks[0].getRadiusOfInnermostHit() << "";
<< ", " << tracks[0].getChi2() << ", " << tracks[0].getNdf() << ", "
<< tracks[0].getRadiusOfInnermostHit() << "";
throw std::runtime_error(error.str());
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ struct ExampleFunctionalProducerMultiple final : k4FWCore::Producer<retType()> {
track.setType(1);
track.setChi2(2.1);
track.setNdf(3);
track.setDEdx(4.1);
track.setDEdxError(5.1);
track.setRadiusOfInnermostHit(6.1);
track.addToSubdetectorHitNumbers(1);
track.addToSubdetectorHitNumbers(4);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,11 @@ struct ExampleFunctionalTransformerRuntimeCollectionsMultiple final
for (auto& [key, tracks] : trackMap) {
auto coll = edm4hep::TrackCollection();
if ((tracks.at(0).getType() != 1) || (std::abs(tracks.at(0).getChi2() - 2.1) > 1e-6) ||
(tracks.at(0).getNdf() != 3) || (std::abs(tracks.at(0).getDEdx() - 4.1) > 1e-6) ||
(std::abs(tracks.at(0).getDEdxError() - 5.1) > 1e-6) ||
(std::abs(tracks.at(0).getRadiusOfInnermostHit() - 6.1) > 1e-6)) {
(tracks.at(0).getNdf() != 3) || (std::abs(tracks.at(0).getRadiusOfInnermostHit() - 6.1) > 1e-6)) {
std::stringstream error;
error << "Wrong data in tracks collection, expected 1, 2.1, 3, 4.1, 5.1, 6.1 got " << tracks.at(0).getType()
<< ", " << tracks.at(0).getChi2() << ", " << tracks.at(0).getNdf() << ", " << tracks.at(0).getDEdx()
<< ", " << tracks.at(0).getDEdxError() << ", " << tracks.at(0).getRadiusOfInnermostHit() << "";
<< ", " << tracks.at(0).getChi2() << ", " << tracks.at(0).getNdf() << ", "
<< tracks.at(0).getRadiusOfInnermostHit() << "";
throw std::runtime_error(error.str());
}
coll->push_back(tracks.at(0).clone());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ StatusCode k4FWCoreTest_CreateExampleEventData::execute(const EventContext&) con
track.setType(1);
track.setChi2(2.1);
track.setNdf(3);
track.setDEdx(4.1);
track.setDEdxError(5.1);
track.setRadiusOfInnermostHit(6.1);
// set vectormembers
#if EDM4HEP_BUILD_VERSION > EDM4HEP_VERSION(0, 9, 0)
Expand Down

0 comments on commit 23dc144

Please sign in to comment.