Skip to content
Snippets Groups Projects
Commit 1c097d73 authored by Rosen Matev's avatar Rosen Matev :sunny:
Browse files

Merge branch 'sevda-soa-packing' into 'master'

test for soa persistency

See merge request !1564
parents 59bac310 8a99276c
No related branches found
No related tags found
1 merge request!1564test for soa persistency
Pipeline #4634578 passed
###############################################################################
# (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)
<?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>
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