This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SetupProject DaVinci v35r1 | |
# ipython -i dst-explore.py <inputDST> | |
import sys | |
import GaudiPython as GP | |
from GaudiConf import IOHelper | |
from Configurables import LHCbApp, ApplicationMgr, DataOnDemandSvc | |
from Configurables import SimConf, DigiConf, DecodeRawEvent | |
from Configurables import CondDB, DstConf, PhysConf | |
from Configurables import LoKiSvc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def cluster2mc_particles(cluster, event): | |
links = event['/Event/Link/Raw/VP/Clusters'] | |
refs = links.linkReference() | |
mc_particles = event['MC/Particles'] | |
next_idx = -1 | |
particles = [] | |
for channel, key in links.keyIndex(): | |
if channel == cluster.channelID().channelID(): | |
mc_key = refs[key].objectKey() | |
particles.append(mc_particles.object(mc_key)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def nodes(evt, node=None): | |
nodenames = [] | |
if node is None: | |
root = evt.retrieveObject('') | |
node = root.registry() | |
if node.object(): | |
nodenames.append(node.identifier()) | |
for l in evt.leaves(node): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
# | |
# essence | |
# https://github.com/betatim/essence | |
# | |
# `essence` takes a list of file names and creates a gist from them | |
# | |
set -e |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SetupProject DaVinci v36r0 | |
import sys | |
from GaudiConf import IOHelper | |
from Configurables import LHCbApp, ApplicationMgr, DataOnDemandSvc | |
from Configurables import SimConf, DigiConf, DecodeRawEvent | |
from Configurables import CondDB, DaVinci | |
from Configurables import LoKiSvc | |
from DecayTreeTuple.Configuration import * | |
from Configurables import TupleToolTrigger |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SetupProject DaVinci v36r2 | |
import sys | |
import GaudiPython as GP | |
from GaudiConf import IOHelper | |
from Configurables import LHCbApp, ApplicationMgr, DataOnDemandSvc | |
from Configurables import SimConf, DigiConf, DecodeRawEvent | |
from Configurables import CondDB, DstConf, PhysConf | |
from Configurables import LoKiSvc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SetupProject DaVinci v36r2 | |
import sys | |
import GaudiPython as GP | |
from GaudiConf import IOHelper | |
from Configurables import LHCbApp, ApplicationMgr, DataOnDemandSvc | |
from Configurables import SimConf, DigiConf, DecodeRawEvent | |
from Configurables import CondDB, DstConf, PhysConf | |
from Configurables import LoKiSvc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SetupProject DaVinci v36r2 | |
import sys | |
import GaudiPython as GP | |
from GaudiConf import IOHelper | |
from Configurables import LHCbApp, ApplicationMgr, DataOnDemandSvc | |
from Configurables import SimConf, DigiConf, DecodeRawEvent | |
from Configurables import CondDB, DstConf, PhysConf | |
from Configurables import LoKiSvc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from Ganga.GPI import * | |
import sys | |
import inspect | |
import os | |
local_dir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) | |
if len(sys.argv) not in (2,3): | |
sys.exit("Script requires the ID of a DaVinci (Turbo) or Brunel job to use as inputdata and optionally name of a file containing LFNs to process.") |