AliPhysics  781d0c7 (781d0c7)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GridRailway Struct Reference
Inheritance diagram for GridRailway:

Public Member Functions

 GridRailway (const TUrl &url, Int_t verbose)
 
 GridRailway (const GridRailway &o)
 
GridRailwayoperator= (const GridRailway &o)
 
virtual ~GridRailway ()
 
virtual UShort_t Mode () const
 
virtual const char * ModeString () const
 
virtual UShort_t Operation () const
 
void StoreRun (Int_t r)
 
virtual Int_t RegisterRuns ()
 
virtual Bool_t PreSetup ()
 
virtual Bool_t PostSetup ()
 
void ScanFiles ()
 
void AddFiles ()
 
void AddFiles (std::istream &in)
 
virtual Long64_t Run (Long64_t nEvents=-1)
 
virtual Bool_t AuxFile (TString &name, bool copy=false)
 
virtual TString OutputPath () const
 
virtual const Char_tUrlHelp () const
 
virtual const char * Desc () const
 
void AuxSave (const TString &escaped, Bool_t)
 
- Public Member Functions inherited from PluginRailway
 PluginRailway (const TUrl &url, Int_t verbose)
 
 PluginRailway (const PluginRailway &o)
 
PluginRailwayoperator= (const PluginRailway &o)
 
virtual ~PluginRailway ()
 
void UsePar (Bool_t &use)
 
virtual Bool_t AddIncludePath (const TString &path)
 
virtual Bool_t LoadLibrary (const TString &name, Bool_t slaves=true, Bool_t forcePar=false)
 
virtual Bool_t LoadSource (const TString &name, bool copy=false)
 
virtual Bool_t LoadAliROOT ()
 
virtual Bool_t LoadAliPhysics ()
 
virtual void Print (Option_t *option="") const
 
- Public Member Functions inherited from Railway
 Railway (const Railway &o)
 
Railwayoperator= (const Railway &)
 
virtual Bool_t LoadAux (const TString &name, Bool_t copy=false)
 
virtual Bool_t LoadROOT ()
 
virtual Bool_t AddMonitor (const TString &)
 
virtual Short_t InputType () const
 
virtual Bool_t IsMC () const
 
virtual TString OutputLocation () const
 
const TUrlUrl () const
 
const OptionListOptions () const
 

Public Attributes

TList fRuns
 
- Public Attributes inherited from PluginRailway
AliAnalysisAlienfHandler
 
Bool_t fUsePars
 
Bool_t fTestBuild
 
TList fExtraLibs
 
TList fExtraPars
 
TList fExtraSrcs
 

Additional Inherited Members

- Public Types inherited from Railway
enum  EMode { kLocal, kProof, kGrid }
 
enum  EOperation {
  kTest, kOffline, kSubmit, kTerminate,
  kFull
}
 
enum  EInput { kESD, kAOD, kUser }
 
- Static Public Member Functions inherited from Railway
static RailwayCreate (const TUrl &url, Int_t verbose=0)
 
static RailwayCreateObject (const TString &cl, const TUrl &url, Int_t verbose=0)
 
static void ShowUrlHelp (const TString &cl)
 
static void ShowFullHelp (const TString &cl)
 
- Protected Member Functions inherited from Railway
const TStringMakeLibraryName (const TString &name)
 
TChainLocalChain ()
 
 Railway (const TUrl &url, Int_t verbose)
 
virtual Bool_t ParseOptions ()
 
virtual ~Railway ()
 
- Static Protected Member Functions inherited from Railway
static UShort_t DeduceType (const TString &str)
 
- Protected Attributes inherited from Railway
TUrl fUrl
 
OptionList fOptions
 
Int_t fVerbose
 

Detailed Description

Handle analysis on an the Grid

This helper is triggered by a URL of the form

alien:///<directory>[?<options>][#<pattern>]

where

<directory>
Grid directory that holds the data
<treeName>
Tree to loop over
<options>
List of options separated by an &
storage=<url>
Specify a non-default storage location for special output (e.g., AOD trees). <url> should be a valid XRootd server URI accessible to the slaves - e.g., root://lxplus.cern.ch:10930//tmp.
mode=[default,rec,sim,train,custom]
Set the AliROOT mode. If not specified default is assumed. See also CreateAliROOTPar
par
Use PAR files
runs=[list or file]
Comma separated list of run numbers, or file(s) containing run numbers
oper=[FULL,TERMINATE,SUBMIT,OFFLINE,TEST]
How to run the analysis
split=<N>
Maximum number of files per split
merge=<N>
Maximum number of files per merger
mc
Scan also for MC files (galice.root, Kinematics.root, and TrackRefs.root) when scanning <datadir>
pattern=<GLOB>
Shell glob pattern that files must check when scanning <datadir>

Definition at line 76 of file GridRailway.C.

Constructor & Destructor Documentation

GridRailway::GridRailway ( const TUrl url,
Int_t  verbose 
)
inline

Constructor

Parameters
urlUrl
verboseVerbosity level

Definition at line 84 of file GridRailway.C.

GridRailway::GridRailway ( const GridRailway o)
inline

Definition at line 104 of file GridRailway.C.

virtual GridRailway::~GridRailway ( )
inlinevirtual

Definition at line 113 of file GridRailway.C.

Member Function Documentation

void GridRailway::AddFiles ( )
inline

Definition at line 534 of file GridRailway.C.

Referenced by PostSetup(), and ScanFiles().

void GridRailway::AddFiles ( std::istream &  in)
inline

Definition at line 555 of file GridRailway.C.

virtual Bool_t GridRailway::AuxFile ( TString name,
bool  copy = false 
)
inlinevirtual

Link an auxilary file to working directory

Parameters
nameName of the file
copyWhether to copy or not
Returns
true on success

Reimplemented from Railway.

Definition at line 604 of file GridRailway.C.

void GridRailway::AuxSave ( const TString escaped,
Bool_t   
)
inlinevirtual

Write auxillary ROOT (and possible shell) script for more (post-)processing e.g., terminate

Parameters
escapedEscaped name

Reimplemented from Railway.

Definition at line 655 of file GridRailway.C.

virtual const char* GridRailway::Desc ( ) const
inlinevirtual
Returns
Short description

Implements PluginRailway.

Definition at line 648 of file GridRailway.C.

virtual UShort_t GridRailway::Mode ( ) const
inlinevirtual

Get the mode identifier

Returns
Always kProof

Implements Railway.

Definition at line 119 of file GridRailway.C.

virtual const char* GridRailway::ModeString ( ) const
inlinevirtual

Get the mode string used for AliAnalysisManager::StartAnalysis

Reimplemented from Railway.

Definition at line 123 of file GridRailway.C.

virtual UShort_t GridRailway::Operation ( ) const
inlinevirtual

Set-up done before task set-ups

Returns
true on success

Reimplemented from Railway.

Definition at line 129 of file GridRailway.C.

GridRailway& GridRailway::operator= ( const GridRailway o)
inline

Definition at line 107 of file GridRailway.C.

virtual TString GridRailway::OutputPath ( ) const
inlinevirtual

Get the output (directory)

Reimplemented from Railway.

Definition at line 617 of file GridRailway.C.

Referenced by AuxSave().

virtual Bool_t GridRailway::PostSetup ( )
inlinevirtual

Set-up done after the task set-ups

Returns
true on success

Reimplemented from PluginRailway.

Definition at line 295 of file GridRailway.C.

virtual Bool_t GridRailway::PreSetup ( )
inlinevirtual

Executed before setting up tasks

Returns
true on success

Reimplemented from PluginRailway.

Definition at line 271 of file GridRailway.C.

virtual Int_t GridRailway::RegisterRuns ( )
inlinevirtual

Read run numbers

Returns
Number of registered runs

Definition at line 151 of file GridRailway.C.

Referenced by PostSetup().

virtual Long64_t GridRailway::Run ( Long64_t  nEvents = -1)
inlinevirtual

Start the analysis

Parameters
nEventsNumber of events to analyse
Returns
The return value of AliAnalysisManager::StartAnalysis

Implements PluginRailway.

Definition at line 578 of file GridRailway.C.

void GridRailway::ScanFiles ( )
inline

Definition at line 507 of file GridRailway.C.

Referenced by AddFiles().

void GridRailway::StoreRun ( Int_t  r)
inline

Definition at line 140 of file GridRailway.C.

Referenced by RegisterRuns().

virtual const Char_t* GridRailway::UrlHelp ( ) const
inlinevirtual
Returns
URL help string

Implements PluginRailway.

Definition at line 641 of file GridRailway.C.

Member Data Documentation

TList GridRailway::fRuns

Definition at line 811 of file GridRailway.C.

Referenced by AuxSave(), ScanFiles(), and StoreRun().


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