Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • DaVinci DaVinci
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Jira
    • Jira
  • Merge requests 13
    • Merge requests 13
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • LHCb
  • DaVinciDaVinci
  • Merge requests
  • !379

Add TurboStream and StrippingStream properties

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Michael Thomas Alexander requested to merge malexand-addstreamconfig into run2-patches Mar 04, 2020
  • Overview 19
  • Commits 11
  • Pipelines 7
  • Changes 4

This helps in setting RootInTES correctly when running on Stripping or Turbo data, which is a constant headache, particularly for new students. It works well for me, so should be generally useful.

DataType, InputType and Simulation should be set by the user as usual, then set either TurboStream for Turbo data, or StrippingStream for stripping data. For Turbo, following the standard procedure it then effectively does

DaVinci().Turbo = True
DaVinci().InputType = "MDST"
if int(DaVinci().DataType) <= 2016 or DaVinci().getProp("Simulation"):
    DaVinci().RootInTES = '/Event/Turbo'
else:
    DaVinci().RootInTES = '/Event/' + DaVinci().TurboStream[0].upper() + DaVinci().TurboStream[1:].lower() + '/Turbo'

For Stripping, it does

DaVinci().Turbo = False
if DaVinci().getProp("InputType").upper() == "MDST":
    DaVinci().RootInTES = '/Event/' + DaVinci().StrippingStream
else:
    DaVinci().RootInTES = ''

It also gives a warning if the stream name isn't one of the known streams, and raises an exception if both StrippingStream and TurboStream are set. If neither are set, it does nothing.

If a user needs to set RootInTES for other configurables before the configuration step, they can use DaVinci().getRootInTES()

Edited Mar 09, 2020 by Michael Thomas Alexander
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: malexand-addstreamconfig