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
2ce0ff71
Commit
2ce0ff71
authored
6 years ago
by
Tomasz Bold
Browse files
Options
Downloads
Patches
Plain Diff
fixed BSCnvSvc vonfig & added test
Former-commit-id:
45675d18
parent
f73ff63e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Event/ByteStreamCnvSvc/CMakeLists.txt
+3
-0
3 additions, 0 deletions
Event/ByteStreamCnvSvc/CMakeLists.txt
Event/ByteStreamCnvSvc/python/ByteStreamConfig.py
+7
-6
7 additions, 6 deletions
Event/ByteStreamCnvSvc/python/ByteStreamConfig.py
with
10 additions
and
6 deletions
Event/ByteStreamCnvSvc/CMakeLists.txt
+
3
−
0
View file @
2ce0ff71
...
@@ -122,6 +122,9 @@ _add_test( AtlCopyBSEvent5_test
...
@@ -122,6 +122,9 @@ _add_test( AtlCopyBSEvent5_test
# "AtlCopyBSEvent -e all -o empty.data /afs/cern.ch/atlas/maxidisk/d108/cranshaw/nightlies/RAW.01524408._005549.data.1"
# "AtlCopyBSEvent -e all -o empty.data /afs/cern.ch/atlas/maxidisk/d108/cranshaw/nightlies/RAW.01524408._005549.data.1"
# DEPENDS ByteStreamCnvSvc_AtlFindBSEvent4_test_ctest )
# DEPENDS ByteStreamCnvSvc_AtlFindBSEvent4_test_ctest )
atlas_add_test
(
ByteStreamConfigTest SCRIPT python -m ByteStreamCnvSvc.ByteStreamConfig POST_EXEC_SCRIPT nopost.sh
)
# Install files from the package:
# Install files from the package:
atlas_install_python_modules
(
python/*.py
)
atlas_install_python_modules
(
python/*.py
)
atlas_install_joboptions
(
share/*.py
)
atlas_install_joboptions
(
share/*.py
)
...
...
This diff is collapsed.
Click to expand it.
Event/ByteStreamCnvSvc/python/ByteStreamConfig.py
+
7
−
6
View file @
2ce0ff71
...
@@ -46,10 +46,12 @@ def TrigBSReadCfg( inputFlags ):
...
@@ -46,10 +46,12 @@ def TrigBSReadCfg( inputFlags ):
from
IOVDbMetaDataTools.IOVDbMetaDataToolsConf
import
IOVDbMetaDataTool
from
IOVDbMetaDataTools.IOVDbMetaDataToolsConf
import
IOVDbMetaDataTool
iovMetaDataTool
=
IOVDbMetaDataTool
()
iovMetaDataTool
=
IOVDbMetaDataTool
()
acc
.
addPublicTool
(
iovMetaDataTool
)
from
ByteStreamCnvSvc.ByteStreamCnvSvcConf
import
ByteStreamMetadataTool
from
ByteStreamCnvSvc.ByteStreamCnvSvcConf
import
ByteStreamMetadataTool
bsMetaDataTool
=
ByteStreamMetadataTool
()
bsMetaDataTool
=
ByteStreamMetadataTool
()
acc
.
addPublicTool
(
bsMetaDataTool
)
from
StoreGate.StoreGateConf
import
ProxyProviderSvc
,
StoreGateSvc
from
StoreGate.StoreGateConf
import
ProxyProviderSvc
,
StoreGateSvc
metaDataStore
=
StoreGateSvc
(
"
MetaDataStore
"
)
metaDataStore
=
StoreGateSvc
(
"
MetaDataStore
"
)
acc
.
addService
(
metaDataStore
)
acc
.
addService
(
metaDataStore
)
...
@@ -111,10 +113,9 @@ def TrigBSReadCfg( inputFlags ):
...
@@ -111,10 +113,9 @@ def TrigBSReadCfg( inputFlags ):
return
acc
return
acc
if
__name__
==
"
__main__
"
:
if
__name__
==
"
__main__
"
:
from
AthenaConfiguration.ConfigFlags
import
ConfigFlagContainer
from
AthenaConfiguration.AllConfigFlags
import
ConfigFlags
flags
=
ConfigFlagContainer
()
ConfigFlags
.
Input
.
Files
=
[
"
/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/TrigP1Test/data17_13TeV.00327265.physics_EnhancedBias.merge.RAW._lb0100._SFO-1._0001.1
"
]
flags
.
Input
.
Files
=
[
"
dummy.data
"
]
acc
=
TrigBSReadCfg
(
f
lags
)
acc
=
TrigBSReadCfg
(
ConfigF
lags
)
acc
.
store
(
file
(
"
test.pkl
"
,
"
w
"
)
)
acc
.
store
(
file
(
"
test.pkl
"
,
"
w
"
)
)
print
"
All OK
"
print
"
All OK
"
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