/search.css" rel="stylesheet" type="text/css"/> /search.js">
Functions | |
def | configure |
def | run |
def NeutronSpLooseData::configure | ( | argv = [] | ) |
Configuration with command line arguments
Definition at line 15 of file NeutronSpLooseData.py.
00016 : 00017 """Configuration with command line arguments""" 00018 global options 00019 from optparse import OptionParser 00020 parser = OptionParser() 00021 parser.add_option("-m", "--first-muon-location", type="string", 00022 default='/Event/Tag/Muon/MuonAll', 00023 help="path for first muon trigger tag") 00024 00025 (options, args) = parser.parse_args(args=argv) 00026 00027 from Gaudi.Configuration import ApplicationMgr 00028 app = ApplicationMgr() 00029 00030 from SpNeutronTagging.SpNeutronTaggingConf import NeutronSpLooseData 00031 myAlg = NeutronSpLooseData("NeutronSpLooseData") 00032 myAlg.Location = "/Event/Data/Physics/NeutronSpLoose" 00033 myAlg.first_muon_location = options.first_muon_location 00034 00035 myAlg.NeutronSpTag_location = "/Event/Tag/Physics/NeutronSpLoose" 00036 00037 app.TopAlg.append(myAlg) 00038
def NeutronSpLooseData::run | ( | app | ) |
Definition at line 39 of file NeutronSpLooseData.py.