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

In This Package:

AdRec::AdRecEx::AdRecEx Class Reference

List of all members.

Public Member Functions

def __init__

Detailed Description

AdRecEx . AdRecEx algorithm test module.
usage:

nuwa.py -n 20 AdRec.AdRecEx

Definition at line 5 of file AdRecEx.py.


Member Function Documentation

def AdRec::AdRecEx::AdRecEx::__init__ (   self  ) 

Configure AdRec.

Default tools are:
QCtrTool - FastQCtrTool
QMLFTool - QMLFTool

Definition at line 8 of file AdRecEx.py.

00008          :
00009 
00010     nuwa.py -n 20 AdRec.AdRecEx
00011     '''
00012 
00013     def __init__(self):
00014         '''
00015         Configure AdRec.
00016 
00017         Default tools are:
00018         QCtrTool - FastQCtrTool
00019         QMLFTool - QMLFTool
00020         '''
00021   
00022         import GenTools
00023         from GenTools.Helpers import DiffuserBall
00024         import GaudiKernel.SystemOfUnits as units
00025         ball = DiffuserBall()
00026         ball.setVolume("/dd/Structure/AD/db-oil1")
00027         ball.setPosition( [0.0*units.cm, 0.0*units.cm, 0.0*units.cm] )
00028         ball.ball.PhotonsPerEvent = 5000
00029         gtc = GenTools.Configure()
00030         gtc.register(ball)
00031         
00032         import DetSim
00033         detsim = DetSim.Configure(physlist = DetSim.physics_list_basic)
00034         
00035         import ElecSim
00036         elecsim = ElecSim.Configure()
00037         
00038         import TrigSim
00039         trigsim = TrigSim.Configure()
00040         
00041         import ReadoutSim
00042         rosim = ReadoutSim.Configure()
00043         import ReadoutSim.ReadoutSimConf as ROsConf
00044         ROsConf.ROsReadoutAlg().RoTools=["ROsFecReadoutTool","ROsFeeReadoutTool"]
00045         
00046         import CalibAlg
00047         calib = CalibAlg.Configure()
00048         import CalibAlg.CalibAlgConf as CAConf
00049         CAConf.CalibAlg().RpcCalibTool = "SimpRpcCalibTool"
00050         CAConf.CalibAlg().PmtCalibTool = "SimpPmtCalibTool"
00051         
00052         # configure PmtGeomInfoSvc
00053         from DetHelpers.DetHelpersConf import PmtGeomInfoSvc
00054         pgisvc = PmtGeomInfoSvc("PmtGeomInfoSvc")
00055         #pgisvc.OutputLevel = 2
00056         pgisvc.StreamItems = [ "/dd/Structure/DayaBay" ]
00057         
00058         # configure AdRec
00059         import AdRec
00060         rec = AdRec.Configure()
00061         
00062 
00063         
00064         # AdRecHistoCheck -- a simple check
00065         # draw out histograms of reconstructed pos
00066         from Gaudi.Configuration import ApplicationMgr
00067         app = ApplicationMgr()
00068         
00069         from StatisticsSvc.StatisticsSvcConf import StatisticsSvc
00070         hsvc = StatisticsSvc()
00071         hsvc.Output ={"File1":'histo_dry.root'}
00072         
00073         from AdRec.AdRecConf import AdRecHistoCheck
        histo=AdRecHistoCheck()


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:42:46 2011 for AdRec by doxygen 1.4.7