Skip to content
Snippets Groups Projects
Commit ecff3e4c authored by scott snyder's avatar scott snyder
Browse files

InDetRecExample: Fix reference to geometry flags.

A couple JO fragments were referencing the variable geoFlags without
defining it, expecting it to have been set up by another JO fragment.
But in some configurations, this variable now references something
of the wrong type --- another fragment must be clobbering it.

Explicitly import the flags object before using it.



Former-commit-id: d47790b0
parent addb03fa
No related branches found
No related tags found
No related merge requests found
......@@ -324,8 +324,9 @@ class ConfiguredNewTrackingSiPattern:
prob1 = InDetFlags.pixelClusterSplitProb1()
prob2 = InDetFlags.pixelClusterSplitProb2()
nhitsToAllowSplitting = 9
if geoFlags.Run() == 1:
from AtlasGeoModel.CommonGMJobProperties import CommonGeometryFlags
if CommonGeometryFlags.Run() == 1:
prob1 = InDetFlags.pixelClusterSplitProb1_run1()
prob2 = InDetFlags.pixelClusterSplitProb2_run1()
nhitsToAllowSplitting = 8
......
......@@ -7,7 +7,8 @@ from InDetRecExample.InDetKeys import InDetKeys
if doAllHits:
doDCS = False
if (globalflags.DataSource() == 'data' and geoFlags.Run() == "RUN2" and conddb.dbdata == "CONDBR2"):
from AtlasGeoModel.CommonGMJobProperties import CommonGeometryFlags
if (globalflags.DataSource() == 'data' and CommonGeometryFlags.Run() == "RUN2" and conddb.dbdata == "CONDBR2"):
doDCS = True
InDetPixelMainsMon=PixelMainMon(name = "InDetPixelMonitoringAllHits",
onTrack = False,
......
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