Hi Dmitry, One method that has been used is to create a selector skeleton (for example a class 'sel' in file 'sel.C'), to leave this skeleton __untouched__ and to write another class 'mysel' in a file mysel.C which inherits from the class 'sel'. Then you modify 'mysel' to fit your need. Using this mechanism, you can regenerate the file sel.C as many time as you need and your customization are not lost. Cheers, Philippe. -----Original Message----- From: owner-roottalk@pcroot.cern.ch [mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Dmitry A. Shtol Sent: Wednesday, March 03, 2004 7:07 AM To: roottalk@pcroot.cern.ch Subject: [ROOT] How to update selector if tree structure changed? I have a selector, made from a template, generated by TTree::MakeSelector. If I change tree structure (and need, for example use new parametres in selector), should I add them in selector header where necessary "by hand", or there are a way to update selector automaticly (saving all my functions)? ============================================================== Dmitry A. Shtol (SND group) Budker Institute of Nuclear Physics
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:06 MET