Back Midas Rome Roody Rootana
  Rome Analyzer Framework  Not logged in ELOG logo
Message ID: 89     Entry time: 28 Jun 2005
Author: Ryu Sawada 
Topic: Suggestion 
Subject: Folder reset. 
In Reset method of folders. Support folder members are ignored currently.
Reset method of support folder member had better to be called.

In addition, isModified() should check if the member support folders were modified.

For example

class A : public TObject
{
protected:
   TypeB* B;
   TClonesArray* C;
.
.
public:
   A() {
      B = 0;
      C = 0;
   };
.
.
.
   void Reset() {
      int i;
      fModified = false;
      if(B) B->Reset();
      if(C) for(i=0;i<C->GetEntries();i++) { ((TypeC*)C->At(i))->Reset(); }
   };

   ClassDef(A,1)
};
ELOG V3.1.4-2e1708b5