| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Historian::GraphMaker Namespace Reference


Functions

def configure

Function Documentation

def Historian::GraphMaker::configure (   argv = []  ) 

Configure the DrawHistoryAlg algorithm to produce a directed graph of particle histories.

You can run this module by doig something like:

nuwa.py -n 3 -m 'Historian.GraphMaker' simevent.root

Definition at line 1 of file GraphMaker.py.

00001                       :
00002     '''
00003     Configure the DrawHistoryAlg algorithm to produce a directed graph of particle histories.
00004 
00005     You can run this module by doig something like:
00006 
00007     nuwa.py -n 3 -m 'Historian.GraphMaker' simevent.root
00008     '''
00009 
00010     from optparse import OptionParser
00011     parser = OptionParser(usage=configure.__doc__)
00012 
00013     parser.add_option("-l","--location",default="/Event/Sim/SimHeader",type="string",
00014                       help="Location in the TES to get Event data")
00015     parser.add_option("-t","--track-filename",default="tracks_%d.dot",type="string",
00016                       help="Filename to write track structure. Use '\%d' to indicate event number.")
00017     parser.add_option("-f","--filename",default = "tracks_and_vertices_%d.dot",type="string",
00018                       help="Filename to write track and vertex structure. Use '\%d' to indicate event number.")
00019     parser.add_option("-d","--do-hits",default=True, 
00020                       help="1 to make hits in track plot, 0 to ignore them.")
00021     parser.add_option("-g","--geometry",default="/dd/Structure/DayaBay", type="string",
00022                       help="Top level geometry structure element.")
00023 
00024 
00025     (opts,args) = parser.parse_args(args=argv)
00026 
00027 
00028     from Historian.HistorianConf import DrawHistoryAlg
00029     dha = DrawHistoryAlg()
00030     dha.Location = opts.location
00031     dha.track_filename = opts.track_filename
00032     dha.trackandvertex_filename = opts.filename
00033     dha.Geometry = opts.geometry
00034     dha.do_hits = int(opts.do_hits)
00035 
00036     from Gaudi.Configuration import ApplicationMgr
00037     theApp = ApplicationMgr()
00038     theApp.TopAlg.append(dha)
00039 
00040     
00041 

| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:54:56 2011 for Historian by doxygen 1.4.7