00001
00002
00003 __all__ = ['Configure','AdRecConf']
00004
00005 class Configure:
00006 '''
00007 Create default configuration for AdRec. Configuration only adds the
00008 AdRec algorithm, AdRecAlg.
00009
00010 Changes to algorithm and tool properties from their defaults can be
00011 made in individual job option scripts by accessing them via AdRecConf.
00012 '''
00013
00014 def __init__(self):
00015 '''
00016 Configure AdRec.
00017
00018 Default tools are:
00019 QCtrTool - FastQCtrTool
00020 QMLFTool - QMLFTool
00021 '''
00022
00023 from AdRec.AdRecConf import FastQCtrTool, QMLFTool
00024 fastQCtrTool = FastQCtrTool("AdFastQCtrTool")
00025 qmlfTool = QMLFTool("AdQMLFTool")
00026 qmlfTool.opLocation = "DetDesc"
00027 qmlfTool.geomLocation = "DetDesc"
00028
00029 from AdRec.AdRecConf import FastQCtrTool, QMLFTool
00030 fastQCtrTool = FastQCtrTool()
00031 qmlfTool = QMLFTool()
00032
00033 import ReconAlg
00034 reconAlg = ReconAlg.Configure()
00035 reconAlg.setReconStyle( { "AdFastQCtr": [fastQCtrTool],
00036 "AdQmlf" : [qmlfTool] } )
00037 return
00038
00039