Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable reco for ILD_FCCee_v01/2 #150

Merged
merged 6 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions StandardConfig/production/ILDReconstruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@
k4DataSvc,
)
from Gaudi.Configuration import INFO

from py_utils import import_from, SequenceLoader, parse_collection_patch_file

from k4FWCore.parseArgs import parser
from k4MarlinWrapper.parseConstants import parseConstants

from py_utils import SequenceLoader, import_from, parse_collection_patch_file

# only non-FCCMDI models
DETECTOR_MODELS = (
"ILD_l2_v02",
Expand All @@ -46,9 +45,14 @@
"ILD_s5_o4_v02",
)
# only FCCMDI
FCCeeMDI_DETECTOR_MODELS_common_MDI = (
"ILD_FCCee_v01",
"ILD_FCCee_v02",
)
FCCeeMDI_DETECTOR_MODELS = (
"ILD_l5_o1_v09",
"ILD_l5_v11",
*FCCeeMDI_DETECTOR_MODELS_common_MDI,
)

REC_COLLECTION_CONTENTS_FILE = "collections_rec_level.txt"
Expand Down Expand Up @@ -137,7 +141,10 @@
if reco_args.compactFile:
compact_file = reco_args.compactFile
else:
compact_file = f"{os.environ['K4GEO']}/ILD/compact/{det_model}/{det_model}.xml"
if det_model in FCCeeMDI_DETECTOR_MODELS_common_MDI:
compact_file = f"{os.path.normpath(os.environ['k4geo_DIR'])}/FCCee/ILD_FCCee/compact/{det_model}/{det_model}.xml"
else:
compact_file = f"{os.path.normpath(os.environ['k4geo_DIR'])}/ILD/compact/{det_model}/{det_model}.xml"

geoSvc = GeoSvc("GeoSvc")
geoSvc.detectors = [compact_file]
Expand Down