Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DaVinci
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
DaVinci
Merge requests
!148
Further removal of tests relying on 2015 data Tesla test removed
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Further removal of tests relying on 2015 data Tesla test removed
eduardo-DaVinciTests-Tesla
into
2017-patches
Overview
1
Commits
1
Pipelines
0
Changes
10
Merged
Eduardo Rodrigues
requested to merge
eduardo-DaVinciTests-Tesla
into
2017-patches
7 years ago
Overview
1
Commits
1
Pipelines
0
Changes
10
Expand
0
0
Merge request reports
Compare
2017-patches
2017-patches (base)
and
latest version
latest version
5de7c83f
1 commit,
7 years ago
10 files
+
0
−
505
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
10
Search (e.g. *.vue) (Ctrl+P)
Phys/Tesla/tests/options/DV_2015_CaloCheck.py deleted
100644 → 0
+
0
−
72
Options
from
Gaudi.Configuration
import
*
from
LHCbKernel.Configuration
import
*
from
Configurables
import
GaudiSequencer
,
RawEventJuggler
from
Configurables
import
DaVinci
from
Configurables
import
DecodeRawEvent
from
Configurables
import
DstConf
DstConf
().
Turbo
=
True
DaVinci
()
DaVinci
().
EvtMax
=-
1
DaVinci
().
DataType
=
"
2015
"
DaVinci
().
Turbo
=
True
from
GaudiConf
import
IOHelper
IOHelper
().
inputFiles
(
[
"
tesla_2015_TCK.dst
"
]
,
clear
=
True
)
import
GaudiPython
from
Gaudi.Configuration
import
ApplicationMgr
from
Configurables
import
LoKiSvc
from
GaudiKernel
import
ROOT6WorkAroundEnabled
if
ROOT6WorkAroundEnabled
(
'
ROOT-7492
'
):
# trigger autoloading of LHCbKernel dictionary
GaudiPython
.
gbl
.
LHCb
.
LHCbID
# trigger autoloading of DigiEvent dictionary
GaudiPython
.
gbl
.
LHCb
.
CaloDigit
gaudi
=
GaudiPython
.
AppMgr
()
gaudi
.
initialize
()
TES
=
gaudi
.
evtsvc
()
version
=
'
v10r0_0x00fa0051
'
from
TurboStreamProd.helpers
import
*
from
TurboStreamProd
import
prodDict
lines
=
streamLines
(
prodDict
,
version
,
'
DiMuon
'
,
debug
=
True
)
lines
+=
streamLines
(
prodDict
,
version
,
'
Charm
'
,
debug
=
True
)
lines
+=
streamLines
(
prodDict
,
version
,
'
CharmSpec
'
,
debug
=
True
)
n
=
0
passed
=
True
while
True
:
gaudi
.
run
(
1
)
if
not
TES
[
'
DAQ/RawEvent
'
]:
break
# probably end of file
### Check all hypos and clusters have valid positions
for
line
in
lines
:
parts
=
TES
[
"
Turbo/
"
+
line
+
"
/Particles
"
]
if
hasattr
(
parts
,
"
__iter__
"
):
for
p
in
parts
:
if
p
.
proto
():
for
hypo
in
p
.
proto
().
calo
():
hypopos
=
hypo
.
target
().
position
()
if
(
hypopos
.
x
()
**
2
+
hypopos
.
y
()
**
2
+
hypopos
.
z
()
**
2
+
hypopos
.
e
()
**
2
)
<
5.0
:
passed
=
False
print
"
Invalid hypo position
"
break
for
cluster
in
hypo
.
target
().
clusters
():
clusterpos
=
cluster
.
target
().
position
()
if
(
clusterpos
.
x
()
**
2
+
clusterpos
.
y
()
**
2
+
clusterpos
.
z
()
**
2
+
clusterpos
.
e
()
**
2
)
<
5.0
:
passed
=
False
print
"
Invalid cluster position
"
break
n
+=
1
n
+=
1
if
passed
==
False
:
break
if
passed
==
False
:
break
print
"
Analysed
"
+
str
(
n
)
+
"
calo classes successfully
"
Loading