Hi rooters, I have a simple question. I would like to know if there is a simple way to copy an object in a subdirectory into another. Like the unix commamnd cp dir1/file dir2/file ? To give more details I would just like to take some histograms from some directory and make the sum of the histos into an another dir ? To explain better here is my problem I have a fiile with 3 directory root [11] db->ls(); TFile** /home/lobo/Th232/th232_c2.root TFile* /home/lobo/Th232/th232_c2.root KEY: TDirectory runf1;1 runf1 KEY: TDirectory runf2;1 runf2 KEY: TDirectory runf3;1 runf3 KEY: TDirectory runf4;1 runf4 KEY: TDirectory runf5;1 runf5 KEY: TDirectory runf6;1 runf6 KEY: TDirectory Flux;1 Flux root [15] runf1->ls(); KEY: TH1F h302en;1 TOF Total Spectrum both adc lithium in Energy KEY: TH1F h303en;1 TOF Total Spectrum both adc alpha in Energy KEY: TH1F h109en;1 TOF Total Spectrum ADC 1 alpha lithium in Energy KEY: TH1F h209en;1 TOF Total Spectrum ADC 2 alpha lithium in Energy All the directory starting by runf* have the same structures What I would like is to store the sum of histos h302en the first 3 runs in the directory Flux ? Thank you very much
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:53 MET