2 // Class AliRsnVManager
4 // Base "manager" class.
5 // It is built in order to manage a list of objects which share
6 // the same level in the work flow of the analysis.
7 // This base class contains simply the list of "child" objects
8 // and the methods to add objects to the list or retrieve the list.
10 // author : M. Vala [martin.vala@cern.ch]
11 // revised by : A. Pulvirenti [alberto.pulvirenti@ct.infn.it]
16 #include "AliRsnVManager.h"
18 ClassImp(AliRsnVManager)
20 //_____________________________________________________________________________
21 AliRsnVManager::AliRsnVManager(const char*name) :
26 // Default constructor
30 //_____________________________________________________________________________
31 AliRsnVManager::~AliRsnVManager()
38 //_____________________________________________________________________________
39 void AliRsnVManager::Add(TObject*const obj)
42 // Add a new object in the list.
45 fArray.Add((TObject*)obj);
48 //_____________________________________________________________________________
49 void AliRsnVManager::Print(Option_t* /*dummy*/) const
52 // Overload of the standard TObject::Print() method.
58 //_____________________________________________________________________________
59 void AliRsnVManager::PrintArray() const
62 // Calls the "Print()" method of all objects
63 // stored in the list, to print their informations.
67 TObjArrayIter next(&fArray);
68 while ((obj = (TObject*)next())) obj->Print();