From 5b2b2ee3aa35b2322bae9222c8c9c4187fb60ed7 Mon Sep 17 00:00:00 2001 From: tmadlener Date: Thu, 2 Nov 2023 11:08:27 +0100 Subject: [PATCH] Remove no longer necessary passing of magnetic field --- converter/src/DelphesEDM4HepConverter.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/converter/src/DelphesEDM4HepConverter.cc b/converter/src/DelphesEDM4HepConverter.cc index 4b9c034..ddd8de6 100644 --- a/converter/src/DelphesEDM4HepConverter.cc +++ b/converter/src/DelphesEDM4HepConverter.cc @@ -47,7 +47,7 @@ namespace k4SimDelphes { void sortBranchesProcessingOrder(std::vector& branches, std::array const& processingOrder); - edm4hep::MutableTrack convertTrack(Track const* cand, const double magFieldBz); + edm4hep::MutableTrack convertTrack(Track const* cand); void setMotherDaughterRelations(GenParticle const* delphesCand, edm4hep::MutableMCParticle particle, edm4hep::MCParticleCollection& mcParticles); @@ -224,7 +224,7 @@ namespace k4SimDelphes { for (auto iCand = 0; iCand < delphesCollection->GetEntries(); ++iCand) { auto* delphesCand = static_cast(delphesCollection->At(iCand)); - auto track = convertTrack(delphesCand, m_magneticFieldBz); + auto track = convertTrack(delphesCand); // this is the position/time at the IP auto trackerHit0 = trackerHitColl->create(); @@ -540,7 +540,7 @@ namespace k4SimDelphes { }); } - edm4hep::MutableTrack convertTrack(Track const* cand, const double magFieldBz) { + edm4hep::MutableTrack convertTrack(Track const* cand) { edm4hep::MutableTrack track; // Delphes does not really provide any information that would go into the // track itself. But some information can be used to at least partially