Hello dear ROOT developpers, I would like to present a use case and ask for guide lines to solve it. Use Case: -------- A) Let say that I would like to setup a very simple Data Hierarchy as follows: 1) <my-experiment>/Event/MC/Hits to holds (T)List of MCHit with a very simple MCHit class class MCHit : public TObject { public: MCHit(): m_channelID(0) {} virtual ~MCHit() {} //set/get accessor method to the channelID data member <...> private: Int_t m_channelID; }; and all the "magic" macros to do the serialisation 2) <my-experiment>/Event/MC/Digits to holds (T)List of MCDigits with a little more complicated MCDigit class class MCDigit : public TObject { public: MCDigit(): m_x(0.) {<initialisation of the MCHitRef>} virtual ~MCDigit() {} //set/get accessor method to the x data member //and to the MCHit <...> private: Float_t m_x; TRef MCHitRef; }; and all the "magic" macros to do the serialisation B) I have a task that transform the list of MCHit into a list of MCDigit which simply transform the channelId into a x position and maintain also a reference to the MCHit used (here a one-to-one link is supposed) Wishes ------ 1) I would like to produce a Tree from the <...>/Event/MC/Hits folder and fill it with a (T)List of MCHits 2) read back this Tree to retreive the (T)List of MCHit 3) create the (T)List of MCDigit 4) post this new (T)List in the folder <...>/Event/MC/Digits 5) increase the structure of the Tree used at step 2) with this new folder and fill it with the (T)List of MCDigit created at step 3) How I can manage that? Best regards J.E Campagne ............................................................................. .LAL - IN2P3 - CNRS .LAL - B.P 34 - 91898 Orsay Cedex - France .Piece 108 .Tel +33 (0)1 64 46 84 29 .Fax +33 (0)1 64 46 83 97 ...........................................................................
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:42 MET