MINOS Batch Group

Script Design Page
This page describes the current model of Production script operation and outline.

Associated Functions

The current design of the production scripts is a functional design. In order to streamline and increase readibility of the scripts some sections of the code have been pulled into functions. All of the scripts have the following functions:

  • int LoadLibraries()
  • int GetRunNumber()
  • void SetCandOutputWithBNtp(JobCModule &jcm, TString file)
  • void SetCandOutputNoBNtp(JobCModule &jcm, TString file)
  • void SetNtpStOutputWithBNtp(JobCModule &jcm, TString file)
  • void SetNtpStOutputNoBNtp(JobCModule &jcm, TString file)
  • void SetMSGLevels(JobC &jc)

With minor exception these functions are all identicle between the different reconstruction scripts (in a given release).

LoadLibraries is just a sequential loading of all of the different Minossoft libraries

GetRunNumber returns the run number of the first file passed to the reconstructin script, this function isn't used outside of the far det data scripts

The various output functions all accept an output module and set it to produce the appropriate output streams. Those WithBNtp also output the Beam Monitering ntuple along with the other streams. In the MC files the NoBNtp paths also output the SimSnarl stream. For more information on these functions please see the Output pages

SetMSGLevels simply adjusts all output levels to keep the log files logical and short, hopefully over time the package will responsibly not complain unnecessarily and these lines can be removed

The reco_XXX functions

Each production script has two reco_XXX functions which are the primary cal functions. For historical reasons the scripts have a function called by both the name of the file and a shortened version where XXX can be Spill, All, or MC as appropriate. All of the reco functions follow a standard format.

1. The libraries are loaded
2. The Job Control object is created and recontruction path specified
3. The input format is specified
4. The Calibrator configurations is set
5. The Reconsturciton Path Modules are configured
6. The Reconstruction Path Modules Report their configurations
7. The output format is configured
8. The Message Levels are set
9. The Job Path is Run and the results reported