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

NuWa: Index of all Job Modules

Introduction

Job modules are used to configure and run simulation and analysis tasks. They are used with the nuwa.py command as follows:
% nuwa.py -n 100 -m "MDC09a.runLED" -o led_n100.root
This example simulates 100 LED flashes in the center of the AD. The module name is listed in quotes after the '-m' option. The '-n' option specifies the number of events you wish to process, and the '-o' option specifies the output file name. Additional options can be passed directly to the job module by placing them inside the quotes. The following example places the LED along the axis of ACU B, at the z = +100.0 cm position.
% nuwa.py -n 100 -m "MDC09a.runLED -z 100.0 -n DayaBayAD1_ACU_B_GdlsEdge_LED" -o led_n100.root
Analysis jobs are run in the same fashion. The following example runs a simple event reconstruction. The '-n -1' option will process all events in the input file(s).
% nuwa.py -n -1 -m "ReconAlg.AdSimple" -o led_recon_n100.root led_n100.root
Modules may also be run in series:
% nuwa.py -n 100 -m "MDC09a.runLED"-m "ReconAlg.AdSimple" -o led_recon_n100.root

Modifying Modules

To change a module, make a copy in your local directory, change it, and run it without the 'package.' prefix in the module name.
% mkdir mywork
% cd mywork
% cp $PACKAGEROOT/(package)/python/(package)/module.py myModule.py
% (change the module)
% nuwa.py -n 100 -m "myModule" -o myOutput_n100.root

Writing your own Job Module

A job module is a script which configures your simulation or analysis job. It is written in the python programming language. In your module, you must define two functions: configure and run.
def configure( argv=[] ):
    """Write a description of your module here
       
       Add more details about your module here
    """
    # Put your job configuration commands here
    return

def run(app):
    """Additional Run-time configuration can go here"""
    pass
See the many modules below for module configuration examples.
Job ModuleDescriptionPackage
Calibration.ACUNeutronCapturePositionCalibration
Calibration.ACUNeutronCaptureVertexCalibration
AnalysesEx.RawData2TreeAnalysesEx
CalibAlg.__init__CalibAlg
CalibParam.MakePmtTableCalibParam
CalibParam.ReprocessCalibParam
CalibParam.__init__CalibParam
Quickstart.CalibrateQuickstart
UnderstandingEnergy.CalibrationAmCCo60UnderstandingEnergy
UnderstandingEnergy.CalibrationGe68UnderstandingEnergy
MDC09a.chkGamma.__init__MDC09a
MDC09a.chkIBD15.__init__MDC09a
MDC09a.chkIBD.AdPerformanceMDC09a
MDC09a.chkIBD.__init__MDC09a
SmartFilter.ClearSmartFilter
ConfigurableExample.aConfigurableExample
ConfigurableExample.bConfigurableExample
DaqFormatModules.DaqBenchmark.__init__DaqFormatModules
DaqFormatModules.DaqFileWriter.__init__DaqFormatModules
DaqRunInfoSvc.TestDaqRunInfoSvc
DaqFormatModules.DaqXmlDumpDaqFormatModules
DataQuality.AdCoincidenceDataQuality
DataQuality.AdPlotterDataQuality
DataQuality.ConvertToTreeDataQuality
DataQuality.DiagnosticFigsDataQuality
DataQuality.OnlineOfflineTestDataQuality
DataQuality.OnlineOfflineTestRefactoredDataQuality
DataQuality.__init__DataQuality
DataSvc.TestCableSvcDataSvc
DataSvc.TestCalibDataSvcDataSvc
DataSvc.TestSimDataSvcDataSvc
DbiDataSvc.TestDbiDataSvcDbiDataSvc
DBWriter.__init__DBWriter
Calibration.decimal.*Calibration
DetHelpers.autoPositionerTestDetHelpers
DetHelpers.positionerTestDetHelpers
DetHelpers.TestCoordSysSvcDetHelpers
DetSim.DefaultDetSim
DetSim.OpStackDetSim
DetSim.OptsDetSim
DetSim.TestFastStackingDetSim
DigitizeAlg.runDigitizeAlg
DQMRawData.RunDQMRawData
DQMRawData.runDaqDQMRawData
DQMRawData.runReconDQMRawData
Calibration.DrawACUNeutronCapturePositionCalibration
Calibration.DrawACUNeutronCaptureVertexCalibration
UnderstandingEnergy.DrawFigsUnderstandingEnergy
Calibration.DrawGe68EnergyGeoCalibration
Calibration.DrawGe68EnergySpecCalibration
Calibration.DrawGe68EnergySubCalibration
Calibration.DrawGe68PositionCalibration
Calibration.DrawReadoutDetectorCalibration
Quickstart.DryRunTablesQuickstart
JobInfoSvc.DumpJobInfoSvc
Test15.DumpTest15
DybAlg.DefaultFilterDybAlg
DybAlg.FilterExampleDybAlg
DybAlg.mptDybAlg
DybAlg.ReconFilterDybAlg
DybAlg.TestRandomDybAlg
DybAlg.TestShuffleDybAlg
DybHelloWorld.OptionalJomDybHelloWorld
DybHelloWorld.PyloWorldDybHelloWorld
DybIO.DaqRootWriterDybIO
DybIO.TestIncidentDybIO
DybIO.TestLoaderDybIO
DybIO.TestRollerDybIO
DybPython.TestMod1DybPython
DybPython.TestMod2DybPython
ElecSim.ViewerElecSim
UnderstandingEnergy.EnergyStatsUnderstandingEnergy
DivingIn.ExampleDivingIn
SmartFilter.ExampleSmartFilter
DivingIn.ExamplePmtIdDivingIn
DivingIn.ExampleTreeDivingIn
DivingIn.Example_GenEventDivingIn
DivingIn.Example_SimEventDivingIn
MuonProphet.FullChainMuonProphet
StatisticsSvc.GaudiKernel.Constants.*StatisticsSvc
ElecTutorial.GaudiKernel.Constants.*ElecTutorial
Calibration.Ge68EnergyStatsCalibration
Calibration.Ge68PositionStatsCalibration
GenDecay.HelpersGenDecay
GenDecay.HistogramGenDecay
ElecTutorial.GenKinematics.__init__ElecTutorial
GenMuon.HelpersGenMuon
GenMuon.TestHistGenMuon
Test15.GenSimPushTest15
GenTools.OptsGenTools
DetSimValidation.genTreeDetSimValidation
XmlDetDesc.geoXmlDetDesc
MiniDryRunXmlDetDesc.geoMiniDryRunXmlDetDesc
Li9He8Decay.HelpersLi9He8Decay
InvBetaDecay.HelpersInvBetaDecay
Historian.GraphMakerHistorian
SimpleFilter.KeepSimpleFilter
SmartFilter.KeepReconSmartFilter
ProcessTools.LoadReadoutProcessTools
AdBasicFigs.MakeCalibFigsAdBasicFigs
FlasherId.MakeFigsFlasherId
AdBasicFigs.MakeFigsAdBasicFigs
AdBasicFigs.MakeReconFigsAdBasicFigs
MemoryCheck.__init__MemoryCheck
Test15.MixItUpTest15
MuonHitSim.runMuonHitSim
UnderstandingEnergy.NeutronSimUnderstandingEnergy
UnderstandingEnergy.NeutronsInACUUnderstandingEnergy
Quickstart.PmtInfoExampleQuickstart
DivingIn.PositronSimDivingIn
Quickstart.PrintCalibDataQuickstart
Quickstart.PrintRawDataQuickstart
Quickstart.PrintReconDataQuickstart
RunDataSvc.PrintRunDataRunDataSvc
Quickstart.RawEventTreeQuickstart
Calibration.ReadoutDetectorCalibration
ElecTutorial.ReadoutDumperElecTutorial
ReconAlg.AdExampleReconAlg
ReconAlg.AdSimpleReconAlg
Quickstart.ReconstructQuickstart
RollingGain.__init__RollingGain
RootIOTest.howBigRootIOTest
RootIOTest.OutputFrobicatorRootIOTest
RootIOTest.TestFileStatSvcRootIOTest
RootIOTest.TestHeaderObjectsRootIOTest
RootIOTest.TestMultiStreamRootIOTest
RootIOTest.TestUserDataRootIOTest
ReadoutSim.runDarkReadoutSim
ElecTutorial.RunElectronics.__init__ElecTutorial
MDC09a.runGamma.__init__MDC09a
MDC09a.runIBD15.FullChainMDC09a
MDC09a.runIBD.__init__MDC09a
AdRec.runLEDAdRec
ReadoutSim.runLEDReadoutSim
CalibAlg.runLEDCalibAlg
MDC09a.runLED.__init__MDC09a
MDC09a.runPositron.__init__MDC09a
ElecTutorial.RunReadouts.__init__ElecTutorial
FMCP11a.SandglassFMCP11a
StatisticsSvc.ServerStatisticsSvc
MDC09a.SetCablingMDC09a
ElecTutorial.share.runDoublePulseElecTutorial
Sim15.anaSim15
Sim15.EffSim15
Sim15.FullChainSimpleSim15
Calibration.SimACUNeutronsCalibration
Calibration.SimGe68noGEOCalibration
Calibration.SimGe68wBGCalibration
Calibration.SimGe68wBGnoSRCCalibration
Calibration.SimGe68wGEOCalibration
Quickstart.SimulationTablesQuickstart
SpadeSvc.__init__SpadeSvc
Stage.FullChainStage
Stage.TestStage
TESDemo.__init__TESDemo
RunDiagnostics.TesterRunDiagnostics
TrigSim.gammaESum.__init__TrigSim
UserTagging.UserData.ADCalibDataUserTagging
UserTagging.UserData.ADChannelDataUserTagging
UserTagging.UserData.ADReadoutDataUserTagging
UserTagging.UserData.ADRecDataUserTagging
UserTagging.UserData.CoincDataUserTagging
UserTagging.UserData.GenDataUserTagging
UserTagging.UserData.SimDataUserTagging
UserTagging.UserTag.CoincTagUserTagging
UserTagging.UserTag.DetectorTagUserTagging
DivingIn.ViktorsTestDivingIn
ElecTutorial.WaveDumperElecTutorial
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |