Skip to content

Commit

Permalink
Add a converter back to LCIO
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Jun 24, 2024
1 parent 2d2972e commit bb68616
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions CLDConfig/CLDReconstruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@

algList[-1].Lcio2EDM4hepTool = trackDigiConverter

index = len(algList)

# tracker hit digitisation
sequenceLoader.load("Tracking/TrackingDigi")

Expand All @@ -126,6 +128,26 @@
elif CONFIG["Tracking"] == "Conformal":
sequenceLoader.load("Tracking/ConformalTracking")

trackingConverter = EDM4hep2LcioTool("InputConverter")
trackingConverter.convertAll = False
trackingConverter.collNameMapping = {"VXDTrackerHitRelations" : "VXDTrackerHitRelations",
"VXDTrackerHits" : "VXDTrackerHits",
"VXDEndcapTrackerHitRelations" : "VXDEndcapTrackerHitRelations",
"VXDEndcapTrackerHits" : "VXDEndcapTrackerHits",
"InnerTrackerBarrelHitsRelations" : "InnerTrackerBarrelHitsRelations",
"ITrackerHits" : "ITrackerHits",
"InnerTrackerEndcapHitsRelations" : "InnerTrackerEndcapHitsRelations",
"ITrackerEndcapHits" : "ITrackerEndcapHits",
"OuterTrackerBarrelHitsRelations" : "OuterTrackerBarrelHitsRelations",
"OTrackerHits" : "OTrackerHits",
"OuterTrackerEndcapHitsRelations" : "OuterTrackerEndcapHitsRelations",
"OuterTrackerEndcapHits" : "OuterTrackerEndcapHits",
}

trackingConverter.OutputLevel = DEBUG

algList[index].EDM4hep2LcioTool = trackingConverter

sequenceLoader.load("Tracking/Refit")

# calorimeter digitization and pandora
Expand Down

0 comments on commit bb68616

Please sign in to comment.