Skip to content
Snippets Groups Projects
Commit 2f6c15da authored by Patrick Koppenburg's avatar Patrick Koppenburg :leaves:
Browse files

Merge branch 'dfazzini_test_gaudirun_job' into 'master'

Adding test for run DaVinci with gaudirun.py

See merge request !599
parents 7cebe02d d340eddb
No related branches found
No related tags found
2 merge requests!1103Draft: Add AnalysisHelpers to DaVinci Stack,!599Adding test for run DaVinci with gaudirun.py
Pipeline #3353961 passed
###############################################################################
# (c) Copyright 2021 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. #
###############################################################################
"""
Option file used in the qmtest for running DaVinci with the usual gaudirun.py way:
$ ./run gaudirun.py ../options/option_davinci_gaudirun_job.py
"""
__author__ = "Davide Fazzini"
__date__ = "2021-12-03"
from Gaudi.Configuration import ERROR
from PyConf.Algorithms import Gaudi__Examples__VoidConsumer as VoidConsumer
from DaVinci import options
def main():
algs = [VoidConsumer(OutputLevel=ERROR)]
return algs, []
options.evt_max = 10
options.ntuple_file = 'DV-example-ntp.root'
options.histo_file = 'DV-example-his.root'
options.input_raw_format = 0.3
options.enable_unpack = False
options.user_algorithms = "../options/option_davinci_gaudirun_job:main"
options.write_fsr = False
from DaVinci.ConfigurationUpgrade import run_davinci_app
fileDB_key = "Upgrade_Bd2KstarMuMu_ldst"
fileDB_path = "../../../Phys/DaVinci/options/DaVinciDB-Example.yaml"
run_davinci_app(fileDB_key, fileDB_path)
<?xml version="1.0" encoding="utf-8"?>
<!--
###############################################################################
# (c) Copyright 2021 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. #
###############################################################################
-->
<!DOCTYPE extension PUBLIC '-//QM/2.3/Extension//EN' 'http://www.codesourcery.com/qm/dtds/2.3/-//qm/2.3/extension//en.dtd'>
<!--
#######################################################
# SUMMARY OF THIS TEST
# ...................
# Author: dfazzini
# Date: 2021-12-03
# Purpose: Test for running DaVinci with the usual gaudirun.py way
# Prerequisites: None
#######################################################
-->
<extension class="GaudiTest.GaudiExeTest" kind="test">
<argument name="program"><text>gaudirun.py</text></argument>
<argument name="args"><set>
<text>../options/option_davinci_gaudirun_job.py</text>
</set></argument>
<argument name="reference"><text>../refs/test_davinci_gaudirun_job.ref</text></argument>
<argument name="error_reference"><text>../refs/empty.ref</text></argument>
<argument name="validator"><text>
from DaVinciTests.QMTest.DaVinciExclusions import preprocessor
validateWithReference(preproc = preprocessor)
countErrorLines({"FATAL":0})
</text></argument>
</extension>
INFO No MainOptions specified. DaVinci will import no options file!
INFO No MainOptions specified. DaVinci will import no options file!
INFO User algorithm option_davinci_gaudirun_job.main imported successfully!
/***** User DVAppOptions/DVAppOptions **************************************************************
|-annsvc_config = '' (default: '')
|-auditors = [] (default: [])
|-buffer_events = 20000 (default: 20000)
|-callgrind_profile = False (default: False)
|-conddb_tag = 'sim-20171127-vc-md100' (default: '')
|-control_flow_file = '' (default: '')
|-data_flow_file = '' (default: '')
|-data_type = 'Upgrade' (default: '')
|-dddb_tag = 'dddb-20171126' (default: '')
|-detectors = ['VP', 'UT', 'FT', 'Rich1Pmt', 'Rich2Pmt', 'Ecal', 'Hcal', 'Muon', 'Magnet', 'Tr']
| (default: ['VP', 'UT', 'FT', 'Rich1Pmt', 'Rich2Pmt', 'Ecal', 'Hcal', 'Muon', 'Magnet', 'Tr'])
|-dqflags_tag = '' (default: '')
|-enable_unpack = False (default: True)
|-event_store = 'HiveWhiteBoard' (default: 'HiveWhiteBoard')
|-evt_max = 10 (default: -1)
|-evt_pre_filters = {} (default: {})
|-first_evt = 0 (default: 0)
|-histo_file = 'DV-example-his.root' (default: '')
|-ignore_dq_flags = False (default: False)
|-input_files = ['root://eoslhcb.cern.ch//eos/lhcb/MC/Upgrade/LDST/00076720/0000/00076720_00000002_1.ldst', 'root://eoslhcb.cern.ch//eos/lhcb/MC/Upgrade/LDST/00076720/0000/00076720_00000004_1.ldst', 'root://eoslhcb.cern.ch//eos/lhcb/MC/Upgrade/LDST/00076720/0000/00076720_00000043_1.ldst', 'root://eoslhcb.cern.ch//eos/lhcb/MC/Upgrade/LDST/00076720/0000/00076720_00000068_1.ldst']
| (default: [])
|-input_raw_format = 0.3 (default: 0.3)
|-input_type = 'ROOT' (default: 'DST')
|-lines_maker = None
|-lumi = False (default: False)
|-main_options = '' (default: '')
|-memory_pool_size = 10485760 (default: 10485760)
|-merge_genfsr = False (default: False)
|-msg_svc_format = '% F%35W%S %7W%R%T %0W%M' (default: '% F%35W%S %7W%R%T %0W%M')
|-msg_svc_time_format = '%Y-%m-%d %H:%M:%S UTC' (default: '%Y-%m-%d %H:%M:%S UTC')
|-n_event_slots = 1 (default: -1)
|-n_threads = 1 (default: 1)
|-ntuple_file = 'DV-example-ntp.root' (default: '')
|-output_file = '' (default: '')
|-output_level = 3 (default: 3)
|-output_type = '' (default: '')
|-overwrite_data_options = False (default: False)
|-phoenix_filename = '' (default: '')
|-print_freq = 1000 (default: 1000)
|-python_logging_level = 30 (default: 30)
|-root_compression_level = 'LZMA:6' (default: 'LZMA:6')
|-scheduler_legacy_mode = True (default: True)
|-simulation = True (default: False)
|-skip_events = 0 (default: 0)
|-tck = 0 (default: 0)
|-unpack_stream = '/Event/Spruce' (default: '/Event/Spruce')
|-use_iosvc = False (default: False)
|-user_algorithms = '../options/option_davinci_gaudirun_job:main' (default: '')
|-write_fsr = False (default: True)
\----- (End of User DVAppOptions/DVAppOptions) -----------------------------------------------------
INFO User algorithm option_davinci_gaudirun_job.main imported successfully!
ApplicationMgr SUCCESS
====================================================================================================================================
====================================================================================================================================
ApplicationMgr INFO Application Manager Configured successfully
DetectorPersistencySvc INFO Added successfully Conversion service:XmlCnvSvc
DetectorDataSvc SUCCESS Detector description database: git:/lhcb.xml
NTupleSvc INFO Added stream file:DV-example-ntp.root as FILE1
RootHistSvc INFO Writing ROOT histograms to: DV-example-his.root
HistogramPersistencySvc INFO Added successfully Conversion service:RootHistSvc
EventClockSvc.FakeEventTime INFO Event times generated from 0 with steps of 0
ApplicationMgr INFO Application Manager Initialized successfully
DeFTDetector INFO Current FT geometry version = 63
ApplicationMgr INFO Application Manager Started successfully
EventPersistencySvc INFO Added successfully Conversion service:RootCnvSvc
EventSelector INFO Stream:EventSelector.DataStreamTool_1 Def:DATAFILE='root://eoslhcb.cern.ch//eos/lhcb/MC/Upgrade/LDST/00076720/0000/00076720_00000002_1.ldst' SVC='Gaudi::RootEvtSelector' OPT='READ' IgnoreChecksum='YES'
EventSelector SUCCESS Reading Event record 1. Record number within stream 1: 1
ApplicationMgr INFO Application Manager Stopped successfully
LAZY_AND: DaVinci #=10 Sum=10 Eff=|( 100.0000 +- 0.00000 )%|
NONLAZY_OR: UserAnalysis #=10 Sum=10 Eff=|( 100.0000 +- 0.00000 )%|
LAZY_AND: UserAlgorithms #=10 Sum=10 Eff=|( 100.0000 +- 0.00000 )%|
Gaudi__Examples__VoidConsumer/Gaudi__Examples__VoidConsumer #=10 Sum=10 Eff=|( 100.0000 +- 0.00000 )%|
ToolSvc INFO Removing all tools created by ToolSvc
ApplicationMgr INFO Application Manager Finalized successfully
ApplicationMgr INFO Application Manager Terminated successfully
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