Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Jan 14, 2025
1 parent 3e789ff commit 1f744c1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions k4MarlinWrapper/examples/clicRec_e4h_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@

import os

from Gaudi.Configuration import *
from Gaudi.Configuration import DEBUG, WARNING

from Configurables import LcioEvent, MarlinProcessorWrapper
from k4MarlinWrapper.parseConstants import *
from Configurables import MarlinProcessorWrapper
from k4MarlinWrapper.parseConstants import parseConstants

from Configurables import ToolSvc, Lcio2EDM4hepTool, EDM4hep2LcioTool
from Configurables import Lcio2EDM4hepTool, EDM4hep2LcioTool
from Configurables import k4DataSvc, PodioInput, PodioOutput, EventDataSvc

from k4FWCore import ApplicationMgr, IOSvc
Expand Down Expand Up @@ -1183,7 +1183,7 @@
"DropCollectionTypes": [],
"FullSubsetCollections": ["EfficientMCParticles", "InefficientMCParticles"],
"KeepCollectionNames": [],
"LCIOOutputFile": ["Output_REC_e4h_input.slcio"],
"LCIOOutputFile": [args.rec_output],
"LCIOWriteMode": ["WRITE_NEW"],
}

Expand Down Expand Up @@ -1249,7 +1249,7 @@
"RefinedVertices",
"RefinedVertices_RP",
],
"LCIOOutputFile": ["Output_DST_e4h_input.slcio"],
"LCIOOutputFile": [args.dst_output],
"LCIOWriteMode": ["WRITE_NEW"],
}

Expand Down
8 changes: 4 additions & 4 deletions k4MarlinWrapper/src/components/Lcio2EDM4hep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,14 +223,14 @@ StatusCode Lcio2EDM4hepTool::convertCollections(lcio::LCEventImpl* the_event) {
if (m_podioDataSvc) {
auto& metadataFrame = m_podioDataSvc->getMetaDataFrame();
for (const auto& [collName, pidInfo] : pidInfos) {
edm4hep::utils::PIDHandler::setAlgoInfo(metadataFrame, collName, pidInfo);
edm4hep::utils::PIDHandler::setAlgoInfo(metadataFrame, collName, pidInfo);
}
}
else {
} else {
for (const auto& [collName, pidInfo] : pidInfos) {
k4FWCore::putParameter(podio::collMetadataParamName(collName, edm4hep::labels::PIDAlgoName), pidInfo.algoName);
k4FWCore::putParameter(podio::collMetadataParamName(collName, edm4hep::labels::PIDAlgoType), pidInfo.algoType());
k4FWCore::putParameter(podio::collMetadataParamName(collName, edm4hep::labels::PIDParameterNames), pidInfo.paramNames);
k4FWCore::putParameter(podio::collMetadataParamName(collName, edm4hep::labels::PIDParameterNames),
pidInfo.paramNames);
}
}

Expand Down

0 comments on commit 1f744c1

Please sign in to comment.