AliPhysics  cdeda5a (cdeda5a)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ParUtilities Struct Reference

Static Public Member Functions

static Bool_t DoFind (const TString &what, TString &src)
 
static Bool_t Find (const TString &what)
 
static Bool_t Load (const TString &name)
 
static Bool_t Build (const TString &what)
 
PAR generation from script
static Bool_t MakeScriptPAR (Bool_t isLocal, const TString &script, const TString &deps, Railway *helper)
 
static Bool_t MakeScriptBuildScript (const TString &dir, const TString &base)
 
static Bool_t MakeScriptBuildMacro (const TString &dir, const TString &base, const TString &ext, const TCollection *deps)
 
static Bool_t MakeScriptUtilityScript (const TString &dir)
 
static Bool_t MakeScriptSetupMacro (const TString &dir, const TString &base, const TString &ext, const TCollection *deps)
 
PAR generation from aux file list
static Bool_t MakeAuxFilePAR (const TList &files, const TString &name, Bool_t verbose=false)
 

Detailed Description

Railway to set-up and load PARs

Definition at line 36 of file ParUtilities.C.

Member Function Documentation

static Bool_t ParUtilities::Build ( const TString what)
inlinestatic

Unpack, build, and load a PAR file.

Parameters
whatWhich PAR file
Returns

Definition at line 130 of file ParUtilities.C.

Referenced by PluginRailway::LoadLibrary(), ProofRailway::LoadLibrary(), and LoadPar().

static Bool_t ParUtilities::DoFind ( const TString what,
TString src 
)
inlinestatic

Definition at line 38 of file ParUtilities.C.

Referenced by Find(), and Load().

static Bool_t ParUtilities::Find ( const TString what)
inlinestatic

Find PAR file (either in current or parent directory or directly in $ALICE_ROOT), and link it here

Parameters
whatPAR file name (sans .par)
Returns
true on success

Definition at line 65 of file ParUtilities.C.

Referenced by PluginRailway::LoadLibrary(), and ProofRailway::LoadLibrary().

static Bool_t ParUtilities::Load ( const TString name)
inlinestatic

Unpack and load a PAR file previously found with Find.

Parameters
namePAR file name
Deprecated:
Use Find and Build instead
Returns
true on success

Definition at line 90 of file ParUtilities.C.

static Bool_t ParUtilities::MakeAuxFilePAR ( const TList files,
const TString name,
Bool_t  verbose = false 
)
inlinestatic

Definition at line 538 of file ParUtilities.C.

Referenced by ProofRailway::PostSetup(), and TestAuxPAR().

static Bool_t ParUtilities::MakeScriptBuildMacro ( const TString dir,
const TString base,
const TString ext,
const TCollection deps 
)
inlinestatic

Write a build macro

Parameters
dirDirectory to put macro in
depsDependencies
baseBase name of script to compile
ext`extension' - last part of file name
Returns
true on success

Definition at line 374 of file ParUtilities.C.

Referenced by MakeScriptPAR().

static Bool_t ParUtilities::MakeScriptBuildScript ( const TString dir,
const TString base 
)
inlinestatic

Write a build script

Parameters
dirDirectory to put it in
baseBase name
Returns
true on success

Definition at line 332 of file ParUtilities.C.

Referenced by MakeScriptPAR().

static Bool_t ParUtilities::MakeScriptPAR ( Bool_t  isLocal,
const TString script,
const TString deps,
Railway helper 
)
inlinestatic

Service function to make a PAR out of a script.

The script should contain can contain a sub-class of AliAnalysisTask. The script will be compiled on the slaves before loading the AliAnalysisManager. Parts to (not) be compiled can be protected like

#ifdef BUILD_PAR
// This will _only_ be compiled in the servers
#endif
#ifndef BUILD_PAR
// This will not be compiled in the servers
#endif
Parameters
scriptScript to upload and compile in the PAR
depsDependency pars
isLocalLocal build
helperRailway
Returns
true on success.

Definition at line 202 of file ParUtilities.C.

Referenced by MyTrain::CreateTasks(), EventTimeTrain::CreateTasks(), and ELossTimeTrain::CreateTasks().

static Bool_t ParUtilities::MakeScriptSetupMacro ( const TString dir,
const TString base,
const TString ext,
const TCollection deps 
)
inlinestatic

Make a setup script

Parameters
dirDirectory to put it in
baseBase name of target script
extExtension of target script
depsDependencies
Returns
true on success

Definition at line 496 of file ParUtilities.C.

Referenced by MakeScriptPAR().

static Bool_t ParUtilities::MakeScriptUtilityScript ( const TString dir)
inlinestatic

Make a utility macro

Parameters
dirDirectory to put the macro in
Returns
true on success

Definition at line 416 of file ParUtilities.C.

Referenced by MakeScriptPAR().


The documentation for this struct was generated from the following file: