3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
11 #include "TObjArray.h"
13 class AliJob : public TTask
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"
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
37 void SetMainObject(TObject* obj); // Store pointer to the main object structure
39 ClassDef(AliJob,1) // Base class for top level job in a task based procedure