Skip to content
Snippets Groups Projects
Commit 1eb52d1e authored by FASER Reco's avatar FASER Reco
Browse files

Read data alignment from CONDBR3

parent fc93c154
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
from AthenaConfiguration.ComponentFactory import CompFactory
from AthenaConfiguration.Enums import ProductionStep
from IOVDbSvc.IOVDbSvcConfig import addFolders, addFoldersSplitOnline
from IOVDbSvc.IOVDbSvcConfig import addFolders #, addFoldersSplitOnline
def FaserSCT_GeometryCfg( flags ):
from FaserGeoModel.GeoModelConfig import GeoModelCfg
......@@ -27,17 +27,20 @@ def FaserSCT_GeometryCfg( flags ):
if flags.GeoModel.Align.Disable:
return acc
# Don't specify db= in addFolders calls below
# dbname set globally to OFLP200 for MC and CONDBR3 for data
# Now have proper data and MC DBs for the alignment
if flags.GeoModel.Align.Dynamic:
# acc.merge(addFoldersSplitOnline(flags,"INDET","/Indet/Onl/AlignL1/ID","/Indet/AlignL1/ID",className="CondAttrListCollection"))
# acc.merge(addFoldersSplitOnline(flags,"INDET","/Indet/Onl/AlignL2/SCT","/Indet/AlignL2/SCT",className="CondAttrListCollection"))
# acc.merge(addFoldersSplitOnline(flags,"INDET","/Indet/Onl/AlignL3","/Indet/AlignL3",className="AlignableTransformContainer"))
print("FaserSCT dynamic align flag is not supported!")
else:
print("Override Alignment dbname to OFLP200, fix this when alignment available in CONDBR3")
if flags.Common.Project != "AthSimulation" and (flags.Common.ProductionStep != ProductionStep.Simulation or flags.Overlay.DataOverlay):
acc.merge(addFolders(flags,"/Tracker/Align", "SCT_OFL", className="AlignableTransformContainer", db="OFLP200"))
acc.merge(addFolders(flags,"/Tracker/Align", "SCT_OFL", className="AlignableTransformContainer"))
else:
acc.merge(addFolders(flags, "/Tracker/Align", "SCT_OFL", db="OFLP200"))
acc.merge(addFolders(flags, "/Tracker/Align", "SCT_OFL"))
if flags.Common.Project != "AthSimulation": # Protection for AthSimulation builds
if flags.Common.ProductionStep != ProductionStep.Simulation or flags.Overlay.DataOverlay:
FaserSCT_AlignCondAlg = CompFactory.FaserSCT_AlignCondAlg
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment