21-jun-2005 NvE Install scripts for gcc corrected to also include the rdmc stuff
[u/mrichter/AliRoot.git] / RALICE / AliJob.h
CommitLineData
5481c137 1#ifndef ALIJOB_H
2#define ALIJOB_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6// $Id$
7
8#include "TROOT.h"
9#include "TTask.h"
10#include "TFolder.h"
11#include "TObjArray.h"
12
13class AliJob : public TTask
14{
15 public :
16 AliJob(const char* name="AliJob",const char* title=""); // Constructor
17 virtual ~AliJob(); // Destructor
18 void ListEnvironment(); // Provide listing of the job environment
19 void ExecuteJob(); // Invokation of the top level processing
20 TFolder* GetFolder() const; // Provide pointer to the whiteboard folder
21 TObject* GetMainObject() const; // Provide pointer to the main object structure
22 void AddObject(TObject* obj); // Add an object into the environment
23 void AddObjects(TObjArray* arr); // Add all array objects into the environment
24 void RemoveObject(TObject* obj); // Remove an object from the environment
25 void RemoveObjects(const char* classname); // Remove all objects inheriting from "classname"
26 TObject* GetObject(const char* classname) const; // Provide first stored object inheriting from "classname"
27 TObject* GetObject(Int_t j) const; // Provide j-th stored object
28 TObjArray* GetObjects() const; // Provide all stored object pointers
29 TObjArray* GetObjects(const char* classname); // Provide all objects inheriting from "classname"
30
31 protected :
32 TFolder* fFolder; // Pointer to the folder which serves as the job's whiteboard
33 TObject* fMainObject; // Pointer to the main processing object structure within the job
34 TObjArray* fObjects; // Pointers to the various user-added objects
35 TObjArray* fSelect; //! Temp. array of pointers to user-selected stored objects
36
37 void SetMainObject(TObject* obj); // Store pointer to the main object structure
38
39 ClassDef(AliJob,1) // Base class for top level job in a task based procedure
40};
41#endif