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
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Peter Sherwood
athena
Commits
ccf085bf
Commit
ccf085bf
authored
4 years ago
by
Attila Krasznahorkay
Browse files
Options
Downloads
Patches
Plain Diff
Made xAODEventInfoCnv compatible with AthAnalysis.
parent
1404dd88
No related branches found
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Event/xAOD/xAODEventInfoCnv/CMakeLists.txt
+2
-2
2 additions, 2 deletions
Event/xAOD/xAODEventInfoCnv/CMakeLists.txt
Event/xAOD/xAODEventInfoCnv/python/xAODEventInfoCnvConfig.py
+9
-3
9 additions, 3 deletions
Event/xAOD/xAODEventInfoCnv/python/xAODEventInfoCnvConfig.py
with
11 additions
and
5 deletions
Event/xAOD/xAODEventInfoCnv/CMakeLists.txt
+
2
−
2
View file @
ccf085bf
...
@@ -5,7 +5,7 @@ atlas_subdir( xAODEventInfoCnv )
...
@@ -5,7 +5,7 @@ atlas_subdir( xAODEventInfoCnv )
# Optional dependencies:
# Optional dependencies:
set
(
extra_libs
)
set
(
extra_libs
)
if
(
NOT SIMULATIONBASE AND NOT GENERATIONBASE
)
if
(
NOT SIMULATIONBASE AND NOT GENERATIONBASE
AND NOT XAOD_ANALYSIS
)
set
(
extra_libs BeamSpotConditionsData LumiBlockData
)
set
(
extra_libs BeamSpotConditionsData LumiBlockData
)
endif
()
endif
()
...
@@ -30,7 +30,7 @@ atlas_add_test( EvenInfoCnvConfigTestMT
...
@@ -30,7 +30,7 @@ atlas_add_test( EvenInfoCnvConfigTestMT
SCRIPT test/EventInfoCnv_test.py -n 25 -t 3
SCRIPT test/EventInfoCnv_test.py -n 25 -t 3
PROPERTIES TIMEOUT 300
)
PROPERTIES TIMEOUT 300
)
if
(
NOT SIMULATIONBASE AND NOT GENERATIONBASE
)
if
(
NOT SIMULATIONBASE AND NOT GENERATIONBASE
AND NOT XAOD_ANALYSIS
)
atlas_add_test
(
EventInfoOverlayConfigTest
atlas_add_test
(
EventInfoOverlayConfigTest
SCRIPT test/EventInfoOverlay_test.py
SCRIPT test/EventInfoOverlay_test.py
PROPERTIES TIMEOUT 300
)
PROPERTIES TIMEOUT 300
)
...
...
This diff is collapsed.
Click to expand it.
Event/xAOD/xAODEventInfoCnv/python/xAODEventInfoCnvConfig.py
+
9
−
3
View file @
ccf085bf
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
"""
"""
from
AthenaCommon.Logging
import
logging
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
from
AthenaConfiguration.ComponentFactory
import
CompFactory
from
AthenaConfiguration.ComponentFactory
import
CompFactory
...
@@ -21,9 +22,14 @@ def EventInfoCnvAlgCfg(flags, name="EventInfoCnvAlg",
...
@@ -21,9 +22,14 @@ def EventInfoCnvAlgCfg(flags, name="EventInfoCnvAlg",
# TODO: luminosity
# TODO: luminosity
if
not
disableBeamSpot
and
flags
.
Common
.
Project
not
in
[
"
AthSimulation
"
,
"
AthGeneration
"
]:
if
not
disableBeamSpot
:
from
BeamSpotConditions.BeamSpotConditionsConfig
import
BeamSpotCondAlgCfg
try
:
acc
.
merge
(
BeamSpotCondAlgCfg
(
flags
))
from
BeamSpotConditions.BeamSpotConditionsConfig
import
BeamSpotCondAlgCfg
acc
.
merge
(
BeamSpotCondAlgCfg
(
flags
))
except
ImportError
:
log
=
logging
.
getLogger
(
'
EventInfoCnvAlgCfg
'
)
log
.
info
(
'
BeamSpotConditions not available, not using it
'
)
pass
xAODMaker__EventInfoCnvAlg
=
CompFactory
.
xAODMaker
.
EventInfoCnvAlg
xAODMaker__EventInfoCnvAlg
=
CompFactory
.
xAODMaker
.
EventInfoCnvAlg
alg
=
xAODMaker__EventInfoCnvAlg
(
name
,
**
kwargs
)
alg
=
xAODMaker__EventInfoCnvAlg
(
name
,
**
kwargs
)
...
...
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