/search.css" rel="stylesheet" type="text/css"/> /search.js">
Functions | |
def | configure |
def | run |
def NeutronSpTightData::configure | ( | argv = [] | ) |
Configuration with command line arguments
Definition at line 15 of file NeutronSpTightData.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 NeutronSpTightData 00031 myAlg = NeutronSpTightData("NeutronSpTightData") 00032 myAlg.Location = "/Event/Data/Physics/NeutronSpTight" 00033 myAlg.first_muon_location = options.first_muon_location 00034 00035 myAlg.NeutronSpTag_location = "/Event/Tag/Physics/NeutronSpTight" 00036 00037 # myAlg.OutputLevel=2 00038 00039 app.TopAlg.append(myAlg) 00040
def NeutronSpTightData::run | ( | app | ) |
Definition at line 41 of file NeutronSpTightData.py.