/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
CalibAlg::CalibAlgEx::CalibAlgEx Class Reference

List of all members.

Public Member Functions

def __init__

Detailed Description

CalibAlgEx. CalibAlg algorithm test module.
usage:

nuwa.py -n 10 CalibAlg.CalibAlgEx

Definition at line 5 of file CalibAlgEx.py.


Constructor & Destructor Documentation

def CalibAlg::CalibAlgEx::CalibAlgEx::__init__ (   self)
Configure CalibAlg.

Default tools are:
SimpPmtTool - SimpPmtCalibTool
SimpRpcTool - SimpRpcCalibTool

Definition at line 13 of file CalibAlgEx.py.

00014                       :
00015         '''
00016         Configure CalibAlg.
00017 
00018         Default tools are:
00019         SimpPmtTool - SimpPmtCalibTool
00020         SimpRpcTool - SimpRpcCalibTool
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 = 3500
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 CalibConf
00049         calConf = CalibConf.CalibAlg()
00050         calConf.RpcCalibTool = "SimpRpcCalibTool"
00051         calConf.PmtCalibTool = "SimpPmtCalibTool"
00052         
00053         # CalibHistoCheck -- a simple check
00054         # draw out histograms of calibrated tdc, adc
00055         from Gaudi.Configuration import ApplicationMgr
00056         app = ApplicationMgr()
00057         
00058         from StatisticsSvc.StatisticsSvcConf import StatisticsSvc
00059         statsSvc = StatisticsSvc()
00060         statsSvc.Output ={"File1":'histo.root'}
00061         
00062         from CalibAlg.CalibAlgConf import CalibHistoCheck
00063         histo=CalibHistoCheck()
00064         app.TopAlg.append(histo)
00065         
00066         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:14:11 for CalibAlg by doxygen 1.7.4