Message: G4AnalysisManager -> uneven bins Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None G4AnalysisManager -> uneven bins 

Forum: Biasing and Scoring
Date: 10 May, 2017
From: <Synthex>

Dear all;

I modified the B3 example so fit my needs, with a SensitiveDetector filling a 1D histogram in RunAction (no The tracked quantities are step lengths and energy at entrance of neutrons.
I want to implement uneven bins (for instance using the Buggle energy group), but the following method seems static:
(in B3RunAction::BeginOfRunAction)

  G4AnalysisManager* analysisManager = G4AnalysisManager::Instance();

  //Create a 1d histo

  analysisManager->CreateH1("1", "Step Lengths", 200, 0., 4.);
  analysisManager->CreateH1("2", "Energy distribution",
                  100, 0.001, 10000000
  // Create a new output file

The user documentation, chapter mentions log scales and custom bin edges, but the Histogram is invoked in a different procedure:

G4int CreateH1(const G4String& name, const G4String& title,
                 const std::vector<G4double>& edges,
                 const G4String& unitName = "none",
                 const G4String& fcnName = "none");)

I cannot find any example using the latter histogram generation method, can anyone send me a .cc or an example?

Thank you very much


 Add Message Add Message
to: "G4AnalysisManager -> uneven bins"

 Subscribe Subscribe

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