diff --git a/converter/src/DelphesEDM4HepConverter.cc b/converter/src/DelphesEDM4HepConverter.cc index d4b9110..e69fb3c 100644 --- a/converter/src/DelphesEDM4HepConverter.cc +++ b/converter/src/DelphesEDM4HepConverter.cc @@ -39,8 +39,8 @@ namespace k4SimDelphes { * ensure that products required by later stages are producd early enough */ constexpr std::array PROCESSING_ORDER = { - "GenParticle", "Track", "Tower", "ParticleFlowCandidate", "Muon", "Electron", "Photon", - "Jet", "MissingET", "SclalarHT"}; + "GenParticle", "Track", "Tower", "ParticleFlowCandidate", "Muon", "Electron", "Photon", + "Jet", "MissingET", "ScalarHT"}; template void sortBranchesProcessingOrder(std::vector& branches, @@ -435,11 +435,9 @@ namespace k4SimDelphes { } void DelphesEDM4HepConverter::processScalarHT(const TClonesArray* delphesCollection, std::string const& branch) { - auto* collection = createCollection(branch); + auto* collection = createCollection>(branch); auto* delphesCand = static_cast(delphesCollection->At(0)); - - auto cand = collection->create(); - cand.addToParameters(delphesCand->HT); + collection->push_back(delphesCand->HT); } template diff --git a/doc/output_config.md b/doc/output_config.md index 9f064b7..35123b3 100644 --- a/doc/output_config.md +++ b/doc/output_config.md @@ -109,7 +109,7 @@ classes. For the conversion the Delphes classes are taken from the `TreeWriter` | `Electron` | `ReconstructedParticle` (subset collection) | | `Photon` | `ReconstructedParticle` (subset collection) | | `MissingET` | `ReconstructedParticle` | -| `ScalarHT` | `ParticleID` | +| `ScalarHT` | `UserDataCollection` | | `ParticleFlowCandidate` | `ReconstructedParticle` | | n/a | `RecoMCParticleLink` |