def action(): from Configurables import GetIntegratedLuminosity, LumiIntegrateFSR alg = GetIntegratedLuminosity('GetIntegratedLuminosity') alg.WriteCountersDetails = False alg.OutputLevel = INFO LumiIntegrateFSR('IntegrateBeamCrossing').OutputLevel = INFO LumiIntegrateFSR('IntegrateBeamCrossing').AccumulateMu = True
def touchFSR(self): '''make sure the FSR is touched and readable''' from Configurables import createODIN odin = createODIN() from Configurables import (LumiIntegrateFSR) readingFSR = LumiIntegrateFSR("TouchLumiFSR", OutputLevel=self.getProp("OutputLevel")) # this also touches the LumiLow FSRs readingLumiLowFSR = LumiIntegrateFSR( "TouchLumiLowFSR", FSRName="/LumiLowFSR", IntegratorToolName="LumiLowIntegrator", OutputLevel=self.getProp("OutputLevel")) return [odin, readingFSR, readingLumiLowFSR]
def __apply_configuration__(self): ''' create reader sequence ''' sequence = self.getProp("LumiSequencer") if sequence == None: raise RuntimeError("ERROR : Lumi Sequencer not set") # Input data type - should not be a raw type if self.getProp("InputType") in ["MDF", "RAW"]: return # normalization of BeamCrossing seqMembers = [] lifsr = LumiIntegrateFSR( 'IntegrateBeamCrossing', PrimaryBXType='BeamCrossing', AddBXTypes=['NoBeam'], SubtractBXTypes=['Beam1', 'Beam2'], IntegratorToolName='IntegrateBeamCrossing', IgnoreDQFlags=self.getProp("IgnoreDQFlags"), ) ToolSvc().addTool(GetLumiParameters, "lumiDatabaseTool") # This is a public tool ToolSvc().lumiDatabaseTool.UseOnline = self.getProp('UseOnline') seqMembers.append(lifsr) if (self.isPropertySet('TupleFile') and self.getProp("TupleFile") != ""): seqMembers.append( GetIntegratedLuminosity( 'GetIntegratedLuminosity', IntegratorToolName='IntegrateBeamCrossing', WriteCountersDetails=False)) sequence.Members = seqMembers sequence.MeasureTime = True sequence.ModeOR = False sequence.ShortCircuit = True sequence.IgnoreFilterPassed = False
DaVinci().EvtMax = EVTMAX DaVinci().TupleFile = "DVTuples1.root" DaVinci().HistogramFile = 'DVHistos.root' DaVinci().InputType = "DST" DaVinci().Simulation = True DaVinci().Lumi = False DaVinci().DataType = "2012" CondDB(LatestGlobalTagByDataType='2012') if False: # Add the DST writing algorithms DaVinci().appendToMainSequence([dstWriter.sequence(), printTree]) if True: # Add the ntuple writing algorithms DaVinci().UserAlgorithms = [psi_x.sequence(), tuple_B2Kmumu] if OUTPUTLEVEL == DEBUG: DaVinci().MoniSequence += [mctree] from Configurables import DaVinciInit DaVinciInit().OutputLevel = OUTPUTLEVEL if MODE != "MC": from Configurables import LumiIntegrateFSR, LumiIntegratorConf LumiIntegrateFSR('IntegrateBeamCrossing').SubtractBXTypes = ['None'] MessageSvc().Format = "% F%60W%S%7W%R%T %0W%M" ################################################################################### ####################### THE END ################################################### ###################################################################################