Ciao Rene, since in automatic generated classes, TChains are treated as TTree, GetFile() doesn't exist. Anyhow I found the equivalent method: chain.GetCurrentFile()->GetName() which returns what I need. Thanks, Paolo On Thu, 21 Nov 2002, Rene Brun wrote: > Hi Paolo, > > Use chain.GetFile()->GetName(); > > Rene Brun > > On Thu, 21 Nov 2002, Paolo Pagano wrote: > > > Ciao rooters, > > when you build up a chain adding many root files like as in case > > of: > > > > > > chain->Add("*.root"); > > > > > > you lose the memory of the TFile you are pointing to. > > > > In a Loop on the chain, I know that, using LoadTree, one can be aware of > > the moment in which ROOT goes from a TFile to the following one: > > > > Int_t ientry = LoadTree(jentry); > > > > because ientry is equal to 0. > > > > How can I get the information about the name of the current TFile? > > Is there any method or "workaround" to do it? > > > > > > Thanks, > > Paolo > > > > > > ******************************** > > Paolo Pagano > > address: Sezione INFN di Trieste - Area di Ricerca > > Padriciano 99, 34012 Padriciano (Trieste), Italia > > e-mail: Paolo.Pagano@cern.ch > > tel: (private) +39-340-4034214 > > (INFN, Trieste) +39-040-3756225/5583385 > > (CERN, Genève, CH) +41-22-7676743/76421 > > ******************************** > > > > ******************************** Paolo Pagano address: Sezione INFN di Trieste - Area di Ricerca Padriciano 99, 34012 Padriciano (Trieste), Italia e-mail: Paolo.Pagano@cern.ch tel: (private) +39-340-4034214 (INFN, Trieste) +39-040-3756225/5583385 (CERN, Genève, CH) +41-22-7676743/76421 ********************************
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:20 MET