/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
CalibEnergy::Configure Class Reference

List of all members.

Public Member Functions

def __init__

Detailed Description

Definition at line 12 of file __init__.py.


Constructor & Destructor Documentation

def CalibEnergy::Configure::__init__ (   self)

Definition at line 14 of file __init__.py.

00015                       :
00016 
00017         from StatisticsSvc.StatisticsSvcConf import StatisticsSvc
00018         statssvc = StatisticsSvc()
00019         #statssvc.Output ={"file0":'energy.root'}
00020 
00021         import DataSvc
00022         dataSvc = DataSvc.Configure()   
00023         from DataSvc.DataSvcConf import StaticCableSvc
00024         CableSvc = StaticCableSvc()
00025         CableMapFile = os.getenv("DATASVCROOT") + "/share/feeCableMap.txt"
00026         CableSvc.FeeCableMap = CableMapFile
00027         #from DataSvc.DataSvcConf import StaticCalibDataSvc
00028         #CalibSvc = StaticCalibDataSvc()
00029         #CalibMapFile = os.getenv("DATASVCROOT") + "/share/DryRun/pmtCalibTable.run8431.txt"
00030         #CalibSvc.PmtDataFile = CalibMapFile
00031         
00032         import CalibAlg
00033         calibAlg = CalibAlg.Configure()
00034         from CalibAlg.CalibAlgConf import SimpPmtCalibTool
00035         simpPmtCalibTool = SimpPmtCalibTool("SimpPmtCalibTool")
00036         simpPmtCalibTool.CalibDataSvcName = "StaticCalibDataSvc"
00037         simpPmtCalibTool.CableSvcName = "StaticCableSvc"
00038         # configure PmtGeomInfoSvc
00039         from DetHelpers.DetHelpersConf import PmtGeomInfoSvc
00040         pgisvc = PmtGeomInfoSvc("PmtGeomInfoSvc")
00041         pgisvc.StreamItems = [ "/dd/Structure/DayaBay" ]
00042         
00043         from CalibEnergy.CalibEnergyConf import CalibEnergyAlg
00044         calibEnergyAlg = CalibEnergyAlg()
00045       #  calibEnergyAlg.CalibSourceName = "Ge"
00046         #calibAlg.CalibSourceName = "CoAmC"
00047 
00048         from CalibEnergy.CalibEnergyConf import CoCalib
00049         coCalib = CoCalib()
00050         coCalib.TDCCutLow = -1650
00051         coCalib.TDCCutHigh = -1450
00052         from CalibEnergy.CalibEnergyConf import GeCalib
00053         geCalib = GeCalib()
00054         geCalib.TDCCutLow = -1650
00055         geCalib.TDCCutHigh = -1450
00056         from CalibEnergy.CalibEnergyConf import Background
00057         background = Background()
00058         background.TDCCutLow = -1650
00059         background.TDCCutHigh = -1450
00060         from CalibEnergy.CalibEnergyConf import ScinBall
00061         scinBall = ScinBall()
00062         scinBall.TDCCutLow = -1650
00063         scinBall.TDCCutHigh = -1450
00064         from CalibEnergy.CalibEnergyConf import Spallation
00065         spallation = Spallation()
00066         spallation.TDCCutLow = -1650
00067         spallation.TDCCutHigh = -1450
00068         spallation.MuonCut = 10000  
00069         spallation.TimeHigh = 100000
00070         spallation.TimeLow = 10000
00071         calibEnergyAlg.EnergyTools = [ coCalib, geCalib, background, scinBall, spallation ]
00072 
00073 
00074         from Gaudi.Configuration import ApplicationMgr
00075         theApp = ApplicationMgr()
00076         theApp.TopAlg.append(calibEnergyAlg)
00077 
        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:03:20 for CalibEnergy by doxygen 1.7.4