Skip to content
Snippets Groups Projects
Commit 6379dc49 authored by Kevin Heinicke's avatar Kevin Heinicke
Browse files

Update FT qmtests for new FT tunings

parent 8cbfcc53
No related branches found
No related tags found
1 merge request!205Update Flavour Tagging qmtest files
"""
Example Options for BTagging algorithm
@author Marco Musy, Kevin Heinicke
@date 2010-09-29, 2018-05-03
"""
from Gaudi.Configuration import *
import GaudiPython
from Configurables import GaudiSequencer
# some selections
from Configurables import CheatedSelection, BDecayTool, MCDecayFinder
myDecay = '[B+ -> (J/psi(1S) => mu+ mu- ) K+]cc'
cheatsel = CheatedSelection("CheatedSelection")
cheatsel.Inputs = [ "Phys/TaggingPions" ]
cheatsel.AssociatorInputData = [ "Phys/CheatedSelection/Particles" ]
cheatsel.OutputLevel = 5
cheatsel.addTool( BDecayTool )
cheatsel.BDecayTool.addTool( MCDecayFinder )
cheatsel.BDecayTool.MCDecayFinder.Decay = myDecay
# setup tagging
location = "Phys/CheatedSelection"
from Configurables import (BTagging, BTaggingTool, BTaggingChecker,
BDecayTool, MCDecayFinder)
from FlavourTagging.Tunings import applyTuning
tag = BTagging("BTagging")
tag.Inputs = [ location ]
#tag.OutputLevel = 5
tag.addTool( BDecayTool )
tag.BDecayTool.addTool( MCDecayFinder )
tag.BDecayTool.MCDecayFinder.Decay = myDecay
tag.addTool( BTaggingTool )
applyTuning(tag.BTaggingTool, 'Run1')
tag.BTaggingTool.AssocPVCriterion = 'PVbyIP' # needed by CheatedSelection
# Flavour tagging Checker
tagcheck = BTaggingChecker("BTaggingChecker")
tagcheck.Inputs = [ location ]
tagcheck.TagsLocation = location+"/FlavourTags"
#tagcheck.OutputLevel = 1
tagcheck.addTool( BDecayTool )
tagcheck.BDecayTool.addTool( MCDecayFinder )
tagcheck.BDecayTool.MCDecayFinder.Decay = myDecay
MessageSvc().Format = "% F%40W%S%7W%R%T %0W%M"
# standard configuration
from Configurables import DaVinci
DaVinci().EvtMax = 1000 # Number of events
DaVinci().SkipEvents = 0 # Events to skip
DaVinci().PrintFreq = 100
DaVinci().DataType = "2012"
DaVinci().CondDBtag = 'sim-20121025-vc-mu100'
DaVinci().DDDBtag = "dddb-20120831"
DaVinci().Simulation = True
from Configurables import StoreExplorerAlg, PrintDecayTree
PrintDecayTree().Inputs = [ location ]
DaVinci().MoniSequence = [
cheatsel,
tag,
tagcheck,
] # The algorithms
#from GaudiConf import IOHelper
#IOHelper().inputFiles(['PFN:root://eoslhcb.cern.ch//eos/lhcb/freezer/lhcb/MC/2012/ALLSTREAMS.DST/00021062/0000/00021062_00000001_1.allstreams.dst']) # Bu2JpsiK
importOptions( '$PRCONFIGOPTS/DaVinci/FlavourTagging/MC12-B2JPsiMuMuK.py' )
appMgr = GaudiPython.AppMgr()
appMgr.run( DaVinci().EvtMax )
......@@ -4,7 +4,7 @@
<argument name="program"><text>python</text></argument>
<argument name="timeout"><integer>3600</integer></argument>
<argument name="args"><set>
<text>../options/Tagging/DVTestTagging-MC12.py</text>
<text>../options/Tagging/DVTestTagging-Summer2017Opt-Run1.py</text>
</set></argument>
<argument name="validator"><text>
findReferenceBlock("""
......
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