Hi Djam et al, On Wed, 12 Dec 2001 11:52:48 +0100 (CET) Djamel Ouerdane <ouerdane@nbi.dk> wrote concerning "Re: Upcoming BRAT changes": > Hi Christian, > > Please go ahead! :) I'll wait at least until tomorrow (CET) since I'd like to give the people in USA a chance to respond too. > I thought about this BrModule::Info method but had BrModule::Message in > mind :) The reason I chose Info rather than Message (which was what I thought of first too :-) is that ROOT has the message levels kInfo kWarning kError kFatal kSysError Hence, Info seemed like the natural choice. I thought about adding the method BrModule::Debug(Int_t lvl, const char* location, const char* format,...) too, which should be parallel to BrModule::Info, except it's conditional on the current DebugLevel. Oh, and a feature I forgot to mention (I just realised after reading my message agani) in BrIOModule, is the ability to create a file set based on a directory and a regular expression. The method is BrIOModule::AddFileSet(const char* dirname, const char* regexp) Suppose you have the directory <dir> that contains files with names like run<6 digit run no>seq<3 digit sequence no>.root, then you can add all of those files with BrIOModule io = new <some subclass>; io->AddFileSet(<dir>, "run[0-9]6seq[0-9]3\\.root"); (Please note that we need to escape the '\'). If one want to add only the 5 first sequences of run number <run>, then one can do io->AddFileSet(<dir>, "run00<run>seq00[0-5]\\.root"); Finally, one can add all files in a directory with io->AddFileSet(<dir>, ".*"); Regular expression are documented in the Emacs info pages. To go there, do * Start Emacs * type C-h i (that is [Ctrl]-h 'i') * type m Emacs C-j (that is 'm' 'Emacs' [RET]) * type m Regexps C-j (that is 'm' 'Regexps' [RET]) I'll add the information on the chagnes (not regular expressions) to The Guide soon. Yours, Christian Holm Christensen ------------------------------------------- Address: Sankt Hansgade 23, 1. th. Phone: (+45) 35 35 96 91 DK-2200 Copenhagen N Cell: (+45) 28 82 16 23 Denmark Office: (+45) 353 25 305 Email: cholm@nbi.dk Web: www.nbi.dk/~cholm
This archive was generated by hypermail 2b30 : Wed Dec 12 2001 - 06:36:48 EST