![]() |
AliPhysics
4a7363b (4a7363b)
|
Public Types | |
enum | EMode { kLocal, kProof, kGrid } |
enum | EOperation { kTest, kOffline, kSubmit, kTerminate, kFull } |
enum | EInput { kESD, kAOD, kUser } |
Public Member Functions | |
Railway (const Railway &o) | |
Railway & | operator= (const Railway &) |
Loading stuff | |
virtual void | UsePar (Bool_t &use) |
virtual Bool_t | AddIncludePath (const TString &path) |
virtual Bool_t | LoadLibrary (const TString &name, Bool_t slave=true, Bool_t forcePar=false)=0 |
virtual Bool_t | LoadSource (const TString &name, bool copy=false) |
virtual Bool_t | LoadAux (const TString &name, Bool_t copy=false) |
virtual Bool_t | LoadROOT () |
virtual Bool_t | LoadAliROOT () |
virtual Bool_t | LoadAliPhysics () |
Mode of exection | |
virtual UShort_t | Mode () const =0 |
virtual const char * | ModeString () const |
virtual UShort_t | Operation () const |
Processing | |
virtual Bool_t | PreSetup ()=0 |
virtual Bool_t | PostSetup ()=0 |
virtual Long64_t | Run (Long64_t nEvents=-1)=0 |
virtual Bool_t | AddMonitor (const TString &) |
Static Public Member Functions | |
Create a railway | |
static Railway * | Create (const TUrl &url, Int_t verbose=0) |
static Railway * | CreateObject (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 | |
Loading things | |
const TString & | MakeLibraryName (const TString &name) |
virtual Bool_t | AuxFile (TString &name, bool copy=false) |
Static Protected Member Functions | |
Helper to figure out what we're doing | |
static UShort_t | DeduceType (const TString &str) |
Protected Attributes | |
TUrl | fUrl |
OptionList | fOptions |
Int_t | fVerbose |
Input/output | |
virtual Short_t | InputType () const |
virtual Bool_t | IsMC () const |
virtual TString | OutputPath () const |
virtual TString | OutputLocation () const |
TChain * | LocalChain () |
Various help functions | |
virtual void | Print (Option_t *="") const |
virtual const Char_t * | UrlHelp () const =0 |
virtual const char * | Desc () const =0 |
const TUrl & | Url () const |
const OptionList & | Options () const |
virtual void | AuxSave (const TString &, Bool_t) |
Railway (const TUrl &url, Int_t verbose) | |
virtual Bool_t | ParseOptions () |
virtual | ~Railway () |
enum Railway::EInput |
enum Railway::EMode |
enum Railway::EOperation |
|
inlineprotectedvirtual |
Add an include path
path | The path to add for header search |
Reimplemented in ProofRailway, and PluginRailway.
Definition at line 201 of file Railway.C.
Referenced by PluginRailway::AddIncludePath(), and ProofRailway::AddIncludePath().
Add a monitor object - only for PROOF
Definition at line 419 of file Railway.C.
Referenced by ProofRailway::Run().
Link an auxilary file to working directory
name | Name of the file |
copy | Copy rather than link |
Reimplemented in ProofRailway, and GridRailway.
Definition at line 525 of file Railway.C.
Referenced by GridRailway::AuxFile(), ProofRailway::AuxFile(), LoadAux(), and LoadSource().
Write auxillary ROOT (and possible shell) script for more (post-)processing e.g., terminate
Reimplemented in ProofRailway, and GridRailway.
Definition at line 460 of file Railway.C.
Referenced by TrainSetup::SaveSetup().
Create a helper object.
verbose | Verbosity |
url | Url describing the job. |
<path> can be a single ROOT file, a text file with one entry per file to add to the chain, or a directory containing the files. If <path> does not start with a '/' then it is interpreted as a relative path.
Several options
Note, if <host> is recognised as an Alice Analysis Facility, then the Grid handler (AliAnalysisAlien) is used unless the option plain
was given.
Definition at line 673 of file Railway.C.
Referenced by TrainSetup::Help(), TrainSetup::Init(), and operator=().
|
inlinestatic |
Create an instance of a helper class
Definition at line 122 of file Railway.C.
Referenced by Create(), ShowFullHelp(), and ShowUrlHelp().
Deduce the top of job from a string
str | String |
Definition at line 653 of file Railway.C.
Referenced by InputType().
|
pure virtual |
Implemented in ProofRailway, GridRailway, PluginRailway, LiteRailway, VAFRailway, AAFPluginRailway, LocalRailway, and AAFRailway.
Referenced by TrainSetup::Help(), Print(), and ShowFullHelp().
|
inlinevirtual |
Get the input data type
Definition at line 338 of file Railway.C.
Referenced by TrainSetup::Init().
|
inlinevirtual |
Check if the MC option was set
Definition at line 354 of file Railway.C.
Referenced by TrackletdNdetaTrain::CoupleTrackletCar(), BothdNdetaTrain::CoupleTrackletCar(), TrackletAODdNdeta::CreateCentralitySelection(), MakedNdetaTrain::CreateTasks(), TrackletAODdNdeta::CreateTasks(), BothdNdetaTrain::CreateTasks(), TrainSetup::Init(), TrackletAODdNdeta::SaveCollect(), TrackletdNdetaTrain::SaveCollect(), BothdNdetaTrain::SaveCollect(), MakeAODTrain::SavedNdeta(), and BothAODTrain::SavedNdeta().
|
inlinevirtual |
Set-up to load the AliROOT libraries
Reimplemented in ProofRailway, and PluginRailway.
Definition at line 298 of file Railway.C.
Referenced by TrainSetup::Init().
|
inlinevirtual |
Set-up to load the AliROOT libraries
Reimplemented in ProofRailway, PluginRailway, and VAFRailway.
Definition at line 279 of file Railway.C.
Referenced by TrainSetup::Init().
Load auxillary file - not compiled or sourced. Just copied to working directory
name | Extra file name |
copy | Copy rather than link |
Definition at line 255 of file Railway.C.
Referenced by TrainSetup::AddTender(), BothAODTrain::CoupleClusterCar(), BothAODTrain::CoupleForwardCar(), MakeFullTrain::CreateAODTasks(), TrainSetup::CreateCentralitySelection(), TrainSetup::CreatePhysicsSelection(), MakeTrackletTrain::CreateTask(), ELossTimeTrain::CreateTasks(), MakeQATrain::CreateTasks(), MakeFMDELossTrain::CreateTasks(), MakeAODTrain::CreateTasks(), AODTrain::CreateTasks(), TrackletdNdetaTrain::SetupReweighting(), and MakeTrackletTrain::SetupReweighting().
|
pure virtual |
Load a library
name | Name of library |
slave | If true also load on slaves |
forcePar | if true, force load as PAR |
Implemented in ProofRailway, PluginRailway, and LocalRailway.
Referenced by AddIncludePath(), TrainSetup::AddOCDBConnect(), TrainSetup::AddTender(), AODTrain::CoupleFilter(), AODTrain::CoupleJetAN(), AODTrain::CoupleJPsiFilter(), AODTrain::CoupleVertexing(), MyTrain::CreateTasks(), EventTimeTrain::CreateTasks(), ELossTimeTrain::CreateTasks(), MakeFMDEventPlaneTrain::CreateTasks(), MakeMultClassTrain::CreateTasks(), MakeTestADTrain::CreateTasks(), MakeFMDMCHitTrain::CreateTasks(), MakeQATrain::CreateTasks(), MakeFMDMCTrackTrain::CreateTasks(), MakeTriggerBiasTrain::CreateTasks(), MakeMultTrain::CreateTasks(), MakeMCCorrTrain::CreateTasks(), MakeMultDistsTrain::CreateTasks(), MakeRespMatrTrain::CreateTasks(), MakeFMDELossTrain::CreateTasks(), MakeFlowTrain::CreateTasks(), MakeAODTrain::CreateTasks(), MakedNdetaTrain::CreateTasks(), TrackletAODTrain::CreateTasks(), TrackletdNdetaTrain::CreateTasks(), BothdNdetaTrain::CreateTasks(), AODTrain::CreateTasks(), BothAODTrain::CreateTasks(), MakeFullTrain::CreateTasks(), LoadAliPhysics(), LoadAliROOT(), TrainSetup::LoadOADB(), and ParUtilities::MakeScriptPAR().
|
inlinevirtual |
Load needed ROOT libaries
Definition at line 265 of file Railway.C.
Referenced by TrainSetup::Init().
Load a source file, and compile it
name | Name of the source file |
copy | Copy rather than link |
Reimplemented in ProofRailway, and PluginRailway.
Definition at line 231 of file Railway.C.
Referenced by TrackletdNdetaTrain::CoupleTrackletCar(), TrackletAODTrain::CoupleTrackletCar(), BothdNdetaTrain::CoupleTrackletCar(), BothAODTrain::CoupleTrackletCar(), TrackletdNdetaTrain::CreateTask(), MakeTrackletTrain::CreateTask(), TrackletAODTrain::CreateTasks(), TrackletAODdNdeta::CreateTasks(), PluginRailway::LoadSource(), and ProofRailway::LoadSource().
|
inlineprotected |
Create a local chain based on URL and options
Definition at line 587 of file Railway.C.
Referenced by LiteRailway::PostSetup(), LocalRailway::PostSetup(), and ProofRailway::Run().
Normalize a library name
name |
Definition at line 498 of file Railway.C.
Referenced by LocalRailway::LoadLibrary(), PluginRailway::LoadLibrary(), and ProofRailway::LoadLibrary().
|
pure virtual |
Get the execution mode
Implemented in ProofRailway, AAFPluginRailway, LocalRailway, and GridRailway.
Referenced by TrainSetup::AddMonitor(), MyTrain::CreateTasks(), EventTimeTrain::CreateTasks(), ELossTimeTrain::CreateTasks(), TrainSetup::Init(), LoadAliPhysics(), and MakeFMDMCTrackTrain::SaveSetup().
|
inlinevirtual |
Get the mode string used for AliAnalysisManager::StartAnalysis
Reimplemented in ProofRailway, AAFPluginRailway, LocalRailway, and GridRailway.
|
inlinevirtual |
Get the operation - this only makes sense for Grid jobs
Reimplemented in GridRailway.
Definition at line 327 of file Railway.C.
Referenced by TrainSetup::SetupWorkingDirectory().
Definition at line 71 of file Railway.C.
Referenced by LocalRailway::operator=(), PluginRailway::operator=(), and ProofRailway::operator=().
|
inline |
Get the list of options
Definition at line 454 of file Railway.C.
Referenced by TrainSetup::Help(), MakeAODTrain::SavedNdeta(), BothAODTrain::SavedNdeta(), TrainSetup::SaveSetup(), and ShowFullHelp().
|
inlinevirtual |
Get the location of the output data. Use ful to define second pass scripts, etc.
Definition at line 369 of file Railway.C.
Referenced by MakeAODTrain::SavedNdeta(), and BothAODTrain::SavedNdeta().
|
inlinevirtual |
The file part of tehe output URL - overwritten by derived classes.
Reimplemented in ProofRailway, GridRailway, and LiteRailway.
Definition at line 361 of file Railway.C.
Referenced by OutputLocation(), and MakeFMDMCTrackTrain::SaveDownloadTrees().
|
inlineprotectedvirtual |
|
pure virtual |
Set-up done after task setup
Implemented in ProofRailway, PluginRailway, GridRailway, AAFPluginRailway, LocalRailway, and LiteRailway.
Referenced by TrainSetup::Init(), and OutputLocation().
|
pure virtual |
Set-up done before task setup
Implemented in ProofRailway, GridRailway, PluginRailway, VAFRailway, LocalRailway, LiteRailway, AAFRailway, and AAFPluginRailway.
Referenced by TrainSetup::Init(), and OutputLocation().
|
inlinevirtual |
Print information to standard output
Reimplemented in ProofRailway, and PluginRailway.
Definition at line 430 of file Railway.C.
Referenced by PluginRailway::Print(), TrainSetup::Print(), and ProofRailway::Print().
Run the analysis
nEvents | Number of events to analyse |
Implemented in ProofRailway, GridRailway, PluginRailway, AAFPluginRailway, LiteRailway, and LocalRailway.
Referenced by OutputLocation(), and TrainSetup::Run().
|
inlinestatic |
|
inlinestatic |
Show help on URL using the interpreter
cl | Railway class |
Definition at line 151 of file Railway.C.
Referenced by Create(), and TrainSetup::Help().
|
inline |
|
pure virtual |
Implemented in ProofRailway, GridRailway, PluginRailway, LiteRailway, VAFRailway, AAFPluginRailway, LocalRailway, and AAFRailway.
Referenced by TrainSetup::Help(), Print(), ShowFullHelp(), and ShowUrlHelp().
|
virtual |
Set whether to use pars. On return, the argument is set to the old value. So to temporaruly turn off pars, do
use | Whether to use pars or not. On return contains old value |
Reimplemented in ProofRailway, and PluginRailway.
Definition at line 671 of file Railway.C.
Referenced by TrainSetup::LoadOADB(), and ShowFullHelp().
|
protected |
Definition at line 663 of file Railway.C.
Referenced by AAFPluginRailway::AAFPluginRailway(), AAFRailway::AAFRailway(), GridRailway::AddFiles(), AAFRailway::AliPhysicsParName(), AAFRailway::AliROOTParName(), GridRailway::AuxSave(), ProofRailway::CreateAliROOTPar(), ProofRailway::EnableSpecial(), VAFRailway::GetDataSet(), GridRailway::GridRailway(), InputType(), IsMC(), LiteRailway::LiteRailway(), VAFRailway::LoadAliROOT(), LocalChain(), LocalRailway::LocalRailway(), GridRailway::Operation(), Options(), ProofRailway::OutputPath(), ParseOptions(), PluginRailway::PluginRailway(), AAFPluginRailway::PostSetup(), GridRailway::PostSetup(), PluginRailway::PostSetup(), ProofRailway::PostSetup(), AAFPluginRailway::PreSetup(), AAFRailway::PreSetup(), VAFRailway::PreSetup(), PluginRailway::PreSetup(), ProofRailway::PreSetup(), Print(), ProofRailway::ProofRailway(), Railway(), GridRailway::RegisterRuns(), LiteRailway::Run(), ProofRailway::Run(), GridRailway::ScanFiles(), and VAFRailway::VAFRailway().
|
protected |
Definition at line 662 of file Railway.C.
Referenced by GridRailway::AuxSave(), VAFRailway::GetDataSet(), ProofRailway::GetDataSet(), InputType(), LocalChain(), OutputLocation(), ParseOptions(), GridRailway::PostSetup(), AAFPluginRailway::PreSetup(), AAFRailway::PreSetup(), LiteRailway::PreSetup(), GridRailway::PreSetup(), ProofRailway::PreSetup(), Print(), ProofRailway::ProofRailway(), Railway(), LocalRailway::Run(), AAFPluginRailway::Run(), LiteRailway::Run(), ProofRailway::Run(), GridRailway::ScanFiles(), and Url().
|
protected |
Definition at line 664 of file Railway.C.
Referenced by LocalChain(), LiteRailway::Run(), and ProofRailway::Run().