Skip to content

Instantly share code, notes, and snippets.

@mazurov
Created March 14, 2012 11:37
Show Gist options
  • Save mazurov/2035926 to your computer and use it in GitHub Desktop.
Save mazurov/2035926 to your computer and use it in GitHub Desktop.
3 lines options file
#!/usr/bin/env gaudirun.py
import sys, os
sys.path.append(os.path.dirname(sys.argv[1]))
import job1
job1.run(["Hlt1TrackAllL0", "Hlt1DiMuonHighMass", "Hlt1DiMuonLowMass"])
__author__ = "Alexander Mazurov alexander.mazurov@gmail.com"
__date__ = "2011-12-16"
from Gaudi.Configuration import *
from Configurables import Moore, HltConf, EventSelector, AuditorSvc, MessageSvc
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment