Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michael Donald Hank
athena
Commits
8f10285d
Verified
Commit
8f10285d
authored
3 months ago
by
Tadej Novak
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup Input.OverrideRunNumber flag usage in event selector config
parent
9b3dcc13
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Database/AthenaPOOL/AthenaPoolCnvSvc/python/PoolReadConfig.py
+4
-4
4 additions, 4 deletions
...base/AthenaPOOL/AthenaPoolCnvSvc/python/PoolReadConfig.py
with
4 additions
and
4 deletions
Database/AthenaPOOL/AthenaPoolCnvSvc/python/PoolReadConfig.py
+
4
−
4
View file @
8f10285d
...
...
@@ -31,24 +31,24 @@ def EventSelectorAthenaPoolCfg(flags):
assert
DataRunNumber
>=
0
,
(
"
flags.Input.OverrideRunNumber was True, but provided DataRunNumber (%d) is negative.
"
"
Use a real run number from data.
"
%
DataRunNumber
)
evSel
.
OverrideRunNumber
=
flags
.
Input
.
OverrideRunNumber
evSel
.
OverrideRunNumber
=
True
evSel
.
RunNumber
=
DataRunNumber
evSel
.
FirstLB
=
FirstLB
evSel
.
InitialTimeStamp
=
InitialTimeStamp
# Necessary to avoid a crash
if
hasattr
(
evSel
,
"
OverrideRunNumberFromInput
"
):
evSel
.
OverrideRunNumberFromInput
=
flags
.
Input
.
OverrideRunNumber
evSel
.
OverrideRunNumberFromInput
=
True
if
OldRunNumber
>
0
:
evSel
.
OldRunNumber
=
OldRunNumber
elif
flags
.
Common
.
ProductionStep
in
[
ProductionStep
.
Simulation
,
ProductionStep
.
FastChain
]:
# Behaviour for Simulation and FastChain jobs using RunAndLumiOverrideList
from
AthenaKernel.EventIdOverrideConfig
import
getMinMaxRunNumbers
,
getFirstLumiBlock
minMax
=
getMinMaxRunNumbers
(
flags
)
evSel
.
OverrideRunNumber
=
flags
.
Input
.
OverrideRunNumber
evSel
.
OverrideRunNumber
=
True
evSel
.
RunNumber
=
minMax
[
0
]
evSel
.
FirstLB
=
getFirstLumiBlock
(
flags
,
minMax
[
0
])
evSel
.
InitialTimeStamp
=
flags
.
IOVDb
.
RunToTimestampDict
.
get
(
minMax
[
0
],
1
)
# TODO fix repeated configuration
if
hasattr
(
evSel
,
"
OverrideRunNumberFromInput
"
):
evSel
.
OverrideRunNumberFromInput
=
flags
.
Input
.
OverrideRunNumber
evSel
.
OverrideRunNumberFromInput
=
True
else
:
# Behaviour for Digitization jobs using RunAndLumiOverrideList
pass
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment