Re: Re: Names of histograms reset after TFileMerger

From: Yaxian Mao <maoyx_at_iopp.ccnu.edu.cn>
Date: Tue, 10 Jun 2008 14:48:12 +0800


Dear Rene,
  Thanks for your answer.
  Indeed the histograms are merged correctly. But all the names of histograms are changed after merging also. after merging, it changed histosscaled 1, 2, ..., which I can not easily find the plot I want when I go futher.   I am trying to ask for your help how can I keep my defined names on each histogram after merging. Thanks a lot!
  Regards,
Yaxian

Rene Brun wrote:
> I do not understand what you are trying to achieve. Your histograms are
> correctly merged with the statement
> Bool_t result = m.Merge();
>
> but I have no idea of what you want to do with the code following this
> statement.
> Your input files contain a TList of histograms, but you loop on the
> TKeys as if each histogram was a TKey.
>
> Rene Brun
>
> Yaxian Mao wrote:
>> Dear Rene and all,
>> I encounterd one problem when I try to merge two different root files by
>> TFileMerger,
>> which never happened before. After merging, all names of histograms in the root file
>> are reseted by itself. I can not understand why, could somebody help me to solve this
>> problem? Thanks very much!
>> My root version is: v5-19-04
>> Best regards,
>> Yaxian
>
>
>


Received on Tue Jun 10 2008 - 08:57:54 CEST

This archive was generated by hypermail 2.2.0 : Mon Jun 23 2008 - 17:50:01 CEST