/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Functions
NeutronSpLooseTag Namespace Reference

Functions

def configure
def run

Function Documentation

def NeutronSpLooseTag::configure (   argv = [])
Configuration with command line arguments

Definition at line 12 of file NeutronSpLooseTag.py.

00013                       :
00014     """Configuration with command line arguments"""   
00015     global options 
00016     from optparse import OptionParser
00017     
00018     defaultLocations = '/Event/Tag/NeutronSpLooseTag'
00019 
00020     parser = OptionParser()
00021     parser.add_option("-l", "--location", type="string", default='/Event/Rec/AdSimple',
00022                       help="RecHeader Location for NeutronSpTag")
00023     parser.add_option("-m", "--first-muon-location", type="string", default='/Event/Tag/Muon/FirstMuonTrigger',
00024                       help="path for first muon trigger tag")
00025 
00026     parser.add_option("-d", "--low-energy-cut", type="float", default=1*units.MeV,
00027                       help="low energy cut, units MeV, -d for down")
00028     parser.add_option("-u", "--high-energy-cut", type="float", default=20*units.MeV,
00029                       help="high energy cut, units MeV, -u for upper")
00030 
00031     parser.add_option("-z", "--zcut", type="float", default=2500*units.millimeter,
00032                       help="vertex cut on z direction, units mm")
00033     parser.add_option("-r", "--rcut", type="float", default=2500*units.millimeter,
00034                       help="vertex cut on r direction, units mm")
00035 
00036     parser.add_option("-s", "--time-window-start", type="float", default=0.3*units.microsecond,
00037                       help="time window start time, units micro second")
00038     parser.add_option("-e", "--time-window-end", type="float", default=300*units.microsecond,
00039                       help="time window end time, units micro second")
00040 
00041     (options, args) = parser.parse_args(args=argv)
00042 
00043     from Gaudi.Configuration import ApplicationMgr
00044     app = ApplicationMgr()
00045 
00046     from SpNeutronTagging.SpNeutronTaggingConf import NeutronSpLooseTag
00047     myAlg = NeutronSpLooseTag("NeutronSpLooseTag") 
00048     myAlg.location = options.location
00049     myAlg.first_muon_location = options.first_muon_location
00050     myAlg.low_energy_cut = options.low_energy_cut
00051     myAlg.high_energy_cut = options.high_energy_cut
00052     myAlg.zcut = options.zcut
00053     myAlg.rcut = options.rcut
00054     myAlg.time_window_start = options.time_window_start
00055     myAlg.time_window_end = options.time_window_end
00056     
00057     myAlg.NeutronSpTag_location = "/Event/Tag/Physics/NeutronSpLoose"
00058 
00059     app.TopAlg.append(myAlg)
    
def NeutronSpLooseTag::run (   app)

Definition at line 60 of file NeutronSpLooseTag.py.

00061             :
00062     pass
00063 
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 10:10:37 for SpNeutronTagging by doxygen 1.7.4