Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Moore
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
LHCb
Moore
Commits
1c097d73
Commit
1c097d73
authored
2 years ago
by
Rosen Matev
Browse files
Options
Downloads
Plain Diff
Merge branch 'sevda-soa-packing' into 'master'
test for soa persistency See merge request
!1564
parents
59bac310
8a99276c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1564
test for soa persistency
Pipeline
#4634578
passed
2 years ago
Stage: check
Stage: build
Stage: docs
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Hlt/Hlt2Conf/tests/options/test_soa_packing.py
+67
-0
67 additions, 0 deletions
Hlt/Hlt2Conf/tests/options/test_soa_packing.py
Hlt/Hlt2Conf/tests/qmtest/test_soa_packing.qmt
+33
-0
33 additions, 0 deletions
Hlt/Hlt2Conf/tests/qmtest/test_soa_packing.qmt
with
100 additions
and
0 deletions
Hlt/Hlt2Conf/tests/options/test_soa_packing.py
0 → 100644
+
67
−
0
View file @
1c097d73
###############################################################################
# (c) Copyright 2000-2019 CERN for the benefit of the LHCb Collaboration #
# #
# This software is distributed under the terms of the GNU General Public #
# Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING". #
# #
# In applying this licence, CERN does not waive the privileges and immunities #
# granted to it by virtue of its status as an Intergovernmental Organization #
# or submit itself to any jurisdiction. #
###############################################################################
"""
Test the persistency of SOA objects
- Tracks
"""
from
Configurables
import
(
ApplicationMgr
,
LHCbApp
,
HltPackedBufferWriter
,
SOATrackPacker
,
ProduceSOATracks
,
UniqueIDGeneratorAlg
)
from
PyConf.application
import
configured_ann_svc
from
PyConf.filecontent_metadata
import
register_encoding_dictionary
from
PRConfig
import
TestFileDB
TES
=
"
/Event/Rec
"
locations
=
[]
locations
+=
[
TES
+
"
/Tracks
"
]
encoding_key
=
int
(
register_encoding_dictionary
(
"
PackedObjectLocations
"
,
sorted
(
locations
)),
16
)
uniqueid_gen
=
UniqueIDGeneratorAlg
(
Output
=
TES
+
"
/UniqueId
"
)
# Tracks
track_producer
=
ProduceSOATracks
(
InputUniqueIDGenerator
=
TES
+
"
/UniqueId
"
,
Output
=
"
/Event/Rec/Tracks
"
)
track_packer
=
SOATrackPacker
(
InputName
=
[
TES
+
"
/Tracks
"
],
OutputName
=
TES
+
"
/Buffers/Tracks
"
,
EnableCheck
=
True
,
OutputLevel
=
2
,
EncodingKey
=
encoding_key
)
# Writer
bank_writer
=
HltPackedBufferWriter
(
PackedContainers
=
[
TES
+
"
/Buffers/Tracks
"
],
OutputView
=
"
/Event/RawBanks/DstData
"
,
OutputLevel
=
2
,
SourceID
=
"
Hlt2
"
)
ApplicationMgr
(
TopAlg
=
[
uniqueid_gen
,
track_producer
,
track_packer
,
bank_writer
],
ExtSvc
=
[
configured_ann_svc
(
name
=
'
HltANNSvc
'
)])
app
=
LHCbApp
(
DataType
=
"
Upgrade
"
,
Simulation
=
True
,
)
app
.
EvtMax
=
5
# Pick a file that has the reconstruction available
# Events are not really used, this is a dummy setup
f
=
TestFileDB
.
test_file_db
[
"
upgrade_sim10_Up08_Digi15_D2KsPi_MU
"
]
f
.
setqualifiers
(
configurable
=
app
)
f
.
run
(
configurable
=
app
,
withDB
=
True
)
This diff is collapsed.
Click to expand it.
Hlt/Hlt2Conf/tests/qmtest/test_soa_packing.qmt
0 → 100644
+
33
−
0
View file @
1c097d73
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE extension PUBLIC '-//QM/2.3/Extension//EN' 'http://www.codesourcery.com/qm/dtds/2.3/-//qm/2.3/extension//en.dtd'>
<!--
(c) Copyright 2000-2018 CERN for the benefit of the LHCb Collaboration
This software is distributed under the terms of the GNU General Public
Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING".
In applying this licence, CERN does not waive the privileges and immunities
granted to it by virtue of its status as an Intergovernmental Organization
or submit itself to any jurisdiction.
-->
<!--
Test sprucing on output of {2, 3}body topo lines run using real time reco.
Runs over hlt2_2or3bodytopo_realtime.dst from hlt2_2or3bodytopo_realtime.py and requires the dumped TCK.
-->
<extension
class=
"GaudiTest.GaudiExeTest"
kind=
"test"
>
<argument
name=
"program"
><text>
gaudirun.py
</text></argument>
<argument
name=
"args"
><set>
<text>
$HLT2CONFROOT/tests/options/test_soa_packing.py
</text>
</set></argument>
<argument
name=
"use_temp_dir"
><enumeral>
true
</enumeral></argument>
<argument
name=
"timeout"
><integer>
2400
</integer></argument>
<argument
name=
"validator"
><text>
from Moore.qmtest.exclusions import remove_known_warnings
countErrorLines({"FATAL": 0, "ERROR": 0, "WARNING": 0},
stdout=remove_known_warnings(stdout))
</text></argument>
</extension>
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