Message: Re: Merging of two 1-D Histogram Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Merging of two 1-D Histogram 

Forum: Analysis
Re: Question Merging of two 1-D Histogram (Shivang Tripathi)
Date: 20 May, 2015
From: Ivana Hrivnacova <Ivana Hrivnacova>


Merging histograms is not interfaced in G4AnalysisManager, but you can use directly the function add defined for histogram objects in g4tools:

  // get histograms via their id
  G4H1* h1 = analysisManager->GetH1(id1); 
  G4H1* h2 = analysisManager->GetH1(id2);
  // merge h2 in h1

Best regards,

 Add Message Add Message
to: "Re: Merging of two 1-D Histogram"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]