Skip to content

Instantly share code, notes, and snippets.

******************************************************************************************
Triggers for K
******************************************************************************************
Hlt1_TIS K #lines: 10 #events 321
( 72.27 +- 2.50 ) Hlt1DiMuonHighMassDecision
( 58.26 +- 2.75 ) Hlt1DiMuonLowMassDecision
( 0.31 +- 0.31 ) Hlt1DiProtonDecision
( 8.41 +- 1.55 ) Hlt1SingleMuonHighPTDecision
( 0.31 +- 0.31 ) Hlt1SingleMuonNoIPDecision
( 52.65 +- 2.79 ) Hlt1TrackAllL0Decision
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# =============================================================================
## @file TrgLines.py
#
# Simple demonstration how to collect infomation about the trigger lines relevant
# for certain decays/particles
#
# This file is a part of
# <a href="http://cern.ch/lhcb-comp/Analysis/Bender/index.html">Bender project</a>
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# =============================================================================
## @file TisTosTuple.py
#
# Simple demonstration how to fill n-tuple with TisTos information
#
# This file is a part of
# <a href="http://cern.ch/lhcb-comp/Analysis/Bender/index.html">Bender project</a>
# <b>``Python-based Interactive Environment for Smart and Friendly
Welcome Welcome Welcome Welcome Welcome Welcome Welcome Welcome Welcome Welcome Welcome Welcome Welcome
LoKi LoKi
LoKi LoKi
LoKi Welcome to LoKi! LoKi
LoKi LoKi
LoKi (LOops & KInematics) LoKi
LoKi LoKi
LoKi Smart & Friendly C++ Physics Analysis Tool Kit LoKi
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# =============================================================================
## @file TupleTools.py
#
# Demonstration how to use TupleTools with Bender
#
# This file is a part of
# <a href="http://cern.ch/lhcb-comp/Analysis/Bender/index.html">Bender project</a>
# <b>``Python-based Interactive Environment for Smart and Friendly
# =============================================================================
## get meta-information (paths and tags) from bookeeping
# @param evttype the event type
# The function return the list/tuple of prodcution summaries
# @code
# productions = getBKInfo2 ( 13104231 )
# for entry in productions :
# print 'INFORMATION: %s' % entry
# path = entry ['path' ] ## "long path"
# dddbtag = entry ['DDDBtag' ]
[pclbitep01]~% lb-run -c x86_64-slc6-gcc49-opt LHCbDirac/prod dirac-bookkeeping-decays-path 13104231
('/MC/2012/Beam4000GeV-JulSep2012-MagUp-Nu2.5-EmNoCuts/Sim06b/Trig0x40990042Flagged/Reco14/Stripping20NoPrescalingFlagged/13104231/ALLSTREAMS.DST', 'dddb-20120831', 'sim-20121025-vc-mu100', 88, 1026995, 23972)
('/MC/2012/Beam4000GeV-JulSep2012-MagDown-Nu2.5-EmNoCuts/Sim06b/Trig0x40990042Flagged/Reco14/Stripping20NoPrescalingFlagged/13104231/ALLSTREAMS.DST', 'dddb-20120831', 'sim-20121025-vc-md100', 88, 1019995, 23976)
('/MC/2011/Beam3500GeV-2011-MagDown-Nu2-Pythia6/Sim08a/Digi13/Trig0x40760037/Reco14a/Stripping20r1NoPrescalingFlagged/13104231/ALLSTREAMS.DST', 'Sim08-20130503', 'Sim08-20130503-vc-md100', 16, 251249, 24507)
('/MC/2011/Beam3500GeV-2011-MagUp-Nu2-Pythia6/Sim08a/Digi13/Trig0x40760037/Reco14a/Stripping20r1NoPrescalingFlagged/13104231/ALLSTREAMS.DST', 'Sim08-20130503', 'Sim08-20130503-vc-mu100', 17, 273999, 24521)
('/MC/2011/Beam3500GeV-2011-MagDown-Nu2-Pythia8/Sim08a/Digi13/Trig0x40760037/Reco14a/St
[] % ./run get-dbtags /lhcb/MC/2012/ALLSTREAMS.DST/00033494/0000/00033494_00000013_1.allstreams.dst
# get-dbtags INFO ****************************************************************************************************
...
# get-dbtags INFO ****************************************************************************************************
# BenderTools.GetDBtags INFO Use the file PFN:root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/2012/ALLSTREAMS.DST/00033494/0000/00033494_00000013_1.allstreams.dst
# BenderTools.GetDBtags INFO ------------+---------------------------------------------------------
# BenderTools.GetDBtags INFO Tags:
# BenderTools.GetDBtags INFO ------------+---------------------------------------------------------
# BenderTools.GetDBtags INFO DDDB : dddb-20130929-1
# BenderTools.GetDBtags INFO SIMCOND : sim-20130522-1-vc-mu100
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# =============================================================================
## @file MCtruth.py
#
# Very simple manipulations with MC-truth events
#
# This file is a part of
# <a href="http://cern.ch/lhcb-comp/Analysis/Bender/index.html">Bender project</a>
# <b>``Python-based Interactive Environment for Smart and Friendly
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# =============================================================================
## @file MCmatch.py
#
# Very simple manipulations with MC-truth matched events
#
# This file is a part of
# <a href="http://cern.ch/lhcb-comp/Analysis/Bender/index.html">Bender project</a>
# <b>``Python-based Interactive Environment for Smart and Friendly