Skip to content
Snippets Groups Projects
Commit bc6fc889 authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Fix tests

parent 83afb0c2
No related branches found
No related tags found
2 merge requests!3702merge counter decoder into Louis' original branch,!3088New ODIN implementation
......@@ -146,7 +146,7 @@ namespace LHCb {
const CLID& clID() const override { return this->classID(); }
static const CLID& classID() { return CLID_ODIN; }
static constexpr std::uint8_t version() { return 7; }
static constexpr int version() { return 7; }
enum Fields {
RunNumberSize = 32,
......
......@@ -113,7 +113,10 @@ preprocessor = (
r"INFO \+\+ Loaded \s*\d+ conditions from",
r"Alignments\s*INFO \+\+ Add dependency:",
r"Align\s*INFO Alignments:",
]) +
]) + RegexpReplacer( # Hide specific ODIN type
when="StoreExplorerAlg",
orig=r'LHCb::ODINImplementation::v7::OD',
repl=r'LHCb::ODIN') +
# Grouping
SortGroupOfLines(
r'.*SUCCESS (Exceptions/Errors/Warnings/Infos Statistics :| #WARNINGS =| #ERRORS =|List of booked \dD histograms in directory).*'
......
......@@ -27,9 +27,9 @@ import GaudiPython as GP
from PRConfig import TestFileDB
from GaudiKernel.DataHandle import DataHandle
LUMI_BIT = cppyy.gbl.LHCb.ODIN.Lumi
LUMI_BIT = cppyy.gbl.LHCb.ODIN.EventTypes.Lumi
LUMI_FRACTION = 0.25
NOBIAS_BIT = cppyy.gbl.LHCb.ODIN.NoBias
NOBIAS_BIT = cppyy.gbl.LHCb.ODIN.EventTypes.NoBias
NOBIAS_FRACTION = 0.5
unpack = LHCb__UnpackRawEvent(
......@@ -80,7 +80,7 @@ while event < app.EvtMax:
assert odin.eventType() & LUMI_BIT == 0, "Unexpected Lumi bit"
assert odin.eventType() & NOBIAS_BIT == 0, "Unexpected NoBias bit"
assert odin.bunchCrossingType(
) == cppyy.gbl.LHCb.ODIN.BeamCrossing, "Unexpected non beam-beam crossing"
) == cppyy.gbl.LHCb.ODIN.BXTypes.BeamCrossing, "Unexpected non beam-beam crossing"
emulated = TES[str(emulator.OutputODINLocation)]
assert emulated, "Emulated ODIN not found"
......
......@@ -68,9 +68,6 @@ ODIN_ALL = LoKi.Constant(_o1 + ',bool')(True)
## @see LoKi::Cuts::ODIN_BUNCH
ODIN_BUNCH = LoKi.Odin.BunchId()
## @see LoKi::Cuts::ODIN_BXCURRENT
ODIN_BXCURRENT = LoKi.Odin.BunchCurrent()
## @see LoKi::Cuts::ODIN_BXID
ODIN_BXID = LoKi.Odin.BXId
......@@ -80,15 +77,9 @@ ODIN_BXTYP = LoKi.Odin.BXType()
## @see LoKi::Cuts::ODIN_CALSTEP
ODIN_CALSTEP = LoKi.Odin.CalibrationStep()
## @see LoKi::Cuts::ODIN_ForceBit
ODIN_FORCEBIT = LoKi.Odin.ForceBit()
## @see LoKi::Cuts::ODIN_EVTTYP
ODIN_EVTTYP = LoKi.Odin.EventType()
## @see LoKi::Cuts::ODIN_ERRBITS
ODIN_ERRBITS = LoKi.Odin.ErrorBits()
## @see LoKi::Cuts::ODIN_FALSE
ODIN_FALSE = LoKi.Constant(_o1 + ',bool')(False)
......@@ -107,9 +98,6 @@ ODIN_ORBIT = LoKi.Odin.Orbit()
## @see LoKi::Cuts::ODIN_PRESCALE
ODIN_PRESCALE = LoKi.Odin.Prescale
## @see LoKi::Cuts::ODIN_ROTYP
ODIN_ROTYP = LoKi.Odin.ReadOutType()
## @see LoKi::Cuts::ODIN_RUN
ODIN_RUN = LoKi.Odin.Run()
......
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