Skip to content
Snippets Groups Projects
Commit c2fec884 authored by ngrieser's avatar ngrieser
Browse files

Update coordinator retention test to run all three years.

parent 9432bdc9
No related branches found
No related tags found
1 merge request!1814Update coordinator retention test to run all three years.
###############################################################################
# (c) Copyright 2000-2019 CERN for the benefit of the LHCb Collaboration #
# (c) Copyright 2000-2023 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". #
......@@ -8,7 +8,25 @@
# granted to it by virtue of its status as an Intergovernmental Organization #
# or submit itself to any jurisdiction. #
###############################################################################
stripping='Stripping34'
import sys
# Pipe in arguments with : echo -n year WG | ./run gaudirun.py TestFromSettings_All.py
arguments = {"year": "2016", "Version": "Stripping34"} # Put in some default values for testing purposes
arglist = []
if not sys.stdin.isatty():
for line in sys.stdin:
for word in line.split():
arglist.append(word)
# Assign these values to the needed keys.
for i in range(len(arglist)):
if i == 0:
arguments["year"] = arglist[i] # set the first value to 'year'
elif i == 1:
arguments["Version"] = arglist[i] # set the second value to 'WG'
# Specify the name of your configuration
year = arguments["year"]
stripping = arguments["Version"] #FOR LIAISONS
from CommonParticlesArchive import CommonParticlesArchiveConf
CommonParticlesArchiveConf().redirect(stripping)
from Gaudi.Configuration import *
......@@ -23,6 +41,7 @@ from StrippingConf.Configuration import StrippingConf, StrippingStream
from StrippingSettings.Utils import strippingConfiguration
from StrippingArchive.Utils import buildStreams
from StrippingArchive import strippingArchive
conf = strippingConfiguration(stripping)
archive = strippingArchive(stripping)
streams = buildStreams(stripping = conf, archive = archive)#, WGs = "QEE")
......@@ -106,13 +125,11 @@ ac = AlgorithmCorrelationsAlg(Algorithms = list(set(sc.selections())))
from Configurables import EventTuple
from Configurables import TupleToolStripping
DaVinci().HistogramFile = 'DV_stripping_histos.root'
DaVinci().EvtMax = 10000
DaVinci().EvtMax = 100000
DaVinci().PrintFreq = 20000
DaVinci().appendToMainSequence( [ sc.sequence() ] )
DaVinci().appendToMainSequence( [ sr ] )
DaVinci().appendToMainSequence( [ dstWriter.sequence() ] )
#DaVinci().DataType = "2016"
#DaVinci().InputType = "RDST"
# might need:
# git lb-use Analysis
......@@ -132,10 +149,17 @@ from Configurables import TimingAuditor, SequencerTimerTool
TimingAuditor().addTool(SequencerTimerTool,name="TIMER")
TimingAuditor().TIMER.NameSize = 60
TimingAuditor().OutputLevel = INFO
#DaVinci().DDDBtag = "dddb-20150724"
#DaVinci().CondDBtag = "cond-20160522"
DaVinci().DataType = '2018'
DaVinci().InputType = 'RDST'
DaVinci().DDDBtag = 'dddb-20171030-3'
DaVinci().CondDBtag = 'cond-20180202'
importOptions("$STRIPPINGSELECTIONSROOT/tests/data/Reco18_Run206538.py")
# Data
if year == "2016":
importOptions("$STRIPPINGSELECTIONSROOT/tests/data/Reco16_DataType2016_Run174858.py")
importOptions("$STRIPPINGSELECTIONSROOT/tests/data/Reco16_DataType2016_Run174858_DV.py")
elif year == "2017":
importOptions("$STRIPPINGSELECTIONSROOT/tests/data/Reco17_DataType2017_Run195969.py")
importOptions("$STRIPPINGSELECTIONSROOT/tests/data/Reco17_DataType2017_Run195969_DV.py")
elif year == "2018":
importOptions("$STRIPPINGSELECTIONSROOT/tests/data/Reco18_DataType2018_Run214741.py")
importOptions("$STRIPPINGSELECTIONSROOT/tests/data/Reco18_DataType2018_Run214741_DV.py")
else:
raise NotImplementedError(year)
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