Dear Root Experts,
I want to clone a histogram and then I want to write it into a already created directory. I am trying to do it in a following way
TFileDirectory MCPlots = fs->mkdir( "MC" ); TFileDirectory RecoPlots = fs->mkdir( "RECO" ); TFileDirectory Eff = fs->mkdir( "EFF" );
h_Lept_Eta = RecoPlots.make<TH1F>("LeptEta","Lep Eta",100,-5,5); h_MCLepton_Eta = MCPlots.make<TH1F>("MCLep_Eta","MC_Lep_eta",100,-5,5);
h_ele_absetaEff =(TH1F*)h_Lept_Eta->Clone("h_MCLepton_Eta"); h_ele_absetaEff->Reset(); h_ele_absetaEff->Divide(h_Lept_Eta,h_MCLepton_Eta,1,1); h_ele_absetaEff->GetXaxis()->SetTitle("|#eta|"); h_ele_absetaEff->GetYaxis()->SetTitle("eff");
I want to write the "h_ele_absetaEff" histogram in a separate directory.
Can any one help in this issue.
Best Regards
Wajid Ali
Received on Mon Mar 15 2010 - 11:52:37 CET
This archive was generated by hypermail 2.2.0 : Tue Mar 16 2010 - 17:50:01 CET