,"MPK": "WM('p+','K-')" ,"MKP": "WM('K+','p~-')" } preseltuple.Decay = "B0 -> ^pi+ ^pi-" preseltuple.TupleName = "PreSelB2HH" evttuple = EventTuple("EventInfo") evttuple.ToolList += [ "TupleToolEventInfo" ,"TupleToolTrigger" ] evttuple.addTool(TupleToolTrigger()) evttuple.TupleToolTrigger.Verbose = True evttuple.TupleToolTrigger.VerboseL0 = True
BuTuple.Bplus.TupleToolTISTOS.addTool(TriggerTisTos, "TriggerTisTos") BuTuple.Bplus.TupleToolTISTOS.TriggerTisTos.TOSFracMuon = 0. BuTuple.Bplus.ToolList += ["TupleToolTISTOS"] ########################################################### ########################################################### TupleSeq.ModeOR = True TupleSeq.ShortCircuit = False ########################################################### seqB2JpsiX.Members += [TupleSeq] seqB2JpsiX.ModeOR = True seqB2JpsiX.ShortCircuit = False from Configurables import EventTuple, TupleToolTrigger evtTuple = EventTuple() evtTuple.ToolList += ["TupleToolEventInfo", "TupleToolTrigger"] #DaVinci().EvtMax = -1 DaVinci().EvtMax = 5000 DaVinci().SkipEvents = -1 DaVinci().DataType = '2011' from Configurables import CondDB if job == 'Grid': CondDB(UseOracle=True) if data == 'data': CondDB().UseLatestTags = ["2011"] # MC if data == 'mc10': DaVinci().DataType = '2010'
def ConfigDaVinci(DataType, DataYear, UserAlgs=[], RootInTES="", isTest=False, Mag="", restrip=[], onlytuple=False): from Configurables import DaVinci from Configurables import CondDB DaVinci().UserAlgorithms += UserAlgs DaVinci().EvtMax = -1 DaVinci().PrintFreq = 10000 if isTest: DaVinci().EvtMax = 1000 if DataType == "CL": DaVinci().EvtMax = 10000 #DaVinci().EvtMax = 100000 DaVinci().PrintFreq = 100 DaVinci().TupleFile = "DVNtuple.root" if onlytuple: return DaVinci().DataType = "20" + str(DataYear) if DataType == "CL": DaVinci().InputType = "MDST" DaVinci().RootInTES = "/Event/" + RootInTES DaVinci().Simulation = False DaVinci().Lumi = True CondDB(LatestGlobalTagByDataType="20" + str(DataYear)) print DaVinci().InputType, DaVinci().RootInTES if DataType == "MC": DaVinci().appendToMainSequence(restrip) if RootInTES == "": DaVinci().RootInTES = "" DaVinci().InputType = "DST" #importOptions("$STRIPPINGSELECTIONSROOT/tests/data/Reco16_Run182594.py") #importOptions("$APPCONFIGOPTS/DaVinci/DV-RedoCaloPID-Stripping21.py") from Configurables import EventTuple DaVinci().UserAlgorithms += [EventTuple("EventTuple")] DaVinci().Simulation = True DaVinci().Lumi = False TagDDDB = "dddb-20150522" TagCondDB = "sim-20150522" if DataYear == "11": TagDDDB += "-1" TagCondDB += "-1" if DataYear == "12": TagDDDB += "-2" TagCondDB += "-2" TagCondDB += "-vc" if Mag == "MD" or Mag == "Down" or Mag == "DOWN": TagCondDB += "-md100" if Mag == "MU" or Mag == "Up" or Mag == "UP": TagCondDB += "-mu100" DaVinci().DDDBtag = "dddb-20150724" #BRUTAL TagDDDB DaVinci().CondDBtag = "sim-20161124-2-vc-mu100" #BRUTAL TagCondDB """
tuple.addTupleTool("TupleToolPrimaries") # tuple.addTupleTool( "TupleToolEventInfo")// already default tuple.addTupleTool("TupleToolTrackInfo") tuple.addTupleTool("TupleToolTagging") if (simulation): tuple.addTupleTool("TupleToolMCTruth") tuple.addTupleTool("TupleToolMCBackgroundInfo") tuple.Decay = "[B_s0 -> ^(J/psi(1S) -> ^mu+ ^mu-) ^(phi(1020) -> ^K+ ^K-)]CC" ####################################################################### # # Event Tuple # from Configurables import EventTuple etuple = EventTuple() # etuple.addTupleTool("TupleToolEventInfo")// already default if (simulation): etuple.addTupleTool("TupleToolGeneration") etuple.addTupleTool("TupleToolTrigger") ####################################################################### # # Configure the application # from Configurables import DaVinci DaVinci().TupleFile = "Tutorial6.root" # Ntuple DaVinci().HistogramFile = 'DVHistos.root' DaVinci().EvtMax = 1000 # Number of events DaVinci().DataType = "2012" # DaVinci().Simulation = True #
from Configurables import AuditorSvc, ChronoAuditor AuditorSvc().Auditors.append(ChronoAuditor("Chrono")) from Configurables import StrippingReport sr = StrippingReport(Selections=sc.selections(), OnlyPositive=False, EveryEvent=False, ReportFrequency=10000) from Configurables import AlgorithmCorrelationsAlg ac = AlgorithmCorrelationsAlg(Algorithms=list(set(sc.selections()))) from Configurables import EventTuple from Configurables import TupleToolStripping tag = EventTuple("tuple") tag.ToolList = ["TupleToolStripping", "TupleToolEventInfo"] tag.addTool(TupleToolStripping) tag.TupleToolStripping.StrippingReportsLocations = "Strip/Phys/DecReports" #Deliberate typo for old TTS tag.TupleToolStripping.StrippingList = dictreportsline #tag.TupleToolStripping.OutputLevel = VERBOSE DaVinci().HistogramFile = 'DV_stripping_histos.root' DaVinci().EvtMax = 100000 DaVinci().PrintFreq = 1000 DaVinci().appendToMainSequence([sc.sequence()]) DaVinci().appendToMainSequence([tag]) DaVinci().appendToMainSequence([sr]) #DaVinci().appendToMainSequence( [ ac ] ) DaVinci().appendToMainSequence([dstWriter.sequence()]) DaVinci().ProductionType = "Stripping"
## ============================================================================ ## CVS tag $Name: not supported by cvs2svn $, version $Revision: 1.1 $ ## ============================================================================ # # Example options to create a user-defined ETC # # @added FSR writing: Jaap Panman # from Gaudi.Configuration import * ###################################################### # StripETC options # from Configurables import EventTuple, TupleToolSelResults tag = EventTuple("TagCreator") tag.EvtColsProduce = True tag.ToolList = [ "TupleToolEventInfo", "TupleToolRecoStats", "TupleToolSelResults" ] tag.addTool(TupleToolSelResults ) tag.TupleToolSelResults.Selections = [ "StripBs2JpsiPhi" ] #################################################### importOptions( "$STRIPPINGSELECTIONSROOT/options/STEP09/StrippingBs2JpsiPhi.py") from Configurables import StrippingAlg selection = StrippingAlg("StrippingBs2JpsiPhiLine") #################################################### # main config from Configurables import DaVinci DaVinci().EvtMax = 10 DaVinci().PrintFreq = 1 DaVinci().DataType = "2009"
tuple.ToolList += [ "TupleToolMCTruth", "TupleToolMCBackgroundInfo", "TupleToolGeometry", "TupleToolKinematic", "TupleToolPropertime", "TupleToolPrimaries", "TupleToolEventInfo", "TupleToolTrackInfo" # , "TupleToolTISTOS" ] tuple.Inputs = [line.outputLocation()] tuple.Decay = "[ B0 -> ^( J/psi(1S) -> ^mu+ ^mu- ) ^( KS0 -> ^pi+ ^pi- ) ]CC" #tuple.OutputLevel = 1 ; ######################################################################## # # The Event Tuple # from Configurables import EventTuple, TupleToolTrigger evtTuple = EventTuple() evtTuple.ToolList = ["TupleToolEventInfo", "TupleToolGeneration"] evtTuple.addTool(TupleToolTrigger()) evtTuple.TupleToolTrigger.VerboseHlt1 = True evtTuple.TupleToolTrigger.VerboseHlt2 = True # evtTuple.OutputLevel = 1 ######################################################################## # # The MC truth Tuple # from Configurables import MCDecayTreeTuple mcTuple = MCDecayTreeTuple("MCTuple") mcTuple.Decay = "( [ [B0]nos => ^( J/psi(1S) => ^mu+ ^mu- ) ^( KS0 => ^pi+ ^pi- ) ]CC ) || ( [ [B0]os -> ^( J/psi(1S) => ^mu+ ^mu- ) ^( KS0 => ^pi+ ^pi- ) ]CC )" mcTuple.ToolList = [ "MCTupleToolKinematic", "TupleToolEventInfo", "MCTupleToolReconstructed"