def generateOptions(startEvent=1, stopEvent=0, debug=False): from Configurables import ApplicationMgr, AuditorSvc, IntelProfilerAuditor from Gaudi.Configuration import DEBUG, INFO ApplicationMgr().AuditAlgorithms = True profiler = IntelProfilerAuditor() profiler.StartFromEventN = startEvent if stopEvent > 0: profiler.StopAtEventN = stopEvent if debug: profiler.OutputLevel = DEBUG else: profiler.OutputLevel = INFO AuditorSvc().Auditors += [profiler]
def run(lines): MessageSvc().OutputLevel = INFO ## Moore settings Moore().ThresholdSettings = 'NoLines_Aug10' Moore().Verbose = True Moore().EvtMax = 20000 Moore().UseDBSnapshot = False # Moore().DDDBtag = 'head-20100624' # Moore().CondDBtag = 'head-20100730' Moore().Simulation = False Moore().DataType = '2010' Moore().L0 = True Moore().ReplaceL0BanksWithEmulated = True # rerun L0 #Moore().inputFiles = [ # 'castor:/castor/cern.ch/user/e/evh/81349/81349_0x002a_MBNB_L0Phys.raw', # 'castor:/castor/cern.ch/user/e/evh/81350/81350_0x002c_MBNB_L0Phys.raw', # 'castor:/castor/cern.ch/user/e/evh/81351/81351_0x002c_MBNB_L0Phys.raw', # 'castor:/castor/cern.ch/user/e/evh/81352/81352_0x002c_MBNB_L0Phys.raw', # 'castor:/castor/cern.ch/user/e/evh/81430/81430_0x002c_MBNB_L0Phys.raw', # 'castor:/castor/cern.ch/user/e/evh/81431/81431_0x002c_MBNB_L0Phys.raw', #] Moore().inputFiles = [ '/data/amazurov/castor/81349_0x002a_MBNB_L0Phys.raw', '/data/amazurov/castor/81350_0x002c_MBNB_L0Phys.raw', # #'/data/amazurov/castor/81351_0x002c_MBNB_L0Phys.raw', # #'/data/amazurov/castor/81352_0x002c_MBNB_L0Phys.raw', # #'/data/amazurov/castor/81430_0x002c_MBNB_L0Phys.raw', # #'/data/amazurov/castor/81431_0x002c_MBNB_L0Phys.raw', ] #Moore().inputFiles = [ # 'castor:/castor/cern.ch/user/e/evh/94374/94374_0x0037_NB_L0Phys_00.raw', # 'castor:/castor/cern.ch/user/e/evh/94375/94375_0x0037_NB_L0Phys_00.raw' # ] #Moore().inputFiles = [ # '/data/amazurov/castor/94374_0x0037_NB_L0Phys_00.raw', # '/data/amazurov/castor/94375_0x0037_NB_L0Phys_00.raw' #] from Configurables import L0MuonAlg L0MuonAlg( "L0Muon" ).L0DUConfigProviderType = "L0DUConfigProvider" ## Add our line using HltConf #HltConf().AdditionalHlt1Lines = [ "Hlt1TrackAllL0", "Hlt1TrackMuon", "Hlt1DiMuonHighMass", "Hlt1DiMuonHighMass"] HltConf().AdditionalHlt1Lines = lines #HltConf().AdditionalHlt1Lines = [ "Hlt1TrackAllL0"] EventSelector().PrintFreq = 100 ### GaudiPython ### #from GaudiPython.Bindings import AppMgr #import LoKiTrigger.Service #from Configurables import Google__CPUProfiler from Configurables import IntelProfilerAuditor profiler = IntelProfilerAuditor() profiler.OutputLevel = INFO profiler.StartFromEventN = 5000 profiler.StopAtEventN = 15000 #profiler.ComponentsForTaskTypes = ["L0D0FromRow", "GECLooseUnit" ,"FastVeloHlt", "MuonRec", "HltPVsPV3D", #common algs #"Hlt1DiMuonHighMass", "Hlt1DiMuonLowMass", "Hlt1TrackAllL0", #lines #"Hlt1TrackAllL0Unit", "Hlt1Global", #|"Hlt1DiMuonHighMassFilterSequence", "Hlt1DiMuonLowMassFilterSequence", "Hlt1TrackAllL0FilterSequence", #"Hlt1DiMuonLowMassStreamer", "Hlt1DiMuonHighMassStreamer", #"Velo2CandidatesTrackAllL0", "Velo2CandidatesDiMuonHighMass", "Velo2CandidatesDiMuonLowMass" #] profiler.IncludeAlgorithms = lines #profiler.ExcludeAlgorithms = ["L0D0FromRow", "GECLooseUnit", "FastVeloHlt", "MuonRec", "HltPVsPV3D"] AuditorSvc().Auditors += [profiler] ApplicationMgr().AuditAlgorithms = True
from Gaudi.Configuration import * from Configurables import IntelProfilerAuditor, CpuHungryAlg MessageSvc().OutputLevel = INFO alg1 = CpuHungryAlg("Alg1") alg2 = CpuHungryAlg("Alg2") alg3 = CpuHungryAlg("Alg3") alg4 = CpuHungryAlg("Alg4") alg1.Loops = alg2.Loops = alg3.Loops = alg4.Loops = 5000000 subtop = Sequencer('SubSequence', Members = [alg1, alg2, alg3], StopOverride = True ) top = Sequencer('TopSequence', Members = [subtop, alg4], StopOverride = True ) profiler = IntelProfilerAuditor() profiler.OutputLevel = DEBUG profiler.StartFromEventN = 1 profiler.StopAtEventN = 2 profiler.ComponentsForTaskTypes = [] profiler.IncludeAlgorithms = ["SubSequence"] profiler.ExcludeAlgorithms = ["Alg2"] AuditorSvc().Auditors += [profiler] ApplicationMgr( EvtMax = 3, EvtSel = 'NONE', HistogramPersistency = 'NONE', TopAlg = [top], AuditAlgorithms=True)