Message: Re: ROOT Histogramming in Modified TestEm13 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: ROOT Histogramming in Modified TestEm13 

Forum: Analysis
Re: Question ROOT Histogramming in Modified TestEm13 (Joshua)
Re: None Re: ROOT Histogramming in Modified TestEm13 (Ivana Hrivnacova)
Re: Ok Re: ROOT Histogramming in Modified TestEm13 (Joshua)
Re: Question Re: ROOT Histogramming in Modified TestEm13 (Joshua)
Date: 05 Jan, 2016
From: Ivana Hrivnacova <Ivana Hrivnacova>

In the section 9.2.3, which link I gave in my last post, there is given an example of creating and filling a histogram, extracted from example B4.

The histograms are filled in B4aEventAction::EndOfEventAction in this way:

 void B4aEventAction::EndOfEventAction(const G4Run* aRun)
 {
   // Fill histograms
   G4AnalysisManager* analysisManager = G4AnalysisManager::Instance();
   analysisManager->FillH1(1, fEnergyAbs);
   analysisManager->FillH1(2, fEnergyGap);
 }

Best regards,

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: ROOT Histogramming in Modified TestEm13   (Joshua - 05 Jan, 2016)
 Add Message Add Message
to: "Re: ROOT Histogramming in Modified TestEm13"

 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 ]