Message: fill data in histogram in .root format Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question fill data in histogram in .root format 

Forum: Analysis
Date: 09 Jun, 2015
From: Maisam Mohammadi <Maisam Mohammadi>

Hi

I modifying the B1 example to save output data in a root file. the rootfile is created but it is empty!.

I add some statement in B1Eventaction.cc like this:

void B1EventAction::EndOfEventAction(const G4Event* /*event*/)
{ 
//---------------------me---------------------
 G4AnalysisManager* analysisManager = G4AnalysisManager::Instance();

  analysisManager->FillH1(1, fEdep);
analysisManager->FillNtupleDColumn(0, fEdep);

and add some statement un B1Runaction.cc like this:

// make a Rootfile................me.............

G4AnalysisManager* analysisManager = G4AnalysisManager::Instance();
		analysisManager->SetVerboseLevel(4);

G4String fileName = "B1";
		analysisManager->OpenFile(fileName);

please help me to fix this

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

1 None: Re: fill data in histogram in .root format   (Ivana Hrivnacova - 09 Jun, 2015)
2 None: Re: fill data in histogram in .root format   (Maisam Mohammadi - 10 Jun, 2015)
1 None: Re: fill data in histogram in .root format   (Ivana Hrivnacova - 10 Jun, 2015)
1 None: Re: fill data in histogram in .root format   (Maisam Mohammadi - 10 Jun, 2015)
2 None: Re: fill data in histogram in .root format   (Maisam Mohammadi - 10 Jun, 2015)
3 None: Re: fill data in histogram in .root format   (Maisam Mohammadi - 10 Jun, 2015)
4 None: Re: fill data in histogram in .root format   (Ivana Hrivnacova - 10 Jun, 2015)
 Add Message Add Message
to: "fill data in histogram in .root format"

 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 ]