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

In This Package:

Public Member Functions
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.


Constructor & Destructor Documentation

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

Default tools are:
QCtrTool - FastQCtrTool
QMLFTool - QMLFTool

Definition at line 13 of file AdRecEx.py.

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


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

Generated on Fri May 16 2014 10:13:26 for AdRec by doxygen 1.7.4