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

Merge branch 'fix-test_standardbasic_reco14_run' into 'master'

Fix failing test_standardbasic_reco14_run test

See merge request !392
parents 7bf2a49f c249f12e
No related branches found
No related tags found
2 merge requests!1103Draft: Add AnalysisHelpers to DaVinci Stack,!392Fix failing test_standardbasic_reco14_run test (follow up !391)
Pipeline #1593158 passed
###############################################################################
# (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 validisy of CommonParticles.StandardBasic cuts.
syntax: gaudirun.py $DAVINCIMONITORSROOT/options/TestStandardBasicCuts.py
Author: Juan Palacios <palacios@physik.uzh.ch>
"""
##############################################################################
from DaVinci.Configuration import DaVinci
from Gaudi.Configuration import *
#
from CommonParticles import StandardBasic
List = []
for a,b in StandardBasic.locations.iteritems():
print "DVTestCommonParticles adding location", a
List.append(b) # ist of algorithms
DaVinci( UserAlgorithms = List,
EvtMax = 1,
DataType = "2010",
Simulation = False,
InputType = "DST" )
MessageSvc().Format = "% F%60W%S%7W%R%T %0W%M"
<?xml version="1.0" ?>
<!--
(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.
-->
<!DOCTYPE extension PUBLIC '-//QM/2.3/Extension//EN' 'http://www.codesourcery.com/qm/dtds/2.3/-//qm/2.3/extension//en.dtd'>
<extension class="GaudiTest.GaudiExeTest" kind="test">
<argument name="program"><text>gaudirun.py</text></argument>
<argument name="timeout"><integer>6400</integer></argument>
<argument name="args"><set>
<text>../options/CommonParticles/DVTestStandardBasic.py</text>
<text>$PRCONFIGOPTS/DaVinci/Stripping/Collision12-4TeV-Reco14-FULLDST.py</text>
</set></argument>
<argument name="prerequisites"><set>
<tuple><text>commonparticles.test_standardbasic_reco14_init</text><enumeral>PASS</enumeral></tuple>
</set></argument>
<argument name="validator"><text>
findReferenceBlock("""
DaVinciInitAlg SUCCESS 500 events processed
""", stdout, result, causes, signature_offset = 0, id='Events')
findReferenceBlock("""
StdNoPIDsUpPions SUCCESS Number of counters : 1
| Counter | # | sum | mean/eff^* | rms/err^* | min | max |
|*"#accept" | 500 | 492 |( 98.40000 +- 0.5611417)% |
""", stdout, result, causes, signature_offset = 0, id='Particles')
countErrorLines({"FATAL":0})
</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