Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Stripping
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Stripping
Commits
c2fec884
Commit
c2fec884
authored
1 year ago
by
ngrieser
Browse files
Options
Downloads
Patches
Plain Diff
Update coordinator retention test to run all three years.
parent
9432bdc9
No related branches found
No related tags found
1 merge request
!1814
Update coordinator retention test to run all three years.
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Phys/StrippingSelections/tests/coordinators/retentions/TestFromSettings_all.py
+36
-12
36 additions, 12 deletions
...ons/tests/coordinators/retentions/TestFromSettings_all.py
with
36 additions
and
12 deletions
Phys/StrippingSelections/tests/coordinators/retentions/TestFromSettings_all.py
+
36
−
12
View file @
c2fec884
###############################################################################
# (c) Copyright 2000-20
19
CERN for the benefit of the LHCb Collaboration #
# (c) Copyright 2000-20
23
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
=
10000
0
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
)
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